PHP class to post to google measure protocol