AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

5K members online now
5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Collect User ID

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello, everyone!

I need help!

I want collect User ID data. I used this article for setting  in GTM.

In result: I collect Client ID, Session ID, Hit timestamp, but i can't collect User Id.

I created a new view User ID, but there aren't data. 

My custom dimentions, GA in GTM, and variable user id


Maybe in GA code i must add Custom Javascript code - ?

Please , help!



1 Expert replyverified_user

Re: Collect User ID

Top Contributor
# 2
Top Contributor
In order to collect userID, visitors need to be logging into your site and userID needs to be an anonymous ID created and assigned by your system that is then passed to Google Analytics

There is a great article here by Lunametrics

and more info in the dev docs
Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here