How to generate Google Analytics Code?

Discussion in 'Google Analytics' started by clive2, Apr 27, 2011.

  1. #1
    I have 3 websites. The url is as follows
    abc.com
    abc.com/xyz
    abc.com/pqr

    abc.com is a main site. I want to generate google analytics code for abc.com/xyz
    Should I select sub domain option while creating GA code for abc.com/xyz or domain option?
     
    clive2, Apr 27, 2011 IP
  2. poxc2006

    poxc2006 Greenhorn

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    13
    #2
    I don't think you should select the subdomain option. The first thing that comes to my mind is to use the same exact code and different profiles for each domain with custom filters in each profile to segment one domain vs another. Make sure to create one profile that is "raw data" with no custom filters so if you screw up you still have all your data.

    Let me preface by saying never used custom filters this way before, however I have done a lot of subdomain integration and used custom filters for other purposes, so it seems to me that it would work.

    The best source of info I've found on advanced Google Analytics is Justin Cutroni's book Google Analytics: Understanding Visitor Behavior. It goes into advanced integrations quite in depth and was published in late 2010 so it's pretty up to date.
     
    Last edited: Apr 28, 2011
    poxc2006, Apr 28, 2011 IP
  3. AdWorkMedia

    AdWorkMedia Member

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    28
    #3
    Definitely don't select the sub-domain option. You should be able to use the same analytics code for all 3 of those sites. To navigate to the generate code page >> click edit on your analytics overview page.
     
    AdWorkMedia, May 9, 2011 IP
  4. patrick2009

    patrick2009 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    In Google Analytics setup, I set off a long time ago
     
    patrick2009, May 16, 2011 IP
  5. sundeep.shetty03

    sundeep.shetty03 Peon

    Messages:
    257
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    just u have to integrate the code with ur main domain ...lll!!!
     
    sundeep.shetty03, May 16, 2011 IP
  6. unknownpray

    unknownpray Active Member

    Messages:
    3,831
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    70
    #6
    The code should be the same for the sites altogether. No need to add the same code on different sub-domains.
     
    unknownpray, Aug 13, 2011 IP
  7. alvinperez

    alvinperez Well-Known Member

    Messages:
    223
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    #7
    I think there is one option , subdomain option
     
    alvinperez, Aug 16, 2011 IP