Reputation: 28991
I'm using the Measurement Protocol to push data to Google Analytics.
The protocol reference says that the endpoint (http://www.google-analytics.com/collect
) always returns 200 OK, even if your message was malformed and/or ignored.
If my message is ignored, how do I know what I did wrong? Trial and error?
For example, the parameter reference says that Application Name ("an=Name") is an optional parameter for web properties. However, if I add this my requests, Google starts ignoring them completely. Why? More importantly, how can I find out why on my own? Is there a log the Google Analytics portal somewhere?
Upvotes: 2
Views: 597
Reputation: 30441
You can debug Measurement Protocol hits with the Measurement Protocol Hit Builder.
This tool works by sending hits to the Measurement Protocol Validation Server behind the scenes to validate the hits and report error messages. The document linked here goes into more detail on how to send hits to this service manually if you wanted.
Upvotes: 2