Bing and AWStats
In AWStats 6.9 and older, Bing is not recognized as a search engine. Bing visitors appear under Links from an external page (other web sites except search engines).
You have to edit search_engines.pm in the lib directory to add Bing support. We explain here how to edit each section of the file :
@SearchEnginesSearchIDOrder_list1
Find
'msn\.',
and replace it by
'msn\.',
'bing\.com',
%SearchEnginesHashID
Find
'msn\.','msn',
and replace it by
'msn\.','msn',
'bing\.com','bing',
%SearchEnginesKnownUrl
Find
'msn','q=',
and replace it by
'msn','q=',
'bing','q=',
%SearchEnginesHashLib
Find
'msn','<a href="http://search.msn.com/" title="Search Engine Home Page [new window]" target="_blank">MSN Search</a>',
and replace it by
'msn','<a href="http://search.msn.com/" title="Search Engine Home Page [new window]" target="_blank">MSN Search</a>',
'bing','<a href="http://www.bing.com/" title="Search Engine Home Page [new window]" target="_blank">Bing</a>',
Your modified version of AWStats search_engines.pm is now ready to support Bing. Bing visitors will be listed in the search engines section and you will find their keywords under Search Keyphrases and Search Keywords.
January 13th, 2010 at 11:47 pm
Thanks for the info _exactly_ what I was looking for.
I found my config file here:
/var/www/html/awstats/wwwroot/cgi-bin/lib/search_engines.pm
(note plural).
In your opening paragraph you use the file “search_engine.pm”
I’m running CentOS, AWstats 6.9 (build 1.925)
Thanks again!
Justin
January 14th, 2010 at 10:39 am
File name corrected. Thanks.