Archive for the 'WordPress' Category

Where are you coming from: Search referrer and contextual related post/information

Just before Christmas Brian Kelly wrote a post on Trends For University Web Site Search Engines, which gives an overview of which search engines [Edit: Russell Group*] universities are using on their websites (75% using Google products) . This combined with my interest in Learning Analytics (plug: it’s week one of the open course LAK11 Learning and Knowledge Analytics), got me wondering how many institutions uses information about their visitors to customise content. There are a number of ways you could potentially do this from using media campaigns to using one of the Facebook Social plugins.

*Brian Kelly has kindly pointed out this was a survey of Russell Group institutions and all all universities as originally implied

The question of what is already being used is probably best answered by someone else, like Brian, instead I’m going to highlight one other simple way that you might customise the visitors experience (and at the same time improve how information on this blog is presented), by using Search Referrer information.

For the majority of users when they navigate around the web they leave a ‘referrer’ trail. When they land on a page that site can usually see where the person came from (if you read the HTTP Referrer entry on wikipedia you’ll see why this information isn’t always available). Monitoring tools like Google Analytics can track referrer information so that you can track where your traffic is coming from. I use Google Analytics to monitor traffic to this site and whilst I don’t use this data extensively (although I did modify the Google Analyticator WordPress plugin to display top posts based on Analytics data), it is useful information to check the general health of my blog.

When monitoring referrer information it is possible to record the whole web address of the page with the click through link including the query string (junk at the end). For example, if you were to open this page and click on the link for this blog, if your browser is passing referrer information I can see you got here from a Google Search for ‘jisc rsc mashe’.

In fact I know from my Google Analytics data that in 2010 over a third (37%) of my visitors arrived via a search engine, almost all (97%) using Google and as the table shows I even know the main search keywords used.

Table of top search keywords used in 2010

So if I know over a third of people end here having searched for something, wouldn’t it be good if I could highlight more of my content based on their search? Hopefully our answer is yes otherwise I’ve wasted a hell of a lot of my own time chasing my tail on this.

Rather than completely reinventing I had a quick look at some existing WordPress plugin’s to see if anything would do this. The one that came closest was WP Greet Box which as well as providing a custom greeting message based on where your visitor is coming from if the user comes from a search engine it uses that search query to optionally display some related posts.

The problem I had with this solution is, as well as thinking the greeting was a little tacky, it only suggests related posts. As this blog has evolved I have more bespoke pages and tools which is why I use a Google Custom Search Engine (CSE) (combined with some of my own ‘instant’ magic to let people search all of the material in the MASHe directory.

Finding nothing else and as I already use the Contextual Related Posts plugin I thought it would be fun to modify this so that if someone lands on one of my posts from a search engine, their search query is used to pull related material using my sites Google CSE.

Now using my modified contextual-related-posts.php if you go to this TwEVS post the related post information at the end remains the same containing links for:

You also might like :

But if you end up at the same page by for example clicking a link to it from this Google Search you get the following instead:

You also might like (based on your search for ‘twevs’):

So what do you think?

Personally I’m not entirely convinced that this will have any impact on driving traffic internally within this site because my volume of visits is relatively low and the placement at the end of the post isn’t optimum for leveraging extra content. The other factor is normally in posts if I’ve written or have a related tool that might be of interest to the reader I include a link in the body of the post. But if nothing else maybe you’ve learned a bit about referrer information and you’ll come up with a better idea than me.

[A couple of other ‘techy’ things I learned along the way worth sharing:

MASHe Monthly (Email Newsletter and Template)

It’s fair to say I’m keen to get my message out any which way. As well as the blogging staples of RSS feeds I also have a print-friendly PDF Magazine version and a eBook addition in various formats (EPUB | Mobipocket/Kindle | PDF).  For a while I’ve also give an option to sign up for a monthly email newsletter. This uses the MailPress plugin to handle subscriptions and send a monthly update which snippets of blog posts from the last month.

Old MASHe Monthly Layout [click to enlarge]One of the things I was never happy with was the layout of the email, which was basically a list of snippets of posts based on date order. As I uses this site to collect lists of links to news items and sites I find interesting in ‘What I’ve starred this week’ and more technical posts recording my personal research, there are times I would like to put these further down the reading order.

New MASHe Monthly Layout [click to enlarge]Fortunately MailPress allows users to use/create custom templates. Having tried to find a suitable existing template and failed I knocked together a new one. This allows me to highlight a featured post, followed by snippets of my regular posts, finishing with the list of links from ‘What I’ve starred’. With the lack of MailPress templates I thought it would be worthwhile releasing:

*** RSC MailPress template ***

You should read the MailPress documentation for more information on installation customisation.

[If you are testing the monthly template the plugin only pulls in a random older post. I’ve posted a workaround for this in the MailPress forum.]  


This blog is authored by Martin Hawksey e-Learning Advisor (Higher Education) at the JISC RSC Scotland N&E.

JISC RSC Scotland North & East logo

If you would like to subscribe to my monthly digest please enter your email address in the box below (other ways are available to subscribe from the button below):

Subscribe to MASHe to monthly email updates


The MASHezine (tabloid)

It's back! A tabloid edition of the latest posts in PDF format (complete with QR Codes). Click here to view the MASHezine

Preview powered by: Webthumb

The MASHezine (eBook)

MASHe is also available in ebook and can be downloaded in the following formats:



Opinions expressed in this blog are not necessarily those of the JISC RSC Scotland North & East.

JISC Advance Logo

JISC Advance is a new organisation that brings together the collective expertise of established JISC services:

For further information visit

Creative Commons Licence
Unless otherwise stated this work is licensed under a Creative Commons Attribution-ShareAlike 2.5 UK: Scotland License