Can I use the PHP tracking API to detect bots?

(Olle Härstedt) #1

When getting visitor id using the Piwik PHP API tracker, often it seems like the visitor id is not saved in the Piwik database (which can be checked using the HTTP reporting API Live module). I assume this is because Piwik filter bots? But bots still get visitor id? I there anyway I can check if Piwik will filter the current visitor as a bot?

(Lukas Winkler) #2


You could use the DeviceDetector module directly from PHP:

(Olle Härstedt) #3

Hi Lukas,

Thank you for your suggestion. I don’t think that’s a valid solution for us since we’re using Joomla. I’m unsure if the DeviceDetector class could easily be integrated in such an environment.