As you may know, Microsoft released its search engine (they call it decision engine) sometime last June 2009. The new search engine is bing. Since they launched, I’ve been waiting for an update of StatPress to include bing. After waiting for almost 2 months with no updates, I thought I’ll take matters into my own hand and start looking into how I can modify my instance to include bing.
It turned out to be sooooooo easy!!!
I almost can’t believe it myself. Kudos to irisco for making such a great system.
Adding bing to your StatPress
If you have shell access, do login to your system using ssh or some other means. Go to your wordpress root directory. Then do the following.
user@www:~$ echo "bing|www.bing.com/search|q|" >> \ > wp-content/plugins/statpress/def/searchengines.dat
Alternatively, you can edit searchengines.dat and add bing somewhere. If you don’t have access to shell, then you can use FTP to download searchengines.dat, edit it locally and upload it back to server.
The file is pretty self explanatory, I think. It is pipe (|) delimited data format. The first column is the search engine name. The second is the host URL pattern for the search engine. Third column is for the request URI variable.
Once you update your searchengines.dat, go to WordPress admin area and click on StatPressUpdate. It’ll rebuild your database and will retroactively count previous bing referral as bing searches.
That’s about it. I hope this article helps you. Please leave comments / suggestions / question, especially if bing has more pattern than what I specified above. I’m looking forward to improving my solution with your comments / suggestions / questions.