Actions

Google Analytics

From Unusual Light Wiki

Revision as of 13:27, 11 November 2013 by Jamesdodd (Talk | contribs)

Google analytics is in our opinion the best option for keeping track of your visitor statistics. Other tracking tools will also work in a similar way, but we only supply addons to view the stats in the dashboard for google analytics.

Here is our guide to getting started.

Sing up to analytics

To get google analytics to start collecting your website stats first thing you need to do is sign up to their service: http://www.google.com/analytics/ - you should not require a premium service

Get your tracking code:

Sign in to your Analytics account, and go to the admin page. Select an account from the dropdown in the Account column. Select a property from the dropdown in the Property column. Click Tracking Info.

Add tracking code to your site

Head to your theme preferences area (found in the appearance menu), click the advanced options and then paste your tracking code in the custom headers box

The Custom headers section

This code should look something along the lines of this:

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-4917357-1']); _gaq.push(['_trackPageview']);

(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>


add some dashboard addons

Bother of these addons can be used at the same time.



Google Analytics Dashboard

Gives you a visitor graph on your homepage, and small individual post graphs on the post lists pages

Example of Google Analytics Dashboard



Analytics 360

More in-depth information including visitor regions as well as working with your mailchimp campaign to show you site activity after you've sent a campaign.

Example of Analytics 360