-
How to track dynamic dataLayer values as custom dimensions in GA4
So, I’ve got a dataLayer variable that changes with each pageview. In Universal Analytics, it was tracked as a hit-scoped custom dimension and recorded through Google Tag Manager’s analytics settings variable.
I’m now trying to figure out how to do this or something similar in GA4.
From what I understand, I need to set up a new GA4 event that triggers on every pageview and send the dataLayer value as an event parameter.
Am I on the right track? Do I really have to count off an event for EVERY SINGLE PAGEVIEW just to grab dataLayer values as custom dimensions?
Log in to reply.