Bing Search Engine Recognition in Google Analytics

Bing Logo

Bing Decision Engine

Okay, so as you will be aware, the last few days have seen the release of a new search engine from Microsoft called Bing. An exciting time for searchers and webmasters alike.

However, something that did occur to me is that we haven’t yet talked about how to track traffic from Bing in our favorite free website tracking software, Google Analytics.

I’m absolutely sure that in the next few days Google Analytics will start to automatically regognise Bing as a search engine but in this post I am going to talk you through making Google Analytics recognise Bing as a search engine so that it does not track as a referring site in the mean time.

Let’s start by examinging you already installed Google Analytics tracking code, you will already have this in your html header:

<script type=”text/javascript”>
var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(”%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>

<script type=”text/javascript”>

var pageTracker = _gat._getTracker(”UA-xxxxxxx-x”);

pageTracker._trackPageview();

</script>

This is the “set-up” line of code to initialise Google Analytics on your website. All you have to do is simply add one extra line of code to this javascript as follows:

<script type=”text/javascript”>

var pageTracker = _gat._getTracker(”UA-xxxxxxx-x”);

pageTracker._addOrganic(”bing”,”q”);

pageTracker._trackPageview();

</script>

That’s it, your done!

Comments below please.

2 Responses to “Bing Search Engine Recognition in Google Analytics”

  1. Kalebarkab Says:

    I want to find good pop music. Help me please.

  2. MY Machine Says:

    Cool post, just subscribed.

Leave a Reply