Each of my registered clients have an unique account ID (eg: agent n°: 00173393).
I want to retrieve this information through google analytics... It's not a personal information and for statistics use only.
I implemented userID, but how to match userID and the accounts IDs ?
Is it possible to create a variable for the account ID number ?
Why don't you use the
account ID
asUser ID
as well? That way you would have a 1-to-1 match:Please note however that the
User ID
is not exposed back by Google Analytics. If you want to retrieve it, you need to save it inside a custom dimension:For instance:
Then you can retrieve the
User ID
via the UI:or the API