johannschopplich / kirby-plausible
Plausible integration for Kirby CMS
Installs: 1 293
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 6
Type:kirby-plugin
Requires
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- getkirby/cms: ^4
README
Kirby Plausible
Note
This is a refactored version of floriankarsten/kirby-plausible.
This plugin integrates a Plausible analytics dashboard directly into your Kirby Panel.
Requirements
- Kirby 4 or higher
Note
For Kirby 3 support, please use version 0.3 of Kirby Plausible.
Installation
Composer
composer require johannschopplich/kirby-plausible
Download
Download and copy this repository to /site/plugins/kirby-plausible
.
Usage
- 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>' ] ];
Frontend Snippet
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') ?>
License
MIT License © 2022-PRESENT Johann Schopplich
MIT License © 2021 Florian Karsten