Analytics news and expert advice every Thursday.
Is It The Site, Or Is It The Analytics? Debugging Google Analytics
As I’ve said in previous columns, marketers can no longer rely on their communication skills alone to get the job done. They must become scientists of a sort, skilled at measuring and reporting on their digital properties.
The tools now exist to help us learn so much about our visitors. But, to paraphrase a famous quote, “With great power comes great potential to screw up.”
The only thing more heartbreaking than a poor converting website is a high-converting website with broken analytics. Are you getting the credit you deserve? Is a bad analytics setup hiding your true performance?
The Tools Of The Trade
Below are the details needed for your Google Analytics setup through the Chrome Browser and Chrome Web Store.
It’s understandable that Google would be partial to their own browser. Two of the key tools we’ll use only run in Chrome.
Tag Assistant (by Google) Extension
You’ll find this extension in the Chrome Web Store.
The Tag Assistant Extension is great for locating issues with your website.
This extension provides great detail and links to help documents that explain any problem you may be having. Even if your webmaster or IT department does all of your setup, this is your first line of defense against improper implementation.
Be sure to run Tag Manager on the key pages of your site, not just the home page. Check your cart, your landing pages, your thank you pages, and any other pages key to your conversion funnel.
Google Analytics Debugger
You’ll find the Analytics Debugger extension in the Chrome Web Store as well.
Don’t fret about this feature. You’ll soon appreciate the information it reveals to you.
When installed, the Analytics Debugger icon appears in your Chrome toolbar. By clicking this, you “turn on” the debugger and the icon will reflect that.
Now, refresh the page again.
If your Google Analytics Debugger is on, the gibberish that will fill the screen could only be appreciated by a developer’s mother. I don’t know what 80% of this stuff means, and you won’t have to either.
There are two primary kinds of information your site will send to Google Analytics:
Likewise, when an Event is sent, you’ll see:
Scroll through the debug detritus until you see one of these markers. Following this is a block of indecipherable stuff, which is then followed by the details you can use.
In our sample store at BuySchtuff.com, we added a Google Analytics Event to the “Add to Cart” button so we could see when someone added an item to the cart. Here’s the debug output that verifies the event is being called.
If these events are showing up in the debugger, you can be reasonably sure they are making it to Google Analytics.
Even information on custom variables can be found in the “Track Pageview” record:
One More Example
In my last column, Using A Google Tag Manager Listener To Get Your Real Bounce Rate, I showed you how to use a Timer Listener in Google Tag Manager to send Google Analytics an Event if a visitor remains on a page for 15 seconds or more.
To be sure this event is firing on your site, these tools would provide the confidence you need.
- Click on the Tag Assistant Extension icon to be sure that there are no implementation errors.
- Turn on Google Analytics Debugger.
- Visit a page on your site. Here we’re just visiting the home page.
- Wait 15 seconds.
- Look for the ‘Track Event’ message in the Console output.
Managing Console Output
Here are just a couple of tips on managing all of the gibberish spewing from your browser at this point.
You may be frustrated that your debugging output disappears when you click on something that takes you to a new page. This can be fixed.
You already saw that, didn’t you. See, you’re getting it!
Even More Data From Google Tag Manager
The debugger also gives you feedback on your Google Tag Manager (GTM) implementations. Here’s a snippet showing that GTM is executing the 15-second timer event on our blog.
Even if you’re not doing the analytics implementation yourself, you now have the tools to ensure that the data you are getting from your website is accurate. Good data means good decisions.
What are your favorite debugging tools and tricks? Let us know in the comments.
Some opinions expressed in this article may be those of a guest author and not necessarily Marketing Land. Staff authors are listed here.