Identify the same user in Google Analytics when us

2019-08-19 01:10发布

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.

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?

1条回答
Melony?
2楼-- · 2019-08-19 01:50

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

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.

Here is some more info from the GA documentation.

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

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

查看更多
登录 后发表回答