PHPackages                             schnti/umami - 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/umami

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

schnti/umami
============

Simple Kirby plugin adding an Umami analytics link to the Panel and a frontend tracking snippet.

1.0.0(4mo ago)010MITPHP

Since Feb 22Pushed 4mo agoCompare

[ Source](https://github.com/schnti/kirby-umami)[ Packagist](https://packagist.org/packages/schnti/umami)[ Docs](https://github.com/schnti/kirby-umami)[ RSS](/packages/schnti-umami/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Kirby Umami plugin
==================

[](#kirby-umami-plugin)

A simple Kirby plugin that

- adds a frontend snippet for tracking page views with Umami
- adds an Analytics link to the Kirby Panel (opens Umami in a new tab)

---

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/umami
```

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

```
/site/plugins/umami

```

---

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

[](#configuration)

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

```
'schnti.umami' => [
  // Required: Umami share link (opens from the Panel menu)
  'sharedLink' => 'https://stats.example.com/share/XXXXXXXX',

  // Required: Umami tracking script
  // Can be umami.io or a self-hosted instance
  'script' => 'https://stats.example.com/script.js',

  // Required: Website ID
  'id' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
],
```

### Notes

[](#notes)

- `sharedLink` should point to an **Umami share URL** (read-only dashboard).
- `script` must be the standard Umami tracking script.
- Works with Umami v2+ (cloud or self-hosted).

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

[](#frontend-usage)

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

```
