where to put google analytics code?

Discussion in 'HTML & Website Design' started by blogspot, Mar 29, 2008.

  1. #1
    Hi,

    I am trying insert google analytics code on my wp blog.
    Should I go through cpanel?
    What files?

    Thanks
     
    blogspot, Mar 29, 2008 IP
  2. camp185

    camp185 Well-Known Member

    Messages:
    1,653
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    180
    #2
    I put it in my selected theme footer file, right before the body tag.
     
    camp185, Mar 29, 2008 IP
  3. arwen54

    arwen54 Active Member

    Messages:
    632
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    60
    #3
    yes, exactly...
    to expand on that:
    in your WordPress admin click "Presentation", Click "Theme Editor"
    look on the right hand side where all the files are and select "footer"

    insert the Google code and save...

    should you get an error message saying something to the effect that the file isn't writable..then you must go to your cpanel, then file manager, and navigate to your theme folder and change permissions on all the files there to 666

    good luck!
     
    arwen54, Mar 29, 2008 IP
  4. blogspot

    blogspot Well-Known Member

    Messages:
    3,152
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    150
    #4
    Thanks for the info!
     
    blogspot, Mar 29, 2008 IP
  5. TFGBlog.com

    TFGBlog.com Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    put in the footer.
     
    TFGBlog.com, Mar 29, 2008 IP