Adding Google Analytics to Wordpress

• Apr 4th, 2008 • Category: Tips and Tricks

Google Analytics is a popular and very useful tool for webmasters to track statistics on their website.

It is a free product and has recently had a major design overhaul, better displaying statistics and data that will help you improve your website.

How to insert Google Analytics code into Wordpress:

Once you have signed up for an account from Google, add your website by following the screen instructions and when you are shown the code, go to the “New Tracking Code (ga.js)” option, and copy the code.

On your Wordpress dashboard, go to:

Design > Theme Editor

Now choose the template you wish to edit, and from the sidebar go to the Header (header.php) link.

Find where the <BODY> tag begins, and paste the code AFTER that.

Now go back to Google Analytics and wait for it to give you confirmation.

Optimise and improve :-)

Tip: To make sure that when you view your website the stats aren’t counted by Google, go to your Analytics account, and proceed to Filter Manager.

Choose “Exclude all traffic from an IP address” and input your IP address.

Press save changes.

2 Responses »

  1. Saturday In searching for sites with content on Squeeze Pages or Affiliate sites and specifically for affiliate websites, I found your site to be useful and full of content.

  2. Excellent blog. good luck.

Leave a Reply