using analytics in php

Discussion in 'Programming' started by kinggomez, Sep 7, 2007.

  1. #1
    How do i put the google analytics code into my forum homepage, it uses php and google says use it in a comman include or template. Not sure how to do this - can anybody help?

    Thanks
     
    kinggomez, Sep 7, 2007 IP
  2. Coder

    Coder Banned

    Messages:
    311
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Google is suggesting you to put this code in common page like connection file which is used in all the pages of your site so that all the pages of your site will be tracked.

    If you want to track only homepage then you can put the code at the end of the homepage.

    That's It!!

    Nothing to confused about this.
     
    Coder, Sep 7, 2007 IP
  3. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #3
    I put it in my footer include so it goes on every visible page
     
    m0nkeymafia, Sep 7, 2007 IP
  4. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Yes, the code is in my footer on my site.
     
    Silver89, Sep 8, 2007 IP
  5. livehybrid

    livehybrid Active Member

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    I advise you put in the footer!
     
    livehybrid, Sep 9, 2007 IP