Have you ever wanted to show off your Google Analytics data to your blog visitors? If you sell advertising on your site then this is a very handy metric for advertisers to base their buying decision on. Unfortunately, Google doesn’t make this very easy at the moment but there is a WordPress plugin called Google Analyticator which will let you do just this. It also does a lot more :
Google Analyticator easily adds Google Analytics tracking support to a WordPress-powered blog. Google Analyticator also comes with an easily customizable widget that can be used to display specific information that is gathered by Google Analytics using the Google Analytics API. It supports all of the tracking mechanisms that Google Analytics supports such as external link tracking, download tracking, tracking without counting administrative users, and any other advanced tracking the user wishes to add. Google Analyticator works with a majority of themes as long as these themes provide the proper plugin hooks.
Install the plugin
You can also upload the plugin directly, via your wordpress admin panel by clicking Plugins > Add New > Upload > Install Now.
You will also need to enter your ftp settings there as well, your webhost will have provided these when you signed up.
Once the plugin is uploaded, visit your plugins page and click “activate” next to the plugin. You will now see a new menu item called “Google Analytics” under the “Settings” tab, click this and we can configure the plugin.
Configuring the Plugin
The first thing to do is authenticate the plugin with your Google Analytics account, click the link which says “Click here to login to Google” and then click “Grant Access”. You will then be redirected back to the plugin page, from the dropdown next to “Google Analytics account:” choose your blog.
Under the “Advanced Settings” section are some options to prevent Google Analytics from recording visits from the site Admin, Editors, Authors etc. You can also choose to not record activity from any logged in users – its up to you if you wish to enable this, personally I have left it out.
The next part under “Advanced Settings” is related to tracking links – you can record outbound links and downloaded files. If you wish to use this, enter a file extension to track downloads (.mp3 .zip etc). You can also prefix outbound links and download links, the default is “outgoing” and “download”.
The last part of the “Advanced Settings” is boxes where you can enter your Adsense ID if you have your Analytics and Adsense accounts linked together. You can also choose who can see the dashboard widget which shows your Analytics stats, set this to admin if you dont want authors and editors to see your stats. You can also disable the dashboard widget completely if you wish.
Public Display Widget
Now that you have set up the plugin, you need to add the widget to display your stats publicly. In your admin side menu, go to “Appearance” > “Widgets” and you will see a new widget available called “Google Analytics Stats”. Drag the widget to where you would like it to appear in your theme, enter a title for it and choose your blog from the dropdown box. You can then choose how many days data to display and can customise the colors to match your blog’s theme.
Once you are happy with the text and colors etc, hit “Save” and take a look at your blog to see the finished widget: