3.4K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
Guide Me

Why GA is tracking only ONE User ID?

[ Edited ]
Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆



For a single page application based website, I have set up User ID using DataLayer approach through Google Tag Manager. I've enabled User ID in GA and created User ID view too.


I am able to see only one User ID in GA reports. Despite logging in to the website using different User IDs, GA is tracking only one User ID but not the rest.


Do I need to change any settings in GA or GTM? Here is the GTM code with datalayer script too:

<script>dataLayer = [];</script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
'gtm.start' : new Date().getTime(),
event : 'gtm.js'
var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src='//' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-XXXXXX');


Can someone help me out with root cause and quick fix?


Thanks a lot in advance,