About google analytic code

Discussion in 'Search Engine Optimization' started by freshware, Jun 28, 2010.

  1. #1
    Hello Friends,

    I want to know that how we can add google analytic code in wordpress blog . Please friends suggest me.
     
    freshware, Jun 28, 2010 IP
  2. carleisenstein

    carleisenstein Peon

    Messages:
    253
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Some of the newer templates have an option in the template settings, which makes it very easy. Alternatively, just go to your template directory (eg. /wp-content/themes/yourtheme/) and edit footer.php - just add the tracking code directly before the </body> tag.
     
    carleisenstein, Jun 28, 2010 IP
  3. ethan.hunt

    ethan.hunt Peon

    Messages:
    292
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Go to Google Analytic web page and enter your website
    it will give you a html code
    paste it in your website
    then wait for Cache
    once its cached you can track your traffic
     
    ethan.hunt, Jun 28, 2010 IP
  4. ajelina

    ajelina Banned

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    just go to your template directory (eg. /wp-content/themes/yourtheme/) and edit footer.php - just add the tracking code directly before the </body> tag.
     
    ajelina, Jun 28, 2010 IP
  5. vinoth2vinoth

    vinoth2vinoth Peon

    Messages:
    691
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #5
    If you are not sure how to add the code manually, you can install plugins directly from the wordpress plugins area

    Select plugins --> Click on add new --> Type google analytics --> you will get many plugins --> install the one which is very easy for you to manage.
     
    vinoth2vinoth, Jun 28, 2010 IP
  6. danielchloe

    danielchloe Peon

    Messages:
    230
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hey this one really helped me. thanx a ton.
     
    danielchloe, Jun 28, 2010 IP
  7. v2interactive

    v2interactive Peon

    Messages:
    128
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Actually, it's better to put the code as close to the top as possible. I would suggest using the header.
     
    v2interactive, Jun 28, 2010 IP
  8. deltagci

    deltagci Peon

    Messages:
    636
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can put google analytic code on footer.php
     
    deltagci, Jun 28, 2010 IP