本文介绍了使用Webapp和桌面客户端(具有测量协议)时,请在Google Analytics(分析)中标识同一用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个混合应用程序,其中一部分是WebApp,一部分是桌面客户端.我使用Google Analytics(分析)跟踪用户.在桌面客户端上,我使用测量协议来完成此操作.

I have an mixed application, where a part is a WebApp and a part is a desktop client. I track the user with google analytics. On the desktop client, i do this with the measurement protocol.

现在的问题是,在Google Analytics(分析)中,我看到了这两个部分的用法,但是在使用Web应用程序和桌面客户端时,用户的身份却不同.

Now, the problem is, that in Google analytics, I see the usage of both parts, but a user is identify not as the same, when it use the web app and the desktop client.

在衡量协议中,是否存在一个选项可以识别用户,谷歌分析可以将其与网络应用程序用户匹配,并且知道它是同一用户?

Is there an option, in the measurement protocol, to identify the user, that google analytics can match it to the webapp user and knows that it is the same user?

推荐答案

您可以启用 Google Analytics(分析)中的用户ID ,但是您需要自己进行检测.

You can enable the User ID in Google Analytics, however you'll need to do the detection yourself.

如果您的用户使用某种形式的登录,则只需使用其ID并将其传递给Google Analytics(分析)即可.如果您的用户未登录,则需要自己通过某种指纹进行管理并分配一个ID.

If your users have a sign-in of some kind, you can just use their ID and pass it to Google Analytics. If your users do not sign in, you will need to manage it via some kind of fingerprinting yourself and assign an ID.

此处是GA文档的更多信息

ga('create', 'UA-XXXXX-Y', 'auto', {
  userId: USER_ID
});
ga('send', 'pageview');

我从未将其用于跨设备用户跟踪,因此我无法说它如何影响某些报告(例如Device).

I've never used this for cross-device user tracking, so I can't say how it will affect certain reports such as Device.

这篇关于使用Webapp和桌面客户端(具有测量协议)时,请在Google Analytics(分析)中标识同一用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 19:41