floriankarsten / kirby-plausible
Installs: 1 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 4
Forks: 5
Open Issues: 4
Type:kirby-plugin
Requires
- getkirby/cms: ^4.0.0
- getkirby/composer-installer: ^1.1
README
Simple plugin providing plausible iframe panel view to kirby panel and simple frontend snippet.
Instalation
composer require floriankarsten/kirby-plausible
or download from releases
How to use
- Create a shared link https://plausible.io/docs/shared-links
- Set
floriankarsten.plausible.sharedLink
in config.php
There is also floriankarsten.plausible.domain
which allows you to overwrite data-domain
in the frontend snippet.
config.php
example
'floriankarsten.plausible' => [ 'sharedLink' => 'https://plausible.io/share/yourwebsiteurl.com?auth=Jz0mCWTPu5opXi0sAgRrq', 'domain' => 'test.com', // not required if not set it will be taken from $site->url // To use a self-hosted Plausible instance //'scriptHost' => 'https://plausible.example.com', // To use Plausible script extensions //'scriptName' => 'plausible.outbound-links.exclusions' ];
Frontend snippet place iside head tag. Automatically disabled when kirby is in debug mode.
<?php snippet('plausible'); ?>
This plugin wouldn't happen without @garethworld who kindly hired me to make it and then wanted to have it released to Kirby community. Yaaaaay