I’m trying to implement a Custom Dimension in my Google Analytics setup but getting a weird error message in Chrome’s developer console when the GA Debugger extension is active.
My implementation uses dual tracking to send data to both a main account and a secondary rollup account. I’ve set up named trackers for this purpose.
You’re mixing Universal Analytics syntax with gtag - that’s the problem. When you use gtag('set', 'dimension1', 'enterprise') without specifying a tracker, GA has no idea which tracker to use.
Honestly though, dual tracking with custom dimensions is a nightmare. I’ve dealt with complex GA setups before and the debugging gets messy fast.
I’d automate this whole thing instead. Set up a workflow that handles your GA tracking, manages multiple properties, and sends custom dimensions without all the JavaScript headaches. Way cleaner and you won’t be debugging console errors.
Latenode makes this dead simple - create automated workflows that send tracking data to multiple GA properties with proper custom dimensions. Much more reliable than managing dual tracking code yourself.