Learn business growth with Google Analytics 4 Forums Google Analytics 4 How to track dynamic dataLayer values as custom dimensions in GA4 Reply To: How to track dynamic dataLayer values as custom dimensions in GA4

  • Isabella

    Member
    8 May 2023 at 3:01 pm

    Sure, you got it! So, you can simply plug this in as a parameter in your GA4 config tag, that way it’ll log the parameter’s value with each page. But here’s the thing: if that value can shift around on one single page without that page getting refreshed or swapped out, you would be better off going ahead and whipping up a new datalayer event. Also, make a matching GTM trigger and tag. This way, any time our shifty value decides to change, you’ll nab it then and there, rather than twiddling your thumbs until the next page loads. Hope this helps clarify things for you!