Search by

hitsteps / kirby-analytics

hitsteps

Real-time visitor analytics and heatmaps for your Kirby site.

Package info

github.com/Hitsteps/kirby-analytics

Homepage

Documentation

Type:kirby-plugin

pkg:composer/hitsteps/kirby-analytics

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-12-01 09:02 UTC

This package is auto-updated.

Last update: 2026-12-01 10:18:02 UTC


README

Watch live visitors, page activity and heatmaps for your Kirby site. Hitsteps Analytics adds your Hitsteps tracking code to the public pages of your site, so there is no template to edit.

Requirements

  • Kirby 4, 5 or 6
  • PHP 8.1 or later (as your Kirby version requires)
  • A Hitsteps account. Create one for free, add your website and copy its tracking code.

Installation

With Composer:

composer require hitsteps/kirby-analytics

Or download the ZIP of the latest release, unpack it and put the kirby-analytics folder into site/plugins/.

Or as a Git submodule:

git submodule add https://github.com/Hitsteps/kirby-analytics.git site/plugins/kirby-analytics

Setup

  1. Copy the tracking code of your website from your Hitsteps dashboard.
  2. Add it to site/config/config.php. The whole code, the 37-character site code or its first 32 characters all work:
<?php
return [
    'hitsteps.analytics.code' => 'YOUR_SITE_CODE',
];
  1. Open your site in a private window and watch your visit arrive in the Hitsteps dashboard.

To keep the code out of your repository, leave the option out and set the HITSTEPS_SITE_CODE environment variable on your server instead. A domain-specific config file such as config.example.com.php keeps tracking on your live site only.

What it adds

One script tag, placed before the closing </head> of your front-end HTML pages:

<script src="https://edgecdnplus.com/code?code=YOUR_CODE" async></script>

The Panel, the API, content representations (JSON, XML, RSS), the error page, drafts and previews, and pages that already contain a Hitsteps tracking code are left unchanged. Remove any Hitsteps code you pasted into your templates earlier, so each page keeps one copy.

Your consent popup, masking and privacy choices stay in your Hitsteps site settings. Mention Hitsteps in your privacy policy.

Switching it off and removing it

To pause tracking, set 'hitsteps.analytics.enabled' => false in your config, or rename the plugin folder to _kirby-analytics.

To remove it, run composer remove hitsteps/kirby-analytics or delete the site/plugins/kirby-analytics folder, then delete the hitsteps.analytics.* lines from your config.

If you use Kirby's page cache, empty site/cache after switching tracking on or off so cached pages follow at once.

Support

support@hitsteps.com