gpt4 book ai didi

javascript - Google Analytics 自定义变量的使用

转载 作者:行者123 更新时间:2023-11-29 18:27:51 25 4
gpt4 key购买 nike

我是 GA 的新手。我不确定 GA 是否适合我正在寻找的报告。请帮忙

我的情况是:

我有一个 ajax 表单,每个问题都有提交和跳过按钮。

我需要跟踪所有跳过或回答的人以及他们的 user_id、question_id、campaign_id 和 category_id

而且我应该能够检索回答/跳过特定事件/问题/类别的用户

我尝试使用自定义变量,例如:

_gaq.push(['_setCustomVar', 1, 'skip', 'yes', 1])
_gaq.push(['_setCustomVar', 2, 'Campaign', campaign_id, 1])
_gaq.push(['_setCustomVar', 3, 'Engagement', question_id, 1])
_gaq.push(['_setCustomVar', 4, 'Property', category_id, 1])
_gaq.push(['_setCustomVar', 5, 'User', user_id, 1])
_gaq.push(['_trackEvent'])

我如何获得特定事件或问题的所有跳过用户?

GA 是否符合我的要求?

最佳答案

这违反了Google Analytics terms of service .请参阅第 7 条隐私。

7.PRIVACY . You will not (and will not allow any third party to) use the Service to track or collect personally identifiable information of Internet users, nor will You (or will You allow any third party to) associate any data gathered from Your website(s) (or such third parties' website(s)) with any personally identifying information from any source as part of Your use (or such third parties' use) of the Service. You will have and abide by an appropriate privacy policy and will comply with all applicable laws relating to the collection of information from visitors to Your websites. You must post a privacy policy and that policy must provide notice of your use of a cookie that collects anonymous traffic data.

While the username or user ID is not directly PII, if it is used to tie to a person from a backend system…that’s a violation of the Terms of Service.

Google Analytics 不是用于此类跟踪的工具。正如@Juhana 所说,托管在您自己的服务器上的自定义后端解决方案是更好的选择。

关于javascript - Google Analytics 自定义变量的使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11280461/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com