我对 Google Analytics Measurement protocol 完全陌生。
尝试获取结果并将其加载到已注册 tid 域的 iframe 中。
我的查询字符串看起来像这样:
http://www.google-analytics.com/collect?v=1&tid=UA-XXX-1&cid=555&t=pageview&dp=%2Fauth ”
但我得到的响应为:GIF89aÿÿÿÿ,D;
我做错了什么吗?我还尝试通过它及其标题传递域名。仍然没有成功。
我还需要从源域调用此 get 或 post 还是可以从 Postman-Rest 客户端执行此操作?
最佳答案
我认为您在理解测量协议(protocol)是什么方面存在问题。
你说:
Trying to fetch the results and load it in iframe of an registered tid domain.
测量协议(protocol)的用途:
Measurement Protocol Overview The Google Analytics Measurement Protocol allows developers to make HTTP requests to send raw user interaction data directly to Google Analytics servers.
测量协议(protocol)用于将点击发送到 Google Analytics,如果您想获取 Google Analytics 数据,请使用 Reporting API
回应
您从测量协议(protocol)中得到的响应良好,这意味着它记录了您的消息。 GIF89aÿÿÿÿ,D;
关于google-analytics - 测量协议(protocol) 用途,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29965936/