-
Enhancing Analytics Tracking with Custom Dimensions in Google Analytics 4
“
Hey there, I’ve been able to link my UA Google Analytics to a new GA4 property right from the GA admin panel. The data started rolling in without having to tweak any code, which was great.
But here’s a little hitch: The custom dimensions don’t seem to be showing up.
Just to give you a picture, the js code on the page has a string of gtag set calls like this:
gtag('set', 'dimension2', 'test')
I thought I’d try setting up custom dimensions on the GA4 property just to see if they’d show up without me touching the code. So I popped into the new GA4 property, went to Configure > Custom Definitions > Custom Dimensions, and threw in a bunch of new custom dimensions. I used a User Property naming convention that matches our old-school one: dimension2, dimension3, you know the drill.
But that doesn’t seem to be doing the trick. Is there some way I can get the UA custom dimensions to feed into the GA4 property without having to alter the javascript? Or is there a way to adjust the javascript so it still works with the earlier version and sends the custom dimension to both my UA and GA4 properties?
Any insights would be awesome. Thanks!
“
Log in to reply.