-
Trouble retrieving UserId dimension in GA4 (previously worked in UA)
So, here’s the story. I’d been using GTM to keep an eye on site visits and was also reporting a ‘userId’ that was getting generated every time a page loaded. Everything was working great when I set the userId as a ‘custom dimension’ in my GTM data layer.
Then, I made a switch to Google Analytics 4 (GA4), and things got a little funky. I can’t seem to pull this ‘custom dimension’ anymore. It’s strange – I can see it’s getting collected in the debugger when I visit a page, but in any kind of report, the dimension pops up as ‘(not set)’. Interestingly, everything’s fine with another dimension called ‘companyId’.
Anybody got the inside scoop on why this could be happening? Here’s a screenshot from the debugger showing the payload of my ‘pageview custom event’. Check it out and see if it rings any bells.
Log in to reply.