Nothing loads until visitors say yes.

Silvertrail is a small cookie banner for WordPress. It blocks trackers and embeds until the visitor agrees, and saying no is as easy as saying yes.

Coming soon to WordPress.org Free, with an honour licence
Privacy settings

We use cookies and similar technologies. Some are needed for this site to work. Everything else only runs if you agree.

A preview of the banner in its default look. The buttons only close it, because this page has nothing to block.

Built for developers and their agents

Set everything in PHP and check it on the shell. The admin keeps only the decisions a site owner makes.

  • Code wins over the admin

    One filter sets any setting, and the admin marks each field that code sets.

  • Agents work on the shell

    WP-CLI shows an agent every service and each setting with its source, so it can check its own work.

  • Prompts built in

    The admin copies a prompt to style the banner, and the page scan writes one for the services it finds.

add_action( 'silvertrail_register', function () {
	silvertrail_register_service( 'google-tag-manager', [
		'tag_id' => 'GTM-XXXXXXX',
	] );
} );

add_filter( 'silvertrail_settings', function ( $settings ) {
	$settings['expiry_months'] = 12;
	return $settings;
} );

One call turns on the preset, and the official tag waits for consent.

Styled by your theme, or by you

Out of the box, the banner looks like part of your site. Change a few values or replace the whole design, as far as the project needs.

  • From your themeNo setup. The banner reads its colours, corners and buttons from theme.json.
  • Values overriddenThe silvertrail_design filter changes single values, such as colours, corners or buttons.
  • Completely customYour own silvertrail.css or templates replace the defaults. The admin writes the prompt for an AI.

Batteries included

The integrations most sites need are built in, so setting it up mostly means ticking boxes.

  • WP Consent API

    Plugins that read the API follow the visitor’s choice.

  • Google Consent Mode v2

    The default is set before any Google tag, and every choice updates it.

  • Embed blocking

    YouTube, Vimeo and Google Maps wait behind a placeholder until the visitor allows them.

  • Script detection

    A scan of any page shows what it loads from other servers before the visitor agrees, and suggests a fix for each.

Also in the box

  • Ships presets for Google, LinkedIn and Meta tags
  • Works behind any page cache
  • Honours Global Privacy Control
  • Asks again when services change
  • Keeps optional records without IP addresses
  • Reopens from a link, a block or a floating button
  • Keeps one cookie per site on multisite
  • Adds a few kilobytes of JavaScript and no jQuery

The plugin’s README covers every option in detail.

Free, with an honour licence

  • Your own site Free Every feature is included, for good.
  • A client’s site 29a year You pay per site, in US dollars or euros.
  • An agency 199a year It covers any number of client sites.

When someone pays you to put Silvertrail on their site, consider a licence. It works on your honour: there is no pro version and no key, and nothing in the plugin checks whether you bought one. The money pays for the upkeep.

Support Silvertrail