-
Transitioning from Universal Analytics to GA4: Latest Update – Aug 13, 2022
Hey, there’s this post that caught my eye today – After 1st July 2023, Google is pulling the plug on support for Universal Analytics.
https://support.google.com/analytics/answer/10759417?hl=en
Now, I had this nifty bit of code I was working with for custom dimensions:
gtag('config', 'GA_MEASUREMENT_ID', { 'custom_map': {'dimension1': 'age'} }); // This next bit would send the custom dimension to Google Analytics. gtag('event', 'any_event_name', {'age': '55'});
But guess what? It’s on the fritz after the switch to GA4!
I’m pretty huge on open-source and thought today’s just as good as any to dish out some knowledge on adding custom dimensions on GA4.
Just to point you in the right direction, here are some useful guidelines I stumbled upon:
Oh, and don’t forget, this info was added on 13th Aug 2022, just so you know (and maybe this will save you a couple of minutes before you dive headfirst into coding).
Log in to reply.