Add to Google Add to Bloglines Add to Newsgator Add to Yahoo! Contact ROI Revolution Sign Up for the ROI Newsletter Unofficial Google Analytics Blog Feed Unofficial Google Analytics Blog
Unofficial Google Analytics Blog by ROI Revolution

Categories Search This Blog Blogroll Archive

| |

September 26, 2006

Tracking Multiple Domains

By Michael Harrison, Google Analytics Support Tech

Justin Cutroni has yet another great series of articles over at his blog, all about common Google Analytics configuration mistakes. His most recent post discusses third party domains, and getting Google Analytics to track across them. As usual, it's well-written and very informative.

One thing that many people don't know, however, is that, by default, Google Analytics will track only the request URI of its tagged pages.

What's the URI, you ask? Take a look at the URL below:

Hostname and URI explained

You see that the part of the URL that is surrounded by red is "/index.htm". So, when a visitor hits the page above, Google Analytics registers a unique visit to "/index.htm". Because the majority of Google Analytics profiles are focused on only one domain, the hostname (surrounded by blue) is ignored in the reports.

But what if you have two domains? And what if you have pages on both domains that have the very same URI?

We work with a client who wants to track visits across two of their domains. www.smithmountainhomes.com and www.smithmountainlakenews.com. Both of these domains have a default page called "index.htm". So, once tagged with the special Google Analytics JavaScript snippet required for cross-domain tracking, these two pages would begin to register views for the URI "/index.htm":

URI aggregation in Google Analytics
(Click the image above to view a larger version.)

These unique views would show up in Google Analytics aggregated into a single entry:

Index.htm as a single entry.

This is misleading data. We don't know which of those 371 unique views are attributed to each individual domain being tracked.

Fortunately, you can use an Advanced Filter to grab the hostname and insert it into your results:

Field A: Hostname -> Extract A: (.*)
Field B: Request URI -> Extract B: (.*)
Output To: Request URI -> Constructor: $A1$B1

Now both the URI and the hostname are being collected in your reports:

URI and hostname tracking

And you will be able to differentiate between the two pages very easily from within Google Analytics:

Report with both hostname and URI displayed

Need help tracking multiple domains in a single Google Analytics profile? Hire us to help you today.

Posted by Michael Harrison at 1:26 PM









Filed under: ,
Technorati Tags:

TrackBack

TrackBack URL for this entry:
/mt/mt-tb.cgi/168.

Comments

We used the above advanced filter for tracking unique urls on a profile for an account to see how well it would work. We had the original profile and a 2nd profile for this website. We put the advanced filter on the 2nd profile. The problem we encountered was that the original profile also seemed to be effected by the filter and the goals we had set up on the original profile were not being tracked correctly even though they had the complete page urls in the goal funnel. Should a filter you apply to a 2nd profile effect the original profile?

Thanks,
Cory

Posted by: Cory at October 4, 2007 2:34 PM

@Cory: A filter applied to one profile should never affect data on another, and I've never seen any situations where it has.

Posted by: Michael Harrison at October 11, 2007 3:57 PM

Post Your Comments

Post a comment

Contacting ROI Revolution

Telephone Number:
(919) 954.5955 ext. 306
ask for Meredith Smith

Office Fax:
(919) 954.4767

Address:
3109 Poplarwood Ct.
Suite 219
Raleigh, NC 27604


Authorized Google Analytics Consultant

Google Analytics Certified Service and Support Consultant


Free Webinar!

Join a Live FREE Google Analytics Training Webinar
Register now to learn how to
turn Google Analytics into
pure profit! You'll learn how to use many of the key reports, a ten-step system for properly configuring Google Analytics on your website, and how to apply what you learn to the attainment of your online goals. Register for our free Google Analytics training webinar today.


Subscribe to the
ROI Revolution Google
Analytics Newsletter today

Free monthly email publication that contains valuable, practical tips, secrets, and much more! Subscribe to our free Google Analytics newsletter today.


Looking to Purchase
Urchin 5 Software or Fee
Based Support?

We are a Urchin software certified service and support partner! Buy Urchin 5 software, profile packs, load balancing modules, campaign tracking, or fee-based support today.