Download the PHP package schnti/plausible without Composer
On this page you can find all versions of the php package schnti/plausible. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download schnti/plausible
More information about schnti/plausible
Files in schnti/plausible
Package plausible
Short Description Simple plugin providing Plausible iframe panel view to Kirby panel and frontend snippet.
License MIT
Homepage https://github.com/schnti/kirby-plausible
Informations about the package plausible
Kirby Plausible plugin
Simple Kirby plugin that
- embeds Plausible Analytics in the Kirby Panel via an iframe (shared link)
- adds a frontend snippet tracking page views
Commercial Usage
This plugin is free. If you use it in a commercial project, please consider:
Installation
Via Composer:
Or download the plugin from the GitHub releases and place it in:
Configuration
Add the following to your config/config.php:
Notes
- The
scriptvalue should point to the project‑specific (signed) Plausible script (pa-*.js). - The plugin assumes Plausible v2+ behavior.
Frontend usage
Add the snippet inside your site’s <head> section:
Behavior
The snippet outputs nothing when:
- Kirby is in
debugmode - a user is logged into the Panel
Panel Analytics View
The plugin adds a new Analytics entry to the Kirby Panel sidebar.
- Displays Plausible stats via the configured
sharedLink - Uses an iframe embed
- Implemented using
render()(no runtime template compilation) - Does not require
unsafe-eval
The Panel view is for visualization only and does not track page views.
Content Security Policy (CSP)
A minimal CSP setup for a self‑hosted Plausible instance might look like this:
No unsafe-eval is required.
Thanks
This plugin is based on the original work by Florian Karsten, many thanks for creating and sharing the foundation for this plugin 🙏