How to place analytics code on each page of big/huge site??

Discussion in 'Google Analytics' started by shailenderkumar, Aug 31, 2011.

  1. #1
    I've a big site around 1000 pages and want to upload Google analytics code on all pages. I know that you have to put your analytics code on each page to get exact traffic statistics. Is their any short way to upload codes on each page as by manually uploading analytics code on each page will take huge time.
     
    shailenderkumar, Aug 31, 2011 IP
  2. sandip.rd

    sandip.rd Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I see many websites which have a single page for head section of all pages. find out if your site has this kind of any page and put your code there.
    Otherwise you have to add manually in each page.
     
    sandip.rd, Sep 2, 2011 IP
  3. Yehyapal

    Yehyapal Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    OR open all of them in NotePad ++ (guessing you have Windows, you must download notepad ++) then CTRL + H, replace </head> with *your tracking code* + </head>

    It will tell it did 'n' of changes.
    N = number of webpages you have. (you must open all with Notepad ++, don't worry it will be 1 window with multiple tabs)


    Then re-upload.
     
    Yehyapal, Sep 2, 2011 IP
  4. phunsukh wangdu

    phunsukh wangdu Active Member

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #4
    You can add analytics and webmaster code in footer, it'll display on all the pages of your site.
     
    phunsukh wangdu, Sep 2, 2011 IP
  5. siyamythew

    siyamythew Peon

    Messages:
    117
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Go for website manager and add GA code
     
    siyamythew, Sep 2, 2011 IP
  6. angelaexpert

    angelaexpert Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Just open the file footer or header and place the code there. It will track all the page visits.

    But try avoiding placing it on header. Instead place it on footer.
     
    angelaexpert, Sep 2, 2011 IP
  7. unknownpray

    unknownpray Active Member

    Messages:
    3,831
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    70
    #7
    Well if you have a huge site with around a 1000 pages and they share a common header of footer page that appears on every page of the site, then just Copy the GA code and paste it just above the <body> tag in the header page.
     
    unknownpray, Sep 3, 2011 IP