Update :
Google has updated the ga.js code which recognizes bing.com as search engine now and you will be able to pick up the keywords that user types in to come to your site.It may take some time to show up due to cache. In light of that this article is deprecated, but if you have any other search engine that currently shows as referrer in Google Analytics and you would want it as SE and get the keywords, you can use the same methodology.
Just add pageTracker._addOrganic(“nameof search engine”, “query string parameter for KW”); and you should be good to go.
Lately, I saw lot of people having trouble with bing being counted as referral site in Google Analytics. The reason is right now , Google Analytics’ ga.js doesnt count traffic coming from bing.com as search engine. However, I am quite sure that Googlers are working on this and will come up with quick update on this.
The other big reason for making this modification is since Bing is referral , Google Analytics will not track the keyword there, that way you will never come to know what keyword bing sent you.
However till that time, if it is lot of troublesome for you, there is only one line modification that is required as below.One needs to add customization to normal Google Analytics code which will let Google Analytics count traffic coming out of bing as search engine traffic.
All you need to do is add following line of code to your normal Google Anlaytics code as shown below on “all” the pages. If you have a CMS system like WordPress/Drupal, you will need to paste this manually and disable the Google Analytics plugin / module till Google Analytics gets ther JS update.
<!– Start of Google Analytics Code–!>
<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”>
try {
var pageTracker = _gat._getTracker(“UA-XXXXXXX-Y”);
pageTracker._addOrganic(“bing”, “q”);
pageTracker._trackPageview();
} catch(err) {}</script>
<!– End of Google Analytics Code–!>
Hope this helps ! I will update this post when Google Analytic’s ga.js gets updated.
