bmuller / bandit

A multi-armed bandit optimization framework for Rails
GNU General Public License v3.0
129 stars 26 forks source link

Excluding bots and spiders from participants #9

Open dgilperez opened 12 years ago

dgilperez commented 12 years ago

Hi!

After playing a bit with bandit - and been quite happy with it- , we're seeing our participants counters growing unexpectedly. I suppose this is because bandit is counting visits coming from bots and spiders, such as Google Bot.

How do you handle this? Do you just ignore it?

Do you think it would be a good idea to exclude spiders and bots from the participants?

webandy commented 12 years ago

You could follow a solution from Vanity and include JS on the page to distinguish human visitors from robot visitors.
https://github.com/assaf/vanity/blob/master/lib/vanity/playground.rb#L106