Integrate Plausible Analytics with Flarum
A Flarum extension. Integrate Plausible Analytics with Flarum.
- Add the HTML code for tracking automatically rather than having to add the snippet manually.
- Support for proxies as a way to avoid adblockers blocking the tracking code, allowing to swap the domain that is serving the integration code by a custom one.
- Allow admins to be excluded from the data tracking, in order to avoid skewing the statistics on small forums.
I made this plugin because I manage a small Flarum forum and I wanted to get into plugin development. This plugin is simple and only does one single thing, but it already has teached some important aspects of plugin development. I am also a Plausible user and every time I changed some settings and then browsed the forum to test my changes, my session was included in the stats and I wanted a way to exclude myself.
Install with composer:
composer require danirod/flarum-plausible:"*"
composer update danirod/flarum-plausible:"*" php flarum migrate php flarum cache:clear