Git Product home page Git Product logo

bottracker's Introduction

Matomo Bot Tracker Plugin

Are you tracking data full of bots? That traffic is normally not useful for you, it is just clutter. Bot Tracker removes those visits from your normal data, and also provide separate reports so you could see which bots are visiting your site. With Matomo and Bot Tracker you have insight in Bot Traffic on your site.

Description

Bot Tracker is a plugin to exclude and separately track the visits of Bots, Spiders and Web Crawlers, that hit your site. Because Matomo doesn't store the user agent, Bot Tracker will only be able to track new bots from the moment you add them to its list forward (retroactive tracking isn't possible).

Many web crawlers, spiders and bots don't load the images in a page and don't execute JavaScript. So you cannot track them with Matomo if you don't use the PHP-API. The Bot Tracker can only track those that were caught by Matomo itself. With that said, many crawlers today are using headless browsers, and they do execute JavaScript.

How it works

The plugin scans the user agent of any incoming visit for specific keywords. If the keyword is found, the visit is excluded from the normal log and logged separately in Bot Tracker reports.

If you enable the "extra stats" for a bot entry, you will get more in depth data about the Bots visit, and you will get this in the widget Bot Tracker: Extra stats.

You can add/delete/modify the keywords in Administration -> Bot Tracker -> Configuration.

Track bots identified with Device Detector

As additional tracking of bots, you can collect the bots identified with Matomos Device Detector, either with activating the setting in Administration -> General settings -> Bot Tracker, or with setting this in config.ini.php:

[BotTracker]
track_device_detector_bots = 1

This is for collecting data for identified bots user agents, which you could use for setting up more in detail tracking with Bot Tracker.

Installation / Update

See https://matomo.org/faq/plugins/faq_21/

Sources of information for Bots, Crawlers, Scrapers etc

Import logs with Log Analytics

Matomo normally ships with a python scripts for importing server logs when you can't track visitors with injecting javascript on a website, import_logs.py. With the patch shipped with this plugin in the folder patches you can use Bot Tracker as normal also with imported logs. Just copy the patch to misc/log-analytics and run patch -p1 < import_logs.patch and bots are handled with the Bot Tracker plugin.

Then you can run copy the logs to your Matomo instance and run something like:

python misc/log-analytics/import_logs.py --url=https://my-matomo-instance.org --idsite=1 --recorders=8 --enable-http-errors --enable-http-redirects --enable-static --enable-bots localhost.access_log

For documentation for Log Analytics, see the documentation page.

License

GPL v3 / fair use

Matomo Plugins by Digitalist Open Tech

This plugin was created by Thomas--F and was taken over by Digitalist as part of contributing back with Matomo 5 upgrades.

For more information about plugins provided by Digitalist, see our plugin page.

bottracker's People

Contributors

thomas--f avatar mikkeschiren avatar weblate avatar dandv avatar tsteur avatar fratac avatar ghveem avatar findus23 avatar sgiehl avatar splinter89 avatar halfdan avatar ercpe avatar michaing avatar firesphere avatar reclaimingmytime avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.