UserId,测量协议中的CID [英] UserId, CID in measurement protocol

查看:24
本文介绍了UserId,测量协议中的CID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

测量协议要识别新用户与回访用户,我们可以使用用户 ID 字段吗?(即,我们可以对用户唯一的用户名或其他标识符进行哈希处理,并将其与特定用户相关联.这样我们就可以有效地识别新用户与回访用户.

Measurement protocol To Identify a new user vs. returning user , can we use the user id field . ( i.e we can hash username or other identifier unique to the user and associate it with a particular user . This way we can identify new users vs. returning users effectively.

关于 CID 的问题 --CID 用于唯一标识用户的会话,直到会话过期.我们是否必须手动跟踪会话过期时间才能为每个用户会话生成 cid?

Question on CID -- CID is used to indentify a user's session uniquely till the session expires. Do we have to track the session expiration manually to generate cid per user session ?

请澄清

推荐答案

很长一段时间后,但可以帮助其他人...

A long time after but that could help other people ...

我的理解是 CID 引用设备,而 UserID 引用经过身份验证的用户.

My understanding is that the CID references a device while the UserID references an authenticated user.

因此,基本上,所有具有相同客户端 ID 或用户 ID 的点击都将关联到 GA 中的同一用户(查看 会话统一.

So basically, all the hits with the same Client ID or User ID will be associated to the same user in GA (take a look at session unification though).

客户端 ID 代表唯一的设备/浏览器.而用户 ID 代表可以使用多个设备/浏览器与您的网站进行交互的唯一用户."来自 Optimizesmart 文章

GA 中的会话由一组点击表示两个:

  • 距离上一次点击不到 30 分钟
  • 具有相同的来源/媒介/广告系列
  • 具有相同的客户 ID

您不需要手动跟踪会话过期时间,您可以始终发送相同的 CID,Google 会处理会话拆分.如果您自己的会话意识与 Google 的不同,您只需明确会话过期时间.

You don't need to track the session expiration manually, you can always send the same CID, Google will handle the sessions split. You only need to explicit the session expiration if your own sense of session is different from Google's.

因此,在您的情况下,我将为连接到该服务的每个设备生成一个 CID,并让 Google 处理该设备的会话拆分.

So in your case, I would generate a CID for each device that is connecting to the service and let Google handle the sessions split for that device.

如果您添加用于跨设备跟踪的 UserID,那么 Google 会将具有相同 UserID 的所有会话视为单个用户.

If you add a UserID for cross-device tracking, then Google will consider all the sessions with the same UserID as being a single user.

示例:

  • 用户 A 通过设备 X (CID = X) 访问您的网站
  • 用户 A 在 2 小时后(CID = X)通过设备访问您的网站

那时 Google 将理解 1 个用户的 2 个会话.

At that point Google will understand 2 sessions for 1 user.

  • 用户 A 在设备 X 上登录您的网站(CID = X,UID = A)
  • 用户 A 在设备 Y (CID = Y) 上访问您的移动应用
  • 用户 A 登录您的移动应用(CID = Y,UID = A)

启用会话统一后,将传播用户 ID A到设备 Y 上的所有会话,以便 Google 理解 3 个会话,(2 个设备),1 个用户.

With session unification enabled, the UserID A will be propagated to all the session on device Y so Google will understand 3 sessions, (2 devices), 1 user.

使用该方案计算回访用户,此处用户 A 产生了 1 次新访问和 2 次回访.

Returning users are calculated with that scheme, here User A generated 1 new visit and 2 returning visits.

我目前正在使用这种模式,一切看起来都很好,但这是一个敏感的话题,如果有人更了解或有评论和建议,我会接受!

I'm currently working with that pattern and everything looks just fine but it's a touchy subject and if anyone knows better or has remarks and advices, I would take them !

这篇关于UserId,测量协议中的CID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆