V
V
Vitaly2019-03-29 16:42:04
Google Analytics
Vitaly, 2019-03-29 16:42:04

How to work with ClientID in Google Analytics?

Hello. Please tell me or give a sane link to the google analytic documentation where I can pass the clientId value and get some information about the user.
In particular, I need to know where a particular user came from (search engine, social networks, advertising, etc.) As well as the link from which the transition was made (campaign, source, channel)
Is it possible to get data through GA clientId in this way. I would be very grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xoo, 2019-03-29
@xoo

Like this

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

And receive like this
ga(function(tracker) {
  var clientId = tracker.get('clientId');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question