Updated UK & International Search Engine JavaScript for Google Analytics

Google Analytics, Hacks and Tools Add comments

The Google Analytics reports include data about referrals from organic search results. That is, how many people visited your site from search engines like Google and MSN by clicking on one of the non-paid advertising links that make up the bulk of the search results. Google Analytics gets this data from a list of search engines in the urchin.js file, however this list is not necessarily suitable for all geographic regions because it focuses on .com domains and US search engines such as CNN.com.

Update 08-Jan-2009: Please note, this script is now being maintained at:
www.advanced-web-metrics.com/blog/ga-scripts

Because GA Experts is based in the UK and serves a European client base, we thought it would be a good idea to try and update this list to distinguish between UK and international search engines, as well as to enable GA to recognise some country-specific SE’s, for example the BBC’s search engine, or Voila in France. So we have developed two separate JavaScript files that can overwrite the default list of SE’s and replace them with a more up to date and relevant list. One is designed to update and replace the existing list with a range of international SE’s, the other is designed specifically for the UK market.

Once this file is in place, GA will recognise and report on a wider range of search engines, including keyword data and campaign source/referrer data.

If you just want to update your current list of SE’s, then use the International file, if you are targeting a UK or European base then we recommend using the UK file. Both files recognise the same international search engines, however the UK list differentiates between UK and international domains, e.g. ‘google.co.uk’ vs. ‘google.com’ and also adds a few UK specific SE’s, such as the Google web search on the Orange homepage. The full list of search engines and installation instructions follow:

Installation:

Simply add one of the following lines to your Google Analytics Tracking Code (GATC), *after* the call to the urchin.js file and we will update the file regulalrly on your behalf:
- Many Thanks to Matt Trimmer of iVantage for contributing to this file

<script src=”http://www.omegadm.co.uk/uk_se.js” type=”text/javascript”></script>

or
<script src=”http://www.omegadm.co.uk/international_se.js” type=”text/javascript”></script>

For example:

<script src=”http://www.google-analytics.com/urchin.js” type=”text/javascript”>
</script>
<script src=”http://www.omegadm.co.uk/uk_se.js” type=”text/javascript”>
</script>

<script type=”text/javascript”>
_uacct = “UA-xxxx-x”;

urchinTracker();

</script>

The following list of search engines is taken from online research and our own data on the most common UK & International search engines. If you think we have missed any or would like to see any other amendments, please let us know – post a comment below.

International List:
Google
Yahoo
MSN
Live.com
AltaVista
Lycos
HotBot
Alltheweb
Ask
Looksmart
AOL*
mywebsearch.com
Gigablast
Search.com
Dogpile
Ezilon.com (European)
SearchEurope.com (European)
Voila (France)
El Mundo (Spain)
Terra (Spain)
Web.de (Germany)
Funnel (South Africa)
Ananzi (South Africa)
Anzwers (Australia & New Zealand)
Rambler (Russia)
Yandex (Russia)
Baidu.com (China)
Indiatimes.com (India)
Araby.com (Arabic)
UK List:
Google.co.uk
Google
Yahoo UK
Yahoo
MSN
MSN UK
Live.com
altavista UK
altavista
Lycos UK
Lycos
HotBot UK
HotBot
Excite UK
alltheweb
BBC
Tiscali
Ask UK
Ask
LookSmart
blueyonder
AOL UK
AOL*
ntlworld
Tesco.net
Orange UK
mywebsearch.com
myway UK
myway.com
Searchy.co.uk
Dogpile
Ezilon.com (European)
SearchEurope.com (European)
Voila (France)
El Mundo (Spain)
Terra (Spain)
Web.de (Germany)
Funnel (South Africa)
Ananzi (South Africa)
Anzwers (Australia & New Zealand)
Rambler (Russia)
Yandex (Russia)
Baidu.com (China)
Indiatimes.com (India)
Araby.com (Arabic)

* AOL.com encrypts keyword data so you will see some strange character strings amongst your other keywords.

Please Note: Use of this JavaScript code is entirely at your own risk. GA Experts have tested this code extensively, however we can take no responsibility for errors, loss of data or any other complications arising from the use of this code

11 Responses to “Updated UK & International Search Engine JavaScript for Google Analytics”

  1. Tim Leighton-Boyce Says:

    Very useful!

    Am I right in thinking that if we adopted the UK-specific file we would have to be careful to start our numbering at a higher level when adding any custom search engines via our tracking code?

    eg

    _uOsr[45]=”Internal”; _uOkw[20]=”txtsearch”;

    rather than the default of 20 search engines assumed in Google’s help?

    In fact it might be simpler for us to include the internal search within the file itself…

  2. GA Experts Says:

    Hi Tim,

    Thanks for your comment, well spotted – you are absolutely correct. We were about to post something along just these lines.

    If you want to add further custom search engines (either in the page tag or the external javascript file) then you will need to continue the array to the next number in the sequence. FYI, if you do so, check that the ‘_uOsr[xx]‘ value is the same as the corresponding ‘_uOkw[xx]‘ value.

  3. Matt Trimmer Says:

    Disappointed to see that you have taken-up this idea from our discussions in February and email exchanges in June and not decided to credit ivantage with the idea, especially as I provided the early search engine data.

  4. GA Experts Says:

    Sorry Matt that’s bad karma from my colleague Jim. I have updated the post to reflect your contribution.

    Lets catch up and discuss the next set of analytics ideas at SES London.

  5. Milan Dinic Says:

    I’ve got some questions: is possible that in this .js file add just new search engines, starting from number 24 (currently there is 23 in urchin.js) and not to overwrite current engines? This is because traffic I receive from all Google domains is showed as Google and I don’t want to see separated for all domains (like .co.uk, .fr etc). Or if I need to overwrite, will this engines stay as current?

  6. GA Experts Says:

    Milan – you need to define the specific google domains first, before you match the generic ‘google’ one.

    Then you over-write the original defined array (_uOsr) by calling your own js file (or the one on our servers)

    HTH

  7. Milan Dinic Says:

    Thanks for your answer! But, I don’t understand this sentence:
    you need to define the specific google domains first, before you match the generic ‘google’ one
    I want to use my own js file, because I want to add some local search engines which are not on yours list too. I understood from your answer that engines in urchin.js file will be overwritten, but if I copy this list to my file and then add below my new engines, will traffic from Google’s, Yahoo’s and others local version search engines be as current, or I’ll need to add them manually?
    (maybe I need to mention this: I don’t need UK search engines; nor I want to know from which Google’s domains I receive traffic; I want only to know which keywords are used when visitor come from engines from my country (Serbia); I just found this tool here and want to know how it’s used)
    Thanks again!

  8. Priit Kallas Says:

    How does the external script work in the new version of GA. ()

  9. John Says:

    That’s a good filter. Any chance you could include Google.ie, it, fr, de? Thanks.

  10. Seeds Says:

    I would like to see how to include google.co.il as well. How is this possible?

  11. admin Says:

    Please note, this script is now being maintained at: http://www.advanced-web-metrics.com/blog/ga-scripts/

Leave a Reply