PHPackages                             bnomei/kirby3-utm - 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. [Database &amp; ORM](/categories/database)
4. /
5. bnomei/kirby3-utm

ActiveKirby-plugin[Database &amp; ORM](/categories/database)

bnomei/kirby3-utm
=================

Kirby UTM Tracking

5.0.3(8mo ago)213821MITPHPPHP &gt;=8.2CI passing

Since Dec 4Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/bnomei/kirby3-utm)[ Packagist](https://packagist.org/packages/bnomei/kirby3-utm)[ RSS](/packages/bnomei-kirby3-utm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (19)Used By (0)

Kirby UTM
=========

[](#kirby-utm)

[![Kirby 5](https://camo.githubusercontent.com/b1a1b2ccd58e96259a9722c2489d91f40378c01b6c4c3e9fd27ed1d12c269d7c/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f4b697262792f353f636f6c6f723d454343373438)](https://getkirby.com)[![PHP 8.2](https://camo.githubusercontent.com/fd050028b4459f3f6e4db5703412957375ceb180d27951213d421eb2a23c8c8e/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f5048502f382e323f636f6c6f723d3445354239332669636f6e3d706870266c6162656c)](https://camo.githubusercontent.com/fd050028b4459f3f6e4db5703412957375ceb180d27951213d421eb2a23c8c8e/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f5048502f382e323f636f6c6f723d3445354239332669636f6e3d706870266c6162656c)[![Release](https://camo.githubusercontent.com/11f6d76ab665f819457112ce78e568d992ff5ac34fd4cc1794fdd9ac9b909c2d/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d75746d3f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)](https://camo.githubusercontent.com/11f6d76ab665f819457112ce78e568d992ff5ac34fd4cc1794fdd9ac9b909c2d/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d75746d3f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)[![Downloads](https://camo.githubusercontent.com/ad5fcea687feb2e991d8db79279d2505f2da105d7c67a5209181052435863486/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b69726279332d75746d3f636f6c6f723d3237323832322669636f6e3d676974687562266c6162656c)](https://camo.githubusercontent.com/ad5fcea687feb2e991d8db79279d2505f2da105d7c67a5209181052435863486/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b69726279332d75746d3f636f6c6f723d3237323832322669636f6e3d676974687562266c6162656c)[![Coverage](https://camo.githubusercontent.com/5a2d451ad2606c4c60b970e56fa463459973ec5d7baca3dd7df61762c6bdec3e/68747470733a2f2f666c61742e62616467656e2e6e65742f636f6465636c696d6174652f636f7665726167652f626e6f6d65692f6b69726279332d75746d3f69636f6e3d636f6465636c696d617465266c6162656c)](https://codeclimate.com/github/bnomei/kirby3-utm)[![Maintainability](https://camo.githubusercontent.com/dd20c4e3374d7b7837f879cbd73eaf8f6e7489b3b9cd50b8c8fa0e9b62f06287/68747470733a2f2f666c61742e62616467656e2e6e65742f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f626e6f6d65692f6b69726279332d75746d3f69636f6e3d636f6465636c696d617465266c6162656c)](https://codeclimate.com/github/bnomei/kirby3-utm/issues)[![Discord](https://camo.githubusercontent.com/36eaef1b06f4996feb7587aa3281dcbd658e57535bc6b5e10110ed108e7a7a03/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f646973636f72642f626e6f6d65693f636f6c6f723d3732383964612669636f6e3d646973636f7264266c6162656c)](https://discordapp.com/users/bnomei)[![Buymecoffee](https://camo.githubusercontent.com/62e55d1129b82bf9c2fd4656451e81ab87a9787e7c9676ca58276532ed9666ee/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f69636f6e2f646f6e6174653f69636f6e3d6275796d6561636f6666656526636f6c6f723d464638313346266c6162656c)](https://www.buymeacoffee.com/bnomei)

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

[](#installation)

- unzip [master.zip](https://github.com/bnomei/kirby3-utm/archive/master.zip) as folder `site/plugins/kirby3-utm` or
- `git submodule add https://github.com/bnomei/kirby3-utm.git site/plugins/kirby3-utm` or
- `composer require bnomei/kirby3-utm`

Usage
-----

[](#usage)

### UTM Page

[](#utm-page)

Create a new page at root level with the blueprint `utm`.

[![dashboard](https://raw.githubusercontent.com/bnomei/kirby3-utm/main/screenshot-utm-dashboard.png)](https://raw.githubusercontent.com/bnomei/kirby3-utm/main/screenshot-utm-dashboard.png)
[![campaign](https://raw.githubusercontent.com/bnomei/kirby3-utm/main/screenshot-utm-campaign.png)](https://raw.githubusercontent.com/bnomei/kirby3-utm/main/screenshot-utm-campaign.png)

### Tracking

[](#tracking)

Events will automatically be tracked to a sqlite database and appear in the UTM page within the panel grouped by campaign and displaying multiple stats.

UTM
---

[](#utm)

Original UTM explanation from [Bonnie Kittle at cdgi.com](https://www.cdgi.com/2020/04/how-to-use-utm-codes-to-track-campaigns-in-google-analytics/).

### utm\_source

[](#utm_source)

The advertiser, site, publication, etc. that is sending traffic to your property

### utm\_medium

[](#utm_medium)

The advertising or marketing medium, for example, CPC (cost-per-click), banner ad, email newsletter

### utm\_campaign

[](#utm_campaign)

The individual campaign name, slogan, promo code, etc.

### utm\_term

[](#utm_term)

Identify paid search keywords. If you’re manually tagging paid keyword campaigns, you should also use utm\_term to specify the keyword.

### utm\_content

[](#utm_content)

Used to differentiate similar content or links within the same ad. For example, if you have two call-to-action links within the same email message, you can use utm\_content and set different values for each so you can tell which version is more effective. (i.e. image, button, headline)

Cache
-----

[](#cache)

Warning

If **global** debug mode is `true,` the plugin will flush its cache and not write any more caches.

For best performance, set either the [global or plugin-specific cache driver](https://getkirby.com/docs/reference/system/options/cache) to one using the server's memory, not the default using files on the hard disk (even on SSDs). If available, I suggest Redis/APCu or leave it at `file` otherwise.

**site/config/config.php**

```
return [
  'cache' => [
    'driver' => 'apcu', // or redis
  ],
  'bnomei.utm.cache.ipstack' => [
    'type' => 'apcu', // or redis
  ],
  'bnomei.utm.cache.ratelimit' => [
    'type' => 'apcu', // or redis
  ],
  'bnomei.utm.cache.queries' => [
    'type' => 'apcu', // or redis
  ],
];
```

Settings
--------

[](#settings)

bnomei.utm.DefaultDescriptionenabled`true`cache.ipstack`true`seperate cache for ip data, expires at `ipstack.expire`cache.ratelimit`true`seperate cache for ratelimit, expires at `ratelimit.expire`cache.queries`true`seperate cache for most queries used in panel, flushes automatically with each event trackedipstack.access\_key`null`string. access keyipstack.https`false`boolean. if `true` will use premium https endpoint.ipstack.expire`60*24`int. cache in minutes for ipstack IP resolution.sqlite.file`fn()`path to sqlite file. like site/logsstats.range`30`int. half of range of days for bar and change percentageratelimit.enabled`true`bool. if `true` it will limit on params belowratelimit.expire`60`int. in minutes before trials resetratelimit.trials`120`int. number of allowed trials in given durationbotDetection.CrawlerDetect`true`check for crawlers (~10ms)botDetection.DeviceDetector`true`check for bots (~40ms)Dependencies
------------

[](#dependencies)

- (optional) [free ipstack account for IP geolocations](https://ipstack.com/)

Disclaimer
----------

[](#disclaimer)

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please [create a new issue](https://github.com/bnomei/kirby3-utm/issues/new).

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance59

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Recently: every ~141 days

Total

18

Last Release

262d ago

Major Versions

1.4.1 → 5.0.02024-11-30

PHP version history (3 changes)1.0.0PHP &gt;=8.0

1.4.0PHP &gt;=8.1

5.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3265642?v=4)[Bruno Meilick](/maintainers/bnomei)[@bnomei](https://github.com/bnomei)

---

Top Contributors

[![bnomei](https://avatars.githubusercontent.com/u/3265642?v=4)](https://github.com/bnomei "bnomei (35 commits)")

---

Tags

kirbykirby-cmskirby-pluginkirby4kirby5reportsstatstrackingutmsqlitetrackingcampaignseokirbykirby-pluginkirby-cmsUTM

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/bnomei-kirby3-utm/health.svg)

```
[![Health](https://phpackages.com/badges/bnomei-kirby3-utm/health.svg)](https://phpackages.com/packages/bnomei-kirby3-utm)
```

###  Alternatives

[bnomei/kirby3-pageviewcounter

Track Page view count and last visited timestamp

251.1k](/packages/bnomei-kirby3-pageviewcounter)[bnomei/kirby3-janitor

Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code or a cronjob

9339.9k2](/packages/bnomei-kirby3-janitor)[bnomei/kirby3-feed

Generate a Atom/JSON/RSS-Feed and XML-Sitemap from Pages-Collections

7224.8k](/packages/bnomei-kirby3-feed)[belugadigital/kirby-navigation

Kirby 5 field for hierarchical menus with drag &amp; drop level indentation.

8713.4k](/packages/belugadigital-kirby-navigation)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4144.1k1](/packages/bnomei-kirby3-dotenv)[moritzebeling/kirby-favicon

Kirby plugin to meet all favicon needs

144.8k](/packages/moritzebeling-kirby-favicon)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
