Monday, June 1, 2009

Adding �bing� to Organic Search in Google Analytics

A while ago I wrote blog post on how to add Twitter searches to appear in organic searches. The same principal can be applied to include Microsoft�s new search engine �bing� which is not yet recognized by Google Analytics as a search engine. Till Google Analytics recognizes it as a search engine, you can capture the data in organic searches by a simple one line of code.

GA provides the following function to allow you to add your own search engines to the list of search engines that are already tracked by GA.

_addOrganic(newOrganicEngine, newOrganicKeyword)


You simply call this function right after var pageTracker = _gat._getTracker("UA-XXXXXX-X"); to track any custom search engine.

NewOrganicEngine is the words that identify the search engine; in this case we will use �bing.com�

newOrganicKeyword is the query string that contains that keywords, in this case it will be �q� as �bing� uses �q� as the query string that contains the keyword.




Here is how your final code will look like

var pageTracker = _gat._getTracker("UA-XXXXXX-X");
pageTracker._addOrganic("bing.com", "q")
pageTracker._trackPageview();


Questions? Comments?

----------------------------------------------------------------------------
Looking to fill your Web Analytics or Online Marketing position?Post your open jobs on http://www.web-analytics-jobs.com/
----------------------------------------------------------------------------
Site: AnilBatra.com
Twitter: http://twitter.com/anilbatra

0 comments:

Post a Comment

 
Copyright 2010 Camera Dashboard. All rights reserved.
Themes by Ex Templates Blogger Templates l Home Recordings l Studio Rekaman