Wordpress and Google Analytics

Discussion in 'WordPress' started by bluemanteam, Jan 25, 2008.

  1. #1
    I was just wondering what wordpress file people add the google analytics code to? Header.php, foot.php, or does it matter?
     
    bluemanteam, Jan 25, 2008 IP
  2. yogesh sarkar

    yogesh sarkar Well-Known Member

    Messages:
    1,740
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Once you log into the admin area, go to theme editor and there choose footer template to edit. Place the code in this file, at the bottom.
     
    yogesh sarkar, Jan 25, 2008 IP
  3. cdpm

    cdpm Banned

    Messages:
    248
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah, it depend on the themes..but normally in footer.php..
    paste it before the

    </body>
     
    cdpm, Jan 25, 2008 IP
  4. WebGeek182

    WebGeek182 Active Member

    Messages:
    510
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    95
    #4
    WebGeek182, Jan 25, 2008 IP
  5. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the suggestions. I was actually just planning on adding the code to the footer until I read your post.

    Other then the additional tagging benefits, is there any other reason to use a plugin for this?
     
    bluemanteam, Jan 25, 2008 IP
  6. walkere

    walkere Active Member

    Messages:
    112
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #6
    If you change themes, you don't need to remember to add the code again. Not a big deal, but a minor convenience.

    - Walkere
     
    walkere, Jan 25, 2008 IP
  7. Veej

    Veej Active Member

    Messages:
    364
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Everyone has covered the reasons pretty well here, but yes, there are advantages and if you'd like more information, check out this link.
     
    Veej, Jan 25, 2008 IP
  8. WebGeek182

    WebGeek182 Active Member

    Messages:
    510
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    95
    #8
    Exactly what I was going to say.
     
    WebGeek182, Jan 25, 2008 IP
  9. bluemanteam

    bluemanteam Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks guys, I've just added the code manually for now but may switch to the plugin down the road.
     
    bluemanteam, Jan 25, 2008 IP