79529873

Date: 2025-03-23 23:47:35
Score: 7 🚩
Natty: 4.5
Report link

I am having the same problem as the original user. I want to track user-ids, but nothing seems to be registering in the user explorer view. I have followed the advice given here (which is also what Google suggests, about using

gtag('config', 'GA_MEASUREMENT_ID', { 'user_id': 'USER_ID' });

but nothing registers. Here is my code:

<!-- Google tag (gtag.js) -->

<script async src='https://www.googletagmanager.com/gtag/js?id=G-L3ZPB6S5H6'></script>

<script>window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}gtag('js', new Date());

gtag('config', 'G-L3ZPB6S5H6', {'user_id': 'DRCUSASK'})

</script>

What am I doing wrong? Is there some kind of mismatch between GA code and gtag code?

Reasons:
  • Blacklisted phrase (1): What am I doing wrong?
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same problem
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: peter