-
Troubleshooting GTM User_id Mapping Issue in Google Analytics 4
Hey, I’ve been wrestling with an issue in my reports where client_ids are being used instead of unique user_ids. This has been messing up my user count. I’ve set up GTM in my single-page Angular app, where users enter only through a login screen that triggers a ‘login’ event in the dataLayer. The configuration tag is set to fire on this event and link user_ids correctly, but it seems some users are still linked to auto-generated client_ids instead. I’ve tried to set this up through GTM’s UI, but I’m starting to wonder if I should just hardcode it. Does anyone have advice? The problem is hard to debug since everything works perfectly on my local system and the site can only be accessed through VPN.
Log in to reply.