google-analytics - 差异 ClientId - FullVisitorId

标签 google-analytics

fullvisitorId 的文档指出它是“唯一的访问者 ID(也称为客户端 ID)”。但是,在比较 BQ 中的 clientId 和 fullvisitorId 时,fullvisitorId 的值的结构不同。一个question表示 fullvisitorId 是 clientId 的散列版本,但是我找不到说明这一点的官方文档。

我的问题是为什么有两个参数说明相同的信息,如果它们不相同,有什么区别?

最佳答案

他们现在还添加了 clientIdexport schema .那里说:

Unhashed version of the Client ID for a given user associated with any given visit/session.



measurement protocol reference他们说:

This field is required if User ID (uid) is not specified in the request. This anonymously identifies a particular user, device, or browser instance. For the web, this is generally stored as a first-party cookie with a two-year expiration. For mobile apps, this is randomly generated for each particular instance of an application install. The value of this field should be a random UUID (version 4) as described in http://www.ietf.org/rfc/rfc4122.txt.



所以,它是随机生成的——对于网络它是一个 cookie,对于应用程序它是在每次安装时设置的 (or if the IDFA changes)。
user id documentation他们通过对比两个 id 来确认这种随机化:

Randomly generated and automatically sent with all hits by Analytics libraries.



散列算法未知。但原则上,两者之间的唯一区别是散列。

然而 ,您可以使用 hashClientId method 从 2018 年 7 月 17 日起将散列算法应用于您的客户端 ID。由管理 API 提供。为此,API 需要一个客户端 ID 和一个网络属性 ID。尽管提供网络 Assets ID 可能意味着他们使用它来对哈希进行加盐——但他们并没有这样做。 fullVisitorId 对于不同的属性是相同的(使用管理 API 测试)。

这基本上意味着他们不希望您使用客户端 ID 连接数据并且基本上对其进行伪/匿名化。现在他们允许了,您可以通过以下方式连接来自不同来源的数据
  • 使用管理 API 创建 fullvisitorid(用于旧数据)
  • 或使用新字段中的客户端 ID(对于较新的数据)
  • 关于google-analytics - 差异 ClientId - FullVisitorId,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51608708/

    相关文章:

    python - 从 Google Analytics 导出特定分割的受众概览数据

    google-analytics - 在 swift 框架中使用 Google Analytics

    google-analytics - 您可以使用Classic Analytics(分析)跟踪视频事件(例如播放,停止和结束)吗?

    java - 我的 Android 应用程序中的 Google Analytics v4 Cast 错误

    javascript - Google Analytics 非交互实现(ni=1 与 nonInteraction :true)

    rss - 在新闻阅读器中跟踪rss feed的观看次数?

    xcode - 由于 Google Analytics,AppDelegate 中的链接器命令失败错误

    google-analytics - 如何跟踪 Google Analytics 4 [GA4] 与 v3 中的自定义事件?

    google-analytics - Google Analytics(分析)脚本 block 是否已更改?

    javascript - 使用 javascript 进行 Google Analytics 事件跟踪