Google Analytics in multiple sites

Discussion in 'Google Analytics' started by midi, Apr 15, 2011.

  1. #1
    Hello everyone,

    I hope that someone can help me and show me how I can set up my Google Analytics in my site. I have a site with 10 subdomains and a main domain (subdomains are going to increase to many more). I would like to arrange the analytics in the following way.

    1. Be able to track visitors that go to each subdomain separately.
    2. Be able to track overall visitors to eac subdomain....

    So for example, I would like to track the following:

    1. Subdomain1.domain.com - 156 visitors
    2. Subdomain 2.domain.com - 253 visitors
    3. Subdomain 3.domain.com - 124 visitors

    Domain.com visitors - 312 visitors (track visitors over all domains).

    I hope it is clear what i am trying to do. Thanks,
     
    midi, Apr 15, 2011 IP
  2. simple007

    simple007 Well-Known Member

    Messages:
    1,357
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    130
    #2
    wow, that seems like a pretty big project ;)
     
    simple007, Apr 16, 2011 IP
  3. midi

    midi Active Member

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    yep... a large one.. and i would like to understand what is happening between domains... and track visits per subdomain as well as also in the full domain.
     
    midi, Apr 16, 2011 IP
  4. kshu

    kshu Member

    Messages:
    31
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #4
    I don't have much experience with subdomains but this is what first comes to mind: add the same analytics code to the whole project and create advanced segments for each subdomain. For example create an advanced segment and add content>page as a dimension with the condition "starts with", value=subdomain1 (test a few conditions there, "starts with" might not be the right one). The same with the rest of subdomains. After that, just select this segment in your regular reports and start comparing.

    Like I said, I don't have experience with subdomains so I'm looking forward to other opinions on this.
     
    kshu, Apr 16, 2011 IP
  5. midi

    midi Active Member

    Messages:
    247
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    midi, Apr 16, 2011 IP
  6. kshu

    kshu Member

    Messages:
    31
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #6
    Thanks for sharing the research.
     
    kshu, Apr 16, 2011 IP
  7. shuiping56

    shuiping56 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you must copy the code of google analytics,and paste it to the</head> befor of html tag,

    for example:<head>google's code</head>
     
    shuiping56, Apr 17, 2011 IP