danirod/flarum-plausible

Integrate Plausible Analytics with Flarum

Installs: 51

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:flarum-extension

v1.1.0 2023-10-20 11:12 UTC

This package is auto-updated.

Last update: 2024-04-20 14:22:53 UTC


README

License Latest Stable Version Total Downloads

A Flarum extension. Integrate Plausible Analytics with Flarum.

Plausible is a privacy-friendly Google Analytics alternative. It is a more lightweight, it doesn't use cookies and it is fully compliant with regulations like GDPR or CCPA.

Features

  • 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.

Motivation

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.

Installation

Install with composer:

composer require danirod/flarum-plausible:"*"

Updating

composer update danirod/flarum-plausible:"*"
php flarum migrate
php flarum cache:clear

Links