Access the Universal Analytics tracker object in your GTM Tags
This is an article which I hope becomes obsolete soon. Currently, the Google Tag Manager tag templates for Universal Analytics do not let you run arbitrary tracker interface methods between the 'create' and 'send' calls. These include stuff like loading plugins
and accessing the tracker object after it's created but before the 'send' command is fired.
The workaround I'm suggesting involves a Custom HTML Tag (I know, boo!), which accesses the tracker object once it's ready, and then sends an event to dataLayer which fires your Page View Tag. This means that when your Page View Tag fires eventually, the tracker object is available for extracting the clientId, for example.
It's a pretty simple thing to implement, but I do understand that people are wary of moving back to Custom HTML Tags just when they've enjoyed the amazing tag templates. However, as I mention, this should be an obsolete workaround at some point in the future. #gde #googleanalytics #blogpost #gtmtips