Help with installing Google Analytics on wordpress theme

Discussion in 'Google Analytics' started by thebloggerstore, Feb 25, 2011.

  1. #1
    Hello,
    I'm trying to install Google Analytics on my wordpress theme. Where would I place this tracking code in my wordpress blog? There seemd to be so many places I could place it but I want to make sure its the best spot so it will monitor all visitors to the blog.

    Where in the wordpres theme do I install it on what page or Stylesheet (style.css) or template's

    Thanks
    Steve
     
    Last edited: Feb 25, 2011
    thebloggerstore, Feb 25, 2011 IP
  2. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #2
    Okay... here it goes how and where...

    Login to your wordpress admin...

    Click on Apperance >> Editor.
    Now - choose the 'footer.php' page from the right sidebar - click this to open.
    Enter your google analytics code just before </body></htmll>

    It will now carried over to all the pages in your blog.

    Hope this helps...
     
    infogle, Feb 25, 2011 IP
  3. Mailerguy

    Mailerguy Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    just use the google analytics plugin. it's easy.
     
    Mailerguy, Feb 26, 2011 IP
  4. sebasago

    sebasago Peon

    Messages:
    206
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That works, but Google requests the new Analytics code to be placed inside the <head></head> tags now.

    Do what infogle said only do it to your "header.php" and add the analytics code just before the </head> tag.
     
    sebasago, Feb 27, 2011 IP
  5. markhall12

    markhall12 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think infogle is right . we can installing Google Analytics on wordpress theme.
     
    markhall12, Mar 4, 2011 IP
  6. Backpackingaddictz

    Backpackingaddictz Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    just do a search for a google analytics plugin, install it and follow the instructions...easy done
     
    Backpackingaddictz, Mar 16, 2011 IP
  7. SSC

    SSC Active Member

    Messages:
    995
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Install analytic plugin for wordpress (if you don't know/need to edit your footer)

    Follow infogle (if you think you can edit it yourself without installing any pluginns)
     
    SSC, Mar 16, 2011 IP