WPLift is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission.

How To: Display your Google Analytics to the Public

Last Updated on June 5th, 2019

Published on February 17th, 2011

Tags: ,

Share This Article

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

Download the Google Analyticator, then upload it to your wp-content/plugins folder via ftp. You can download a free ftp client called Filezilla for this purpose.

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.

User Tracking

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.

Article Continues Below

Link Tracking

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”.

Other Settings

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:

Oliver Dale is the founder of Kooc Media, An Internet Company based in Manchester, UK. I founded WPLift in 2010.