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

User ID view not showing traffic

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi there, I signed up for user ID tracking, and set a view. The "All Web Site Data" view is still showing new visitors, but nothing is appearing in the "User ID" view. I don't remember doing anything in particular when setting up the view, just went along with defaults for the most part, I think. What might make the regular view show traffic, but the User ID view not show it?

 

Just in case you think I did something wrong with the code (though I don't think it's that), here it is:

 

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-________-1', 'auto');
  ga('send', 'pageview');
  ga('set', 'userId', '1');

</script>

 

Thanks!

User ID view not showing traffic

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Im having the same issue, did you manage to sort it?

 

User ID view not showing traffic

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Turned out I named the dataLayer variable 'userId' on the GTM and I was pushing 'userID' from my site. Renaming the variable fixed it.