How to add google analytics to Wordpress

Discussion in 'WordPress' started by kks_krishna, Apr 21, 2007.

  1. #1
    HI,

    How to add google analytics code in the wordpress blog. Is there any plug-in to do this?
     
    kks_krishna, Apr 21, 2007 IP
  2. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Edit header.php of your current template and then add in the google analytics code within the <head> code
     
    Lordy, Apr 21, 2007 IP
  3. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #3
    Either add the code to your header or footer.....
     
    Richie_Ni, Apr 21, 2007 IP
  4. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #4
    Brandon Sheley, Apr 21, 2007 IP
  5. jshaffstall

    jshaffstall Peon

    Messages:
    136
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I added the analytics code to the footer template, and it worked fine. It's a pretty easy modification to make.

    Jay
     
    jshaffstall, Apr 21, 2007 IP
  6. jshaffstall

    jshaffstall Peon

    Messages:
    136
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I should have waited another minute before posting...that plugin looks mighty nice!

    Jay
     
    jshaffstall, Apr 21, 2007 IP
  7. jell

    jell Banned

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    where these files are located in word press
     
    jell, Apr 9, 2010 IP
  8. jell

    jell Banned

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Please guide us also
     
    jell, Apr 9, 2010 IP
  9. googlecrawl

    googlecrawl Banned

    Messages:
    1,739
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    how do you put google analytic in footer.it just work on header.php after head taq
     
    googlecrawl, Apr 9, 2010 IP
  10. vannarith

    vannarith Active Member

    Messages:
    1,814
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    50
    #10
    maybe u need to edit the header, but i found some theme which i could paste the code directly but caant remmember.
     
    vannarith, Apr 9, 2010 IP
  11. lvtim

    lvtim Well-Known Member

    Messages:
    291
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #11
    It's best to use a plugin that helps you insert codes in either your header or footer, like the Header-Footer plugin. If you go and edit your theme's header.php or footer.php, then the Analytics code will disappear if you change to a different theme. This won't be a problem if you use a plugin instead.

    1) Generate the Analytics code from the Google site.
    2) Install the Header-Footer plugin into your WordPress blog.
    3) Copy-paste the analytics code to the footer section in the Header-Footer admin page within WordPress.
     
    lvtim, Apr 12, 2010 IP
  12. thavara

    thavara Peon

    Messages:
    231
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Paste it in footer.php dude.
     
    thavara, Apr 13, 2010 IP