johannschopplich/kirby-plausible

Plausible integration for Kirby CMS

0.5.0 2024-02-05 12:29 UTC

This package is auto-updated.

Last update: 2024-04-05 12:50:31 UTC


README

Kirby Plausible

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

  1. Create a Plausible shared link
  2. Set the johannschopplich.plausible.sharedLink in your config.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