How to Quickly (and Correctly) Track Google Analytics Across Multiple Domains – Moz

Out of the box, Google Analytics handles being deployed across multiple domains or subdomains extremely poorly. This is easily the most common critical problem in Google Analytics, despite its being relatively easy to fix.

Depending on your situation, one or more of a few simple steps may be appropriate. Look for the entry in the left-hand column below that best describes your situation, and make sure you’ve taken the steps listed on the right:

Situation Implementation Check-list

Single subdomain

Standard Google Analytics

Multiple subdomains or domains, which are treated as separate sites

Separate tracking ID for each (sub)domain

Multiple subdomains on a single domain which are treated as a single site

Ignore self-referrals

Prepend hostname to request URIs

Ga.js / doubleclick.js only: set domain name

Multiple domains with one or more subdomains that are treated as a single site

Ignore self-referrals

Prepend hostname to request URIs

Cross domain linking

As a word of warning, several steps in this document differ according to the tracking code in use, and in these cases I suggest options for each tracking code type. If you’re unsure of your current implementation:

ga.js / doubeclick.js: Your source code will contain several “_gaq.push” commands

analytics.js tracking code: Your source code will contain “ga(‘create'” and “ga(‘send'” commands

Google Tag Manager: You have an analytics tag in your Google Tag Manager account (which I will assume is set to “Universal Analytics”)

If you have updated your Google Analytics interface to Universal Analytics but you’re still using the old code, you should follow the recommendations for the old (ga.js / doubleclick.js) tracking code here.

via How to Quickly (and Correctly) Track Google Analytics Across Multiple Domains – Moz.

Advertisements

About Bob Warfield

Here's my bio: http://www.smoothspan.com/management.html
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s