fullvisitorId 的文档指出它是“唯一的访问者 ID(也称为客户端 ID)”。但是,在比较 BQ 中的 clientId 和 fullvisitorId 时,fullvisitorId 的值的结构不同。一个question表示 fullvisitorId 是 clientId 的散列版本,但是我找不到说明这一点的官方文档。
我的问题是为什么有两个参数说明相同的信息,如果它们不相同,有什么区别?
最佳答案
他们现在还添加了 clientId
到export 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 连接数据并且基本上对其进行伪/匿名化。现在他们允许了,您可以通过以下方式连接来自不同来源的数据
关于google-analytics - 差异 ClientId - FullVisitorId,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51608708/