一个网站上有三个 Google Analytics 代码?
我想知道是否可以在一个页面上有两组或更多组 Google Analytics 跟踪代码。将有一个网页,可以通过正常方法(桌面或移动浏览器)访问,也可以通过扫描产品包装上的二维码并以这种方式重定向来访问。
客户希望跟踪三件事:
- 分析整个页面(所有连接方法)
- 分析仅通过正常方法连接的分析
- 分析通过 QR 代码连接的情况
我已经开发了一种区分连接方法的方法,并切换 Google 提供的方法2 和 3 的 Javascript。
那么,在一个页面上有两个分析代码是否可能?我查遍了所有内容,找不到切中要害的答案。
提前致谢
I was wondering if it was possible to have two or more sets of Google Analytics tracking codes on one page. There's going to be a single webpage that is accessible through either normal methods (desktop or mobile browser), or accessed through scanning the QR code on the product packaging and being redirected that way.
The client wants three things tracked:
- Analytics for the full page (all methods of connection)
- Analytics for just those connected via normal methods
- Analytics for those connected via QR code
I have already developed a means of differentiating the connection method, and switching the Google provided Javascript for 2 and 3.
So is this possible, to have two analytics codes on one page? I have checked all over, can't find an answer that is to the point.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
单个分析将报告所使用的浏览器和操作系统以及流量的来源。因此,当您只需使用所需数据生成个性化报告时,就没有理由使用三个 cookie、三个 JS 文件
A single analytics will report browser and OS used and the origin of traffic. Hence, there's no reason to use three cookies, three JS files when you can just generate a personalized report with the data you need
为此,请勿使用不同的跟踪器,请使用自定义变量。将其拆分会让您失去对不同用例如何浏览网站的宝贵见解。
Don't use different trackers for this, use custom variables. Splitting it up loses you valuable insight into how different use cases navigate the site.
如果有人正在寻找此内容:
http://www. publicinsite.com/qr-codes-google-analytics-track-mobile-devices/
这是我认为最好的选择
If anyone is ever looking for this:
http://www.publicinsite.com/qr-codes-google-analytics-track-mobile-devices/
That;s the best bet I think