How to add Google Analytics code in wordpress blog

Discussion in 'Search Engine Optimization' started by anna30, Mar 18, 2012.

  1. #1
    Hi,

    I have created a free blog in wordpress. It is http://wirelesscctvcamera.wordpress.com/. It has got PR0. Now, i want to add Google Analytics tracking code so that i can track the visitors. Please suggest me how to add Google analytics tracking code in free wordpress blog.

    Thanks in advance for your favour.
    Anna
     
    anna30, Mar 18, 2012 IP
  2. wordpecker

    wordpecker Well-Known Member

    Messages:
    743
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Go to "Appearance" from Wordpress dashboard. Chose the last option "Editor". Find the "Header.PHP" file from the heap. Open the file. From keyboard press ctrl+F
    Type: </head> paste the Google Analytics code and save the file.

    Alternatively, go to "FOOTER.PHP" and paste the code before </body>

    header.php and footer.php files are conventional in any wordpress theme. So heck at all.
     
    wordpecker, Mar 18, 2012 IP
  3. linkEnergyzer

    linkEnergyzer Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #3
    or some plug in can add you code automatically, analytic, webmaster, into one simple plug in :)
    like...
    I am forgetting one, can anybody remind me
     
    linkEnergyzer, Mar 18, 2012 IP
  4. indiannews007

    indiannews007 Member

    Messages:
    239
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #4
    Hi,
    Nice way to know that we can add analytic code in word press blog.
     
    indiannews007, Mar 18, 2012 IP
  5. wordpecker

    wordpecker Well-Known Member

    Messages:
    743
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Not a good idea to use a wp plugin always. :)
     
    wordpecker, Mar 21, 2012 IP