-
Retroactive Dimension Filling in GA4 using Page Data
So, we’ve been sending custom dimensions data in a particular way with GA4 ever since we switched up. Like, we didn’t actually set up the dimension names in custom_map, neither did we set the values separately, we did something like this:
gtag('config', 'G-XXXX', { 'custom_map': {'dimension1': '$val1', 'dimension2': '$val2', 'dimension3': '$val3'} });
We just realized that we should’ve actually be doing this instead:
gtag('config', 'G-XXXX', { 'custom_map': {'dimension1': 'name1', 'dimension2': 'name2', 'dimension3': 'name3'}, 'name1': '$val1', 'name2': '$val2', 'name3': '$val3' });
Also, we’ve been sending the language and module in the page URLs along with the page views. Now, the question is, have we lost all the data from back then? Is there like a workaround to recover those dimensions based on the event page URLs or the data we sent using the old code?
Log in to reply.