如何正确使用谷歌分析测量协议? [英] How to correctly use google analytics measurement protocol?

查看:111
本文介绍了如何正确使用谷歌分析测量协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习如何使用谷歌分析应用程序。为了测试目的,我创建了一个新的Google帐户,启用了应用程序分析,并从终端发出以下命令进行测试是否正常:

  curlhttp://www.google-analytics.com/collect?v=1&tid=UA-12345678-1&cid=123&an=myapp&t=event&ec=action&ea=click

不幸的是,这个请求不会影响我在分析页面上看到的任何数字 - 它全部为零。任何对谷歌分析的请求都会导致200 OK和1x1像素的gif图像,所以我无法弄清楚问题所在:请求是否不正确,或者我需要以某种方式预先配置谷歌分析,或者在数据显示之前有几天的延迟等等。



有什么建议吗?

解决方案

解决了。其他人进入此页面的一些指针:


  • 查看实时报告。

  • 尝试发送浏览量或屏幕视图,而不是事件。它们出现在更多地方。

  • cid应该是 UUID v4


I'm learning to use google analytics for apps. For test purpose i have created a new google account, enabled analytics for apps and issued following command from terminal to test is it working:

curl "http://www.google-analytics.com/collect?v=1&tid=UA-12345678-1&cid=123&an=myapp&t=event&ec=action&ea=click"

Unfortunately, this request don't affect any numbers i see on analytics page - it's all zeroes. Any request to google analytics results in "200 OK" and 1x1 pixel gif image, so i can't figure out the problem: is the request incorrect, or i need to somehow preconfigure google analytics, or it have days delay before data is displayed etc.

Any suggestions?

解决方案

It looks like your issue was solved. Some pointers for other people coming to this page:

  • Look in realtime reports.
  • Try to send pageview or screenview instead of event. They show up in more places.
  • The cid should be a UUID v4.

这篇关于如何正确使用谷歌分析测量协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆