floriankarsten / kirby-plausible
Installs: 2 643
Dependents: 0
Suggesters: 0
Security: 0
Stars: 25
Watchers: 3
Forks: 6
Open Issues: 3
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 frontend snippet.
Installation
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// config/config.php 'floriankarsten.plausible' => [ // Required 'sharedLink' => 'https://plausible.io/share/yourwebsiteurl.com?auth=Jz0mCWTPu5opXi0sAgRrq', // Optional: The value that will be set in data-domain attribute of <script> tag. 'domain' => 'test.com', // Defaults to $site->url() // Optional: To use a self-hosted Plausible instance // 'scriptHost' => 'https://plausible.example.com', // Optional: To use Plausible script extensions // 'scriptName' => 'plausible.outbound-links.exclusions' ];
- Add the following snippet inside your site's
<head>
tag. Note that this will not generate any output for logged in users or 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