Update: Setting up GA via GTM’s new UX
This post is essentially an update to the one I posted about a month ago for setting up Google Analytics via Google Tag Manager for WordPress (using Thomas Geiger’s Duracelltomi Google Tag Manager plugin for WordPress). Now that the beautiful new GTM interface has launched, things may look and feel a tad different, so read on for an updated step-by-step.
I’d also like to quickly thank my sister, Jilleen, who runs the awesome blog SoCal Field Trips, for unknowingly volunteering as an example for this post… did you think that blog help was free?! Love you sis!
Ok, now onto the useful stuff…
Step 1: Go to tagmanager.google.com (note that this link takes you directly to the new UX, whereas google.com/tagmanager will take you to the old interface) to create a GTM account. You’ll get a GTM account ID, in the format GTM-XXXXXX. Copy this ID, you’ll need it in the next step.
Step 2: Install a GTM wordpress plugin. As mentioned earlier, I again chose Thomas Geiger’s Duracelltomi Google Tag Manager plugin for WordPress because it has great reviews on WordPress and a dedicated site full of ‘how to’ resources. Once installed, enter your GTM account ID.
Step 3: Configure your tags, triggers*, & variables* in GTM. The first thing I installed was a Universal Analytics tag to fire GA on all pages of my site. For basic tracking, it’s pretty easy. Just choose the tag type (in this case, the Google Analytics Universal Analytics tag template), enter your tracking ID (this is the property ID from Google Analytics), choose what triggers to fire on (All Pages), select the track type ‘Page View’, and then click ‘Save tag’.
Quick note about basic triggers – in the new UI you do not have to add them separately, each tag asks what triggers to fire on which simplifies this process and removes a step for the user. Awesome.
* ‘Triggers’ is the new terminology for the feature formerly known as ‘rules’. Likewise, macros have become ‘variables’.
Step 4: Preview & debug the tag you just created. Click on the ‘Publish’ drop down menu in the upper right hand corner (Preview, Debug, Create Version and Publish now all live under the same drop down rather than as separate buttons), then ‘Preview’ from the drop down panel. Once in Debug mode, open a new tab and load your website. You should see the debug panel on the bottom of the screen which will show you which tags are being fired. The tag you just added should show up here.
Step 5: Once you’ve verified that your tags are firing as intended via the Preview and Debug mode, it’s time to publish. Another nice thing about the new interface is that you don’t have to go through the step of creating a container version before publishing, by clicking publish it will do this for you! Yay, another step removed from the process.
That’s it, 5 even easier than before steps to install Google Analytics via Google Tag Manager on your WordPress blog. For more information about tag, trigger, & variable creation, check out the GTM help center.