Which plug in to put my Google Analytics code?

Discussion in 'WordPress' started by bumba1988, Feb 22, 2010.

  1. #1
    Hi,

    I will like to know about the specific plug in to be used where I can put my Google Analytics code to see how the site is performing. Otherwise, if I can put the code in some where in my Theme Editor, actually which .php file to use for this purpose? I mean which .php file should I use to put the Analytics code?

    Thanks.
     
    bumba1988, Feb 22, 2010 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Put the code before the </body> in your footer.php. You can also use a plugin like this if you don't want to edit your files directly.
     
    mizaks, Feb 22, 2010 IP
    bumba1988 likes this.
  3. addlinkurl

    addlinkurl Well-Known Member

    Messages:
    2,409
    Likes Received:
    129
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #3
    if the footer.php encrypted, you can place the code after <body> in header.php.
     
    addlinkurl, Feb 22, 2010 IP
  4. bumba1988

    bumba1988 Active Member

    Messages:
    792
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Thanks to both of you for your valuable suggestions. I used the plugin to track my website visitors.
     
    bumba1988, Feb 23, 2010 IP
  5. digital29

    digital29 Peon

    Messages:
    462
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    it is kinda like a bad idea to put it in header...it will slow down the loading time
     
    digital29, Feb 23, 2010 IP
  6. bumba1988

    bumba1988 Active Member

    Messages:
    792
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    90
    #6
    Thanks for your advice. I put the code in the footer though.
     
    bumba1988, Feb 23, 2010 IP