1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Installin G.A on Wordpress Blog - Need Help

Discussion in 'Google Analytics' started by wingman80, Jul 1, 2010.

  1. #1
    Hey all..

    Im new here. Just launched an Online Gift Guide for Sports Enthusiasts at http://www.sportsblend.com.

    I am not a programmer and wondering how to "properly" install GA on a wordpress blog. Is there a plugin? Can I do it directly from the dashboard or do I have to do it via the ftp or modify php files..

    Thanks
     
    wingman80, Jul 1, 2010 IP
  2. silverbax

    silverbax Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Best way to do it is to go to the Editor (on the left hand side options under 'Appearance') and then on the right hand side, you should see a page listed named 'Sidebar'. Clicking on that will load the page code into the central window.

    Scroll to the bottom, and find the last tag that says '</div>'. Paste your GA code snippet (from the GA site) right above this line.

    That's it. The reason to do it on the sidebar is because that page should get loaded every time (I've looked at your site and this would be true for you). Putting it at the bottom of the page means the entire page loads before GA counts it, which will be more accurate.
     
    silverbax, Jul 1, 2010 IP
  3. FunMan

    FunMan Member

    Messages:
    315
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Download the Wordpress plugin from http://wordpress.org/extend/plugins/google-analyticator/ and install in your wordpress blog.
    Hope this help.
     
    FunMan, Jul 3, 2010 IP
  4. martial01

    martial01 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can add it in your footer.php file as well manually.
     
    martial01, Jul 5, 2010 IP
  5. itsallwhite

    itsallwhite Peon

    Messages:
    607
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would add it to the header or footer, if you use a theme like thesis there is an option within the admin, I would be careful about using too many plugins as it will slow down your website as there are a lot of dynamic php calls.
     
    itsallwhite, Jul 5, 2010 IP
  6. aguss

    aguss Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would add it on footer.php as well. Just make sure you don't forget to add the line again whenever you change your theme.
     
    aguss, Jul 6, 2010 IP
  7. RadioBounce

    RadioBounce Banned

    Messages:
    4,171
    Likes Received:
    16
    Best Answers:
    1
    Trophy Points:
    0
    #7
    I would add it to the footer.php aswell, I don't know why someone suggested sidebar, footer is loaded all the time also :S and it's right at the bottom.
     
    RadioBounce, Jul 6, 2010 IP
  8. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #8
    I made a post about this a few days ago, which may help out a lot:

    http://www.lazyscripter.com/2010/07/how-to-setup-google-analytics-for-your-wordpress-blog/
     
    zacharooni, Jul 6, 2010 IP
  9. silverbax

    silverbax Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #9
    Footer is not loaded all of the time, dependent on theme or page.
     
    silverbax, Jul 6, 2010 IP
  10. johny2006

    johny2006 Peon

    Messages:
    362
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Google analytics now provide tracking code that need to/can be placed in the header. It is sure shot that header will be loaded each time.

    So from your wordpress dashboard >go to> appearance >go to>editor

    There you select header.php. Then header.php file will be loaded in the box.

    Look for </head> tag.Then you find the code snippet from Google analytics, copy and paste it, just before the closing </head> tag.

    Don't forget to Save/update the file

    Then there is traditional way to install it as well.

    Refer these links for more info

    For the above mentioned installation

    http://www.google.com/support/analytics/bin/answer.py?hl=en_US&answer=174090&utm_id=ad

    For traditional installation

    https://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55488

    One last thing..

    It happened to me... I forgot where to find my snippet code again..I had to search a lot to find it. I found this article useful for that.

    Where can I find my tracking code from within my Google Analytics account?
     
    johny2006, Jul 7, 2010 IP
  11. RadioBounce

    RadioBounce Banned

    Messages:
    4,171
    Likes Received:
    16
    Best Answers:
    1
    Trophy Points:
    0
    #11
    Really? Damn I didn't know that.
     
    RadioBounce, Jul 7, 2010 IP
  12. hiteshb

    hiteshb Well-Known Member

    Messages:
    1,392
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    155
    #12
    Never knew that. It does happen if you have script with template engine as smarty.
     
    hiteshb, Jul 7, 2010 IP