Note
This is a refactored version of floriankarsten/kirby-plausible.
This plugin integrates a Plausible analytics dashboard directly into your Kirby Panel.
- Kirby 4 or higher
Note
For Kirby 3 support, please use version 0.3 of Kirby Plausible.
composer require johannschopplich/kirby-plausible
Download and copy this repository to /site/plugins/kirby-plausible
.
- Create a Plausible shared link
- Set the
johannschopplich.plausible.sharedLink
in yourconfig.php
// config.php
return [
'johannschopplich.plausible' => [
'sharedLink' => '<your-plausible-shared-link>',
// Only needed if the frontend URL differs from the index URL of the Kirby instance
'domain' => '<your-frontend-domain>'
]
];
You can use the included snippet. Add it to the <head>
tag preferably. The script will not be injected in debug mode.
<?php snippet('plausible') ?>
MIT License © 2022-PRESENT Johann Schopplich
MIT License © 2021 Florian Karsten