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.

2 Responses to “Bing and AWStats”

  1. Justin says:

    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

  2. Jean-Luc says:

    File name corrected. Thanks.


 

Leave a Reply

You must be logged in to post a comment.