Universal Analytics Measurement Protocol respond 200 OK, but no events appers

佐手、 提交于 2019-12-05 03:00:44

Your request is missing the app name parameter, &an, which is required for sending data to app profiles in Google Analytics via the Measurement Protocol.

The requirements for sending app data to Google Analytics via the Measurement Protocol are documented here: https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#apptracking

The GA endpoint will always return 200, even if the request is missing required parameters.

I discovered another reason why no data is being collected: I hadn't upgraded my property to Universal Analytics, yet! Doh!

The root problem here is that you are not formatting your request properly. You need to format your POST body like any other application/x-www-form-urlencoded encoded POST body, all on one line:

v=1&tid=UA-44974825-1&cid=1aba0888-732f-4690-9a91-d906c94a4a23&t=exception&exd=NullReferenceException&exf=1

For anyone who lands here looking for solution to something similar, check this tool: Hit builder to validate the payload data. I was facing the same issue this tool helped.

(Not sure if this debug tool was available then when this question was posted)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!