Adding Google Analytics to WordPress
In this article I will be explaining how to add Google Analytics to your WordPress dashboard using the Google Analyticator plugin for WordPress.
To start with download the Google Analyticator plugin from this link, when it has finished downloading unzip the file and copy the google-analyticator folder to your plugin directory (wp-content > plugins) and upload it to your server. Once the folder has uploaded go to the Plugins page in your WordPress admin area and activate the Google Analyticator plugin. This will create a new link under the Settings tab titled ‘Google Analytics’ click this link and switch the first box from ‘Disabled’ to ‘Enabled’ and click the ‘Save Changes’ button at the bottom of the page, this will switch on Google Analytics logging.
Below this box you will notice a link that asks you whether you would like to ‘Click here to login to Google, thus authenticating Google Analyticator with your Analytics account.’ click this link and login to the Google account that you have set up your websites analytics account within.
Once you have logged in and granted access to the Google Analyticator plugin you will be returned to the settings page that should now have a drop down menu next to the ‘Google Analytics account’ label. Select the account that you would like to enable tracking for and click the ‘Save Changes’ button at the bottom of the page again.
Now when you return to the WordPress dashboard there should a new Google Analytics tab that will display the last 30 days of stats.
One thing to note is that this will install the Google Analytics tracking code onto your website for you, if you have tried to include the tracking code into your theme in the past it would be a good idea to locate it and remove it so you are not using the same chunk of code twice.