将信息添加到谷歌分析综合浏览量
我使用谷歌分析来监控我的流量。对于某些页面,我想记录除了正在查看的页面之外的额外信息。例如,如果有人访问个人资料页面,我可能还想记录该个人资料是否是名人。
我不想为此人为更改 URL。我可以像 GA 活动一样将数据添加到综合浏览量中吗?当然,然后我想根据该数据分析流量。
I use google analytics to monitor my traffic. For some pages, I want to record extra information beyond just the page being viewed. For example, if someone visits a profile page I might want to also record if that profile is a celebrity.
I don't want to artificially alter the URL for this. Can I add data to a pageview like I can with GA events? And of course, then I'd like to analyze traffic based on that data.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您确实想使用 URL(我不推荐)发送元数据,您可以将其作为
_trackPageview
调用中的第二个参数发送:更好的方法不过,可以使用自定义变量
这样,您的自然的 URL 数据是保留,但自定义变量提供您想知道的元数据。
If you really want to use the URL (which I wouldn't recommend) to send meta-data, you could send it as a second parameter in the
_trackPageview
call:The better way for you to do it, though, would be to use Custom Variables
That way, your natural URL data is preserved, but the custom variable provides the meta data you'd like to know.