Real-time testing Google Tag Manager rules with Google Analytics reports

January 17, 2013

I was inspired by a discussion over on the Google Tag Manager forum to write up a method I’ve been using for testing Google Tag Manager rules in real-time.

The method uses Google Analytics’ real-time reporting feature paired with a specially formatted tracking hit fired into Google Analytics.

Video: Real-Time Testing Google Tag Manager

Here’s a screencast of the method in practice that I put together.  Read below for the details to give it a try yourself.

Unable to display content. Adobe Flash is required.

Example Code for Real-Time Testing GTM in Google Analytics

Here is the GA tracking hit format to use in your custom image tag.{{url}}&utmhid=12345

Also be sure to update the UA number highlighted above to a dedicated Web Property under your Ga account that you’ll use ONLY for this testing, and enable the “cachebusting” feature and use “utmhid” as the parameter for it.

Let me know your feedback in comments!  If you need help with testing or onboarding Google Tag Manager let us know – our team is here to help!