1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Where to put google analytics code

Discussion in 'Google Analytics' started by gogetit, Sep 7, 2011.

  1. #1
    Should we add the google analytics code to all the pages in our website or only the homepage? any suggestions?

    If sites have 100 pages then how can you put tracking code instantly in every pages??
     
    gogetit, Sep 7, 2011 IP
  2. Icecube_media

    Icecube_media Peon

    Messages:
    656
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    You can put it out just before closing head tag or before closing body tag.
     
    Icecube_media, Sep 7, 2011 IP
  3. gogetit

    gogetit Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think you didn't get my question. I'm asking "Should we add the google analytics code to all the pages in our website or only the homepage?"
    & second thing google analytics code before closing </body> tag is recommendable.
     
    gogetit, Sep 8, 2011 IP
  4. gazraz

    gazraz Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It goes inbetween the <head> </head> unless your using a cms or excommerce cart/site, then use the admin backend to insert it
     
    gazraz, Sep 8, 2011 IP
  5. catzilla

    catzilla Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    You need to put the code on every page that you want to track
     
    catzilla, Sep 8, 2011 IP
  6. joesmith1608

    joesmith1608 Peon

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    We put analytics code on each page just above the closing body tag but now as i know google say put just above clsoing tag of head.If a site have many pages then to put code on each page instantly in php we can use incude or requre function.
     
    joesmith1608, Sep 8, 2011 IP
  7. goramoorthy

    goramoorthy Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi,
    Need to put the tracking code in the every page of a website which u want to track
     
    goramoorthy, Sep 12, 2011 IP
  8. DavidWincent

    DavidWincent Peon

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes, it is necessary that you place the code in all the pages that you need to track. Having 100 pages doesn't mean that you paste the code on each page...just pick out the important pages you want to track the user interaction for and place the code on them.
     
    DavidWincent, Sep 13, 2011 IP
  9. gogetit

    gogetit Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks all for your valuable suggestion...
     
    gogetit, Sep 13, 2011 IP
  10. Sonam Singh

    Sonam Singh Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You put your code on That pages in which you want to get traffic, Put it out just before closing head tag or before closing body tag.It will be activate at the same time but some time in after 24 hours.after the code activation you can see the users/clients reflection with the help of Google analytic of the particular pages
     
    Sonam Singh, Sep 13, 2011 IP
  11. rabnebanadijodi

    rabnebanadijodi Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    which page u want to traffic know put ur tage on that page in head tag before closing this tag.
     
    rabnebanadijodi, Sep 13, 2011 IP
  12. unknownpray

    unknownpray Active Member

    Messages:
    3,831
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    70
    #12
    The best place to put the GA code is below the <head> and above the <body> tag if there is a simple html page. If there is a separate header page then it is the best place to place the code.
     
    unknownpray, Sep 13, 2011 IP
  13. Jackob2916

    Jackob2916 Peon

    Messages:
    552
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Is there any other place where you can add that code???
     
    Jackob2916, Sep 13, 2011 IP
  14. aruninfo

    aruninfo Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    If you have a Static website then you have to add Tracking on all pages. But if you have a Dynamic website then you can add Tracking code on Home Page only. Because in dynamic website all contents coming from Database. But in Static website all pages are separated with file extension like .html, .php, .aspx...

    And Google Tracking Code always put before </body> tag.
     
    aruninfo, Sep 14, 2011 IP
  15. weknowonlinemarketing

    weknowonlinemarketing Peon

    Messages:
    681
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    If you have 100 of web pages then simply create a file with .php extension and includes the file to each page. Generally you need not to track every page. So first of all sort out the pages that you need to track and then add the codes in it.
     
    weknowonlinemarketing, Sep 14, 2011 IP
  16. Jackob2916

    Jackob2916 Peon

    Messages:
    552
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Is it so?? for static site we have to put code in all pages??
     
    Jackob2916, Sep 15, 2011 IP
  17. Rohit Malhotra

    Rohit Malhotra Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    You have to put Google analytics code before </head> tag . It will be best place to put analytics code.
     
    Rohit Malhotra, Sep 15, 2011 IP
  18. kriishna

    kriishna Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    You can post that code in your sites sours page in the bottom before body.
     
    kriishna, Sep 15, 2011 IP
  19. rubla

    rubla Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Put it before </head> tag and on the index page.
     
    rubla, Sep 23, 2011 IP
  20. Antoine49

    Antoine49 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    It really needs to be on all pages - if not you won't really track anything other than a small portion of your traffic and won't underatand what you visitors are doing once on your site
     
    Antoine49, Sep 23, 2011 IP