PHPackages                             schnti/plausible - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. schnti/plausible

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

schnti/plausible
================

Simple plugin providing Plausible iframe panel view to Kirby panel and frontend snippet.

1.0.2(3mo ago)02MITJavaScript

Since Feb 1Pushed 3mo agoCompare

[ Source](https://github.com/schnti/kirby-plausible)[ Packagist](https://packagist.org/packages/schnti/plausible)[ Docs](https://github.com/schnti/kirby-plausible)[ RSS](/packages/schnti-plausible/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Kirby Plausible plugin
======================

[](#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

[![plausible screenshot](screenshot.png)](screenshot.png)

---

Commercial Usage
----------------

[](#commercial-usage)

This plugin is free. If you use it in a commercial project, please consider:

- [making a donation](https://www.paypal.me/schnti/5)

---

Installation
------------

[](#installation)

Via Composer:

```
composer require schnti/plausible
```

Or download the plugin from the GitHub releases and place it in:

```
/site/plugins/plausible

```

---

Configuration
-------------

[](#configuration)

Add the following to your `config/config.php`:

```
'schnti.plausible' => [
  // Required: Shared link for the Panel iframe view
  'sharedLink' => 'https://stats.example.com/share/example.com?auth=XXXXXXXX',

  // Required: Plausible tracking script (signed pa-*.js)
  // This can be plausible.io or a self‑hosted instance
  'script' => 'https://stats.example.com/js/pa-XXXXXXXX.js',
],
```

### Notes

[](#notes)

- The `script` value should point to the **project‑specific (signed) Plausible script** (`pa-*.js`).
- The plugin assumes Plausible v2+ behavior.

Frontend usage
--------------

[](#frontend-usage)

Add the snippet inside your site’s `` section:

```
