washingtonstateuniversity / WSUWP-Plugin-Analytics

Provides tracking scripts and GA ID management for WSU WordPress sites.
2 stars 0 forks source link

[PR] Initial Tag Manager support #45

Closed jeremyfelt closed 8 years ago

jeremyfelt commented 8 years ago

If Tag Manager is enabled for a site, avoid enqueuing jTrack and instead load the Google Tag Manager scripts. jTrack remains the default tracker.

quantumJLBass commented 8 years ago

Just a note, you can run both at the same time. You just turn off the site scope by setting the ga_code to false, or the block it's self. There are implementations out there now that do this with the bootstrap side of the jTrack.

It is the suggested course when we get asked about tag manager to ensure the global scope is not incorrectly set. Reason being that we can't encourage people to set up global scopes differently then the rest.