Google Analytics(分析)将自定义点击事件添加到页内视图
我已将“_trackEvent”onclick 函数添加到网页上的所有出站链接中,并且 Analytics 正在正常跟踪事件。问题是点击次数不会显示在页内视图中 - 显示点击百分比的视图 - 这是我想要跟踪的一项功能。我该怎么做?
I've added the '_trackEvent' onclick function to all of my outbound links on my webpage and Analytics is tracking the events just fine. The problem is that the clicks don't show up on the in-page view - the one which shows click % - which is a feature I'd like to track. How do I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 Google Analytics(分析)只能跟踪向配置的 GA 帐户 (UA) 报告的内容,即使您的链接指向的外部页面安装了 GA,它也不会显示在您的页内分析中。
页内分析报告显示基于域内任何链接指向的页面浏览量的百分比,因此没有出站链接。
如果您确实有兴趣分析特定按钮的点击百分比,您可以更改 _trackEvent 方法以某种方式标识该按钮。
详细了解 _trackEvent
详细了解页内分析
Augusto Roselli
网络分析 - Google 认证
dp6.com.br
as Google Analytics can only track content that reports to the GA account (UA) that is configured, even if the external pages that your links point to have GA installed, it won´t show on your in-page analytics.
The in-page Analytics report show the percentage based on the amount of pageviews of the pages that any links point to, inside your domain, so no outbound links.
If your´re really interested in analysing the percentage of clicks in a specific button, you could change your _trackEvent method to id the button in someway.
Find more about _trackEvent
Find more about In-Page Analytics
Augusto Roselli
Web Analytics - Google Certified
dp6.com.br