Search by

mawiswiss / silvertrail-kirby

mawiswiss

A consent framework for Kirby, built for developers and AI agents. It holds back every outside service until the visitor agrees and asks through a cookie banner.

Package info

github.com/mawiswiss/silvertrail-kirby

Homepage

Issues

Documentation

Type:kirby-plugin

pkg:composer/mawiswiss/silvertrail-kirby

Fund package maintenance!

Other

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

1.6.0 2026-12-04 04:02 UTC

This package is auto-updated.

Last update: 2026-12-04 04:03:13 UTC


README

A consent framework for Kirby 5 and 6, built for developers and AI agents. Silvertrail holds back each tracker, script and embed until the visitor agrees, asks through a cookie banner for now, and passes the choice on to Google Consent Mode and to the site's own code. The same core runs Silvertrail for any HTML page and for WordPress, and its code is on GitHub.

Install

Silvertrail is in Kirby's plugin directory. Download silvertrail-kirby.zip from a release on GitHub and unpack it to site/plugins, or:

composer require mawiswiss/silvertrail-kirby

YouTube, Vimeo and Google Maps embeds are blocked from then on, and every page gets the banner. The templates need no change.

Configure

// site/config/config.php
return [
	'mawiswiss.silvertrail' => [
		'privacy'  => 'privacy',
		'services' => [
			'google-analytics' => ['tag_id' => 'G-XXXXXXXXXX'],
		],
	],
];

Add silvertrail: extends: silvertrail/tab to the tabs of site/blueprints/site.yml, and editors pick the layout, the presets and the texts in the Panel, while the config still wins. Put <?php snippet('silvertrail/reopen') ?> in the footer, so visitors can change their choice. Run kirby silvertrail:validate to check the config, and open /silvertrail/leak-check from the Panel to see what loads before consent.

The documentation covers every option, the hooks and how scripts and embeds are held back. The plugin ships the same pages for Kirby as Markdown in its docs/ folder, for agents and for the version the site runs.

Free, with an honour licence

Silvertrail is free. When you are paid to put it on a client's site, consider supporting its development with a site licence at https://marcwieland.name/support/: 29 a year per site, or 199 a year for an agency with any number of sites, in dollars or euros. Nothing checks whether you bought one.

MIT licensed.