Add a jQuery Function to Google Tag Manager

This blog post walks through the process of adding a jQuery function to a custom HTML tag in Google Tag Manager in order to populate tags with text or other information available on the page. While Google Tag Manager (GTM) has many useful built-in features for targeting certain areas of the page for event tracking, sometimes … Read more Add a jQuery Function to Google Tag Manager

Track Vanity URLs Using Redirects

This post shows how to set up 301 redirects to track vanity URLs in analytics tools like Google Analytics and IBM Digital Analytics (Coremetrics). This will ensure marketing query strings are appended to the destination page, so that marketing sources can be correctly tracked. Vanity URLs for Marketing Adding tracking parameters to URLs is an … Read more Track Vanity URLs Using Redirects

Google Analytics Cookie Expiration

2017 UPDATE: this post from 2012 described the cookies used by “classic” Google Analytics (ga.js), which has now largely been replaced by Universal Analytics (analytics.js). While the old version of GA stored information client-side in user cookies, Universal Analytics instead uses just a single cookie to store a user ID, and then processes all the … Read more Google Analytics Cookie Expiration

How to Debug a Google Analytics Implementation

During a web analytics implementation (or audit), you need to check whether the data is being collected as planned.  You can do that as follows: The Basics: View Source Code To identify whether basic code is on the page, you can often visit the site > right-click> View Source.  Here I’ll use popular Q&A site Quora.com … Read more How to Debug a Google Analytics Implementation

How to Debug a Coremetrics Implementation

During a web analytics implementation, or while tracking down the source of tracking errors, it’s important to check what’s being sent to the analytics servers.  Coremetrics provides 3 ways to debug or QA an implementation: 1) The Coremetrics TagBar.   This is the everyday staple of QA’ing.  It’s an Internet Explorer/Firefox browser plug-in that shows … Read more How to Debug a Coremetrics Implementation