How to find out what are the most popular posts on your blog by putting Google Analytics to your blog. On Wednesday I highlighted what were some of the most popular posts on Making A Mark in 2008. I was able to do this using Google Analytics which then prompted a number of requests for me to tell people how to get Google Analytics for a blog.
11" x 8, pencil
copyright Katherine Tyrrell
First off I only know how to do this for Blogger (and my two principal websites). I'm sure it's possible for other types of blogging webware but can't say for sure how to do this (perhaps others could comment?). It really depends on whether or not you can access the html for your template.
If you're the sort of person who likes to have the instructions printed out and sitting next to you while you try to do something, I've produced a guide (pdf file) which you can download for free and print out.
Making A Mark Guide - Installing Google Analytics on your Blog is now available and is also listed on the website page for Making A Mark Publications.
How to get Google Analytics on your blog
First things first - access and awareness. You'll need a Google Account and you need to know a very little about what Google Analytics is.
- To access Google Analytics you'll need to get a Google Account - which is a stage which all Blogger owners can miss out as you've already got one!
Google Analytics is free to everyone, whether you are an advertiser, publisher or site owner.
- This is the Google Analytics site - for those using google.com and for those using google.co.uk. Both provide an explanation of features and a tour. Don't be put off! Analytics is actually designed for websites which are a great deal more complex than a blog and is not as user-friendly as it could. It took me a long time to get round to getting to grips with Analytics and that's because it appears to be far from simple. What Google ideally needs to do is create a cutdown version for Bloggers. At the moment it's a bit like being confronted with the whole of Photoshop when all you want is PS Elements - just look at this! You can take the tour (but please bear in mind my comment about Photoshop). However, the good news is that if you've ever inserted html code into the template then you should be able to do this.
- This is the Google Analytics Help Centre - always a good place to start! We're now going to look at sign-up and installation
- Note that the Blogger Help Centre is completely unhelpful! This is how Blogger tells you to install Google Analytics (!) Like I said - Google hasn't got its head around the idea of a simple front end!
OK - once you've got the Google Account you need to go to 'My Account' when in the Google Browser view and click on Analytics - then you need to sign up for Analytics. Alternatively access it via http://www.google.com/analytics/en-GB/ (The access site will vary depending on your country. Another sign-up site is or http://www.google.com/analytics/sign_up.html . Check what it says in the Help Centre relevant to your country).
To create an Analytics account:For the nickname, I suggest you use the name you call your blog (as opposed to whatever it's official title is). If you've only got one blog then 'my blog' is just fine!
Reference: Step 1 - Create a Google Analytics account
- Visit http://www.google.com/analytic/en-GB/
- Enter your Google Account email and password and click Sign In. If you don't have a Google Account, click Sign up now to create one.
- Click Sign Up.
- Enter your Website's URL, making sure to select either http:// or https:// from the drop-down list. Enter a nickname for this account in the Account Name field and then, click Continue.
- Enter your contact information and click Continue.
- Read the Google Analytics Terms of Service. If you agree to these terms, select the Yes tick box and click Create New Account to continue.
Installation of Google Analytics
The Google Help Centre has an Installation Guide which provides a series of steps for moving on to the next step. The following are from the UK site
- Step 2 - Configure your profile I entered the URL for my blog (makingamark.blogspot.com), the country, the timezone and ignored the rest. I think you are automatically added as the Administrator
- Step 3 - Edit the tracking code for custom website setups - my recollection is that there is no need for Blogger people to edit the tracking code
- Step 4 - Add the tracking code to your pages Now this is the bit where it gets tricky - but only as tricky as anything else where you need to add in an html snippet of code. You now need to add in the Google Analytics code to the Blogger template you're using. You MUST insert the code which is specific to your profile. Read this first - then I'll tell you how easy it is!
Google Analytics only tracks pages that contain the Google Analytics tracking code. You will need to add this code to each page of your site, either manually or through the use of includes or other methods.
To access your tracking code:
- Sign in to Google Analytics.
- From the Analytics Settings page, find the profile for which you would like to retrieve the tracking code. Please note that tracking codes are profile specific.
- From that profile's Settings column, click Edit.
- At the top right of the Main Website Profile Information box, click Check Status.
- Your tracking code can be copied and pasted from the text box in the Instructions for adding tracking section.
Basic installation Copy and paste the code segment into the bottom of your content, immediately before the body tag of each page that you are planning to track. If you use a common include or template, you can enter it there.
(Note refer to the step 4 page for correct quoting of the html code - which won't appear correctly in this blog post)
- Essentially in Blogger you now need to go to Layout and then you need to click the 'edit html' tab. Now is not the time to go and make a cup of coffee or answer the phone. Be focused while you've got this tab on screen to avoid doing anything silly which makes your blog 'look' go bonkers. You do NOT need to expand widgets. Instead scroll carefully right down to the very end of the html code where you will see the the end "body" code. Copy the Analytics code and then insert it just before this tag. In my template it says it comes just after the "end outer-wrapper" note. (Note refer to the step 4 page for correct quoting of the html code - which won't appear correctly in this blog post) Now save your template (just below - the orange button). There's no point in doing a preview - you won't see anything.
- ....and that's it! Google Analytics will begin collecting traffic data. The data will be displayed in your reports within 24 hours.
How to find out what are the most popular posts on your blog
Now obviously Google Analytics can't tell you which are your most popular posts until you've generated some data so I'd suggest you make a note in your calendar of a date - like the end of the month - when you're going to take a look to see which ones did the best at attracting traffic to your site.
What follows is what you need to identify your most popular posts:
- In the Overview screen - click on 'view report' (to the right of your blog URL)
- In the Dashboard view - click on 'Content' in the menu
- View the Top Content (bottom left) - click on full report
- In View Report - go to the top right of the screen where it shows you the dates for the period under review. Click the arrow icon and it will reveal a calendar
- Now define the date range for under review. You need to set a start date and an end date and then click 'apply'. Your start date can be any date AFTER your Google Account started. If I put in the date that my blog started I get a flatline on the chart up to the date when my Google Analytics Account started and I put the code on my blog.
- You can then view the most popular posts in order of popularity. The table shows: the number of page views; unique page views; time of the page and the percentage who exited the blog after reading that post.
- I took a look at the results for the last week this morning. In the last week all the top posts kept people on my blog for at least 3 minutes. The post which kept people on the blog longest was Making A Mark in 2009 - The Plan. Blogging Art in 2008 - The Making A Mark Awards (Part One) post had the lowest bounce rate and was very successful at keeping people on the blog (ie it made visitors want to read more).
Do let me know if you find any of the above puzzling and I'll try to explain better - however I'm afraid I can't offer to do a 'handhold' on this one.
For those who now want to know more about Google Analytics here is a summary of the free support and other free resources