Adding Google Analytics to WordPress based blog or website is pretty easy with the help of this WordPress Pluggin
The following steps will guide you through the process
1. Create a Google Analytics account
Create an account with google for using Google Analytics which is pretty straight forward.
2. Add the website
Inside your google analytics account, add a new profile for one of your website which you are interested in. Now you will end up with a stage where google gives a chunk of code which it asks you to embed in each of your webpage’s code. Don’t worry about it as we have a wordpress plugin which takes care of this. Just note down the google analytics id which will be something like UA-XXXXXXX-X from the code.
3. Install the Google Analytics plugin
Now download the WordPress Pluggin and upload to your /wp-content/plugins/ folder.
4. Activate the Google Analytics plugin
Login to the admin area(wordpress) of your website and check the list of plugins where you can see the new google analytics plugin which you just uploaded. Activate the plugin and you can see the “Settings” option under this plugin name. Go to settings option and the first setting is “Analytics Account ID” where you will have to enter the google analytics id which you have noted down at the end of step 2. Click “Update Settings” and you are done adding google analytics to your wordpress blog or website.
5. Make sure everything is fine
Just to cross check, go to your google analytics account and check for the “Status” column of this website where you should see the “Status” as “Tracking Installed”.
The above steps are for wordpress 2.8. It should be pretty much the same for other versions as well.