4.4K 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
star_border
Reply

Collect User ID

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello, everyone!

I need help!

I want collect User ID data. I used this article http://www.simoahava.com/analytics/improve-data-collection-with-four-custom-dimensions/ 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 http://prntscr.com/b7sd86, GA in GTM http://prntscr.com/b7sdm6, and variable user id http://prntscr.com/b7sdxq.

 

Maybe in GA code i must add Custom Javascript code - http://prntscr.com/b7sers ?

Please , help!

 

 

1 Expert replyverified_user

Re: Collect User ID

Top Contributor
# 2
Top Contributor
Hi:-)
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
http://www.lunametrics.com/blog/2015/08/13/user-id-measuring-real-users/

and more info in the dev docs
https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id#user_id
Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here