ahoy icon indicating copy to clipboard operation
ahoy copied to clipboard

Crawler not detected

Open chr1s1 opened this issue 11 years ago • 2 comments

Hi,

I could not find the logic in the code otherwise I would have fixed it myself. We found a crawler in the visits table which was tracked like a regular user:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36 HubSpot Webcrawler

Is there a way to make sure that also this crawler is not stored as a regular visitors?

chr1s1 avatar Nov 15 '15 15:11 chr1s1

Ahoy uses the browser gem to do browser/bot detection. I would start there in terms of figuring out why it didn't classify that UA as a bot.

The call into browser from Ahoy occurs here

https://github.com/ankane/ahoy/blob/master/lib/ahoy/deckhands/technology_deckhand.rb#L19

mchristen avatar Nov 15 '15 16:11 mchristen

Thanks a lot!

chr1s1 avatar Nov 15 '15 20:11 chr1s1