1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tracking Multiple Domains with Analytics?

Discussion in 'Web Design' started by powerteam, Feb 17, 2012.

  1. powerteam

    powerteam Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    454
    Likes Received:
    246
    Location:
    Tucson, AZ
    Having trouble figuring out how to set up Analytics or if it is even possible to set it up this way.

    Say I have 5 sites that are are the same niche and I want to have 6 reports. I want the reports to be:

    Report 1 - Traffic for all 5 sites combined
    Report 2 - Traffic for Niche site 1
    Report 3 - Traffic for Niche site 2
    Report 4 - Traffic for Niche site 3
    Report 5 - Traffic for Niche site 4
    Report 6 - Traffic for Niche site 5

    How do I go about setting this up? I see that they have the tracking code for Multiple Top Level Domains, which is what I am thinking I need to use, but how do I also get it to show each site report individually as well?
     
  2. CWFire

    CWFire Newbie

    Joined:
    Dec 29, 2011
    Messages:
    15
    Likes Received:
    0
    If you do a search for "Tracking Multiple Domains with Analytics" and it's the in the top position, it looks like just a change to the analytic code that you add to the website.
     
  3. Salty

    Salty Junior Member

    Joined:
    Jun 23, 2010
    Messages:
    132
    Likes Received:
    36
    Location:
    Portland. Oregon
    Google analytics, get 5 different tags? Put them in the header/footer?

    I don't quite understand your question, or better yet, why it's an issue
     
  4. powerteam

    powerteam Regular Member

    Joined:
    Sep 30, 2009
    Messages:
    454
    Likes Received:
    246
    Location:
    Tucson, AZ
    Yeah I have read that a few times. Little confusing, but guess I need to stop reading it when I am so damn tired and just try it.

    The issue is when you have a few hundred sites and you want to be able to track stats for each domain and also be able to know how each group of niche related sites are doing as a hole as well instead of having to go to each individual report and add the traffic together. Much rather look at a few reports a day then a few hundred and have the option to be able to get certain details on individual domains if needed.

    But I found my answer....

    Edit the single site code with:
    Code:
    _gaq.push(
      ['_setAccount', 'UA-XXXXX-1'],
      ['_trackPageview'],
      ['b._setAccount', 'UA-XXXXX-2'],
      ['b._trackPageview']
    );
    and it reports to multiple trackers. So this way I can set one for the niche and one for each individual site. Well, at least I hope it's that easy.