A lawful cookie banner on WordPress in about five minutes.
Tracker blocking before consent and Google Consent Mode v2 signals, switched on from one settings screen. You do not edit the theme. The same account then gives you the policies, the scans and a trust center.
Four steps, one settings screen.
- Create a free account: Sign up at app.shieldpage.com and add your website under Consent. The Install page shows your site ID.
- Upload and activate the plugin: Download the zip from this page. In WordPress go to Plugins → Add New → Upload Plugin, choose the file and activate it.
- Paste your site ID: Open Settings → Cookie Consent and paste the site ID. Pasting the whole snippet works too. Leave “Block known trackers before consent” and “Google Consent Mode v2” ticked, then save.
- Add the link and check: Put the [shieldpage_preferences] shortcode in your footer so visitors can change their mind. Then open the site in a private window: no analytics or marketing cookies should appear before you click Accept.
A thin installer, and we mean thin.
The plugin adds one script tag and one shortcode. Banner texts, colours and the cookie list are managed in your ShieldPage account, not in WordPress.
- Prints the ShieldPage script as the first script in <head>, ahead of every other plugin’s output, so trackers that come after it can be held.
- Loads it synchronously on purpose, with a preconnect hint for the ShieldPage host.
- Adds data-block="auto" when tracker blocking is ticked and data-gcm="auto" when Consent Mode v2 is ticked.
- Gives you the [shieldpage_preferences] shortcode for a “Cookie settings” link, with your own text and CSS class.
- Skips the admin area, feeds, embeds and REST responses.
- Prints the tag through WordPress’s script API, so plugins that add a Content-Security-Policy nonce keep working.
- Adds suggested wording to Settings → Privacy → Policy Guide.
- Keeps one settings row in your database and deletes it when you uninstall.
Questions about the plugin
Does it work with WooCommerce?
The plugin has no WooCommerce-specific code. It adds the script to every front-end page WordPress renders, which includes shop, cart and checkout pages, and holds known trackers there the same way as anywhere else. Check your shop in a private window after installing, as you would for any page.
Will it slow my site down?
It adds one script, loaded from ShieldPage, plus a preconnect hint so the connection opens early. The script is synchronous on purpose: it has to run before the trackers it holds, otherwise blocking becomes a race. Your WordPress server does no extra work beyond reading one saved setting.
Does it support Google Consent Mode v2?
Yes. With the option ticked, Google tags receive denied-by-default consent signals, updated when the visitor chooses. ShieldPage is not a Google-certified CMP and does not support IAB TCF; sites that must pass TCF strings to ad partners need a TCF CMP.
Is it free?
The plugin is free and GPL-licensed. It needs a ShieldPage account, and the Free plan covers one website with no pageview cap; on Free the banner shows the ShieldPage logo. Paid plans start at €9/mo (€7 billed annually) and add the monthly scans, the report and more languages.
Can I install it from the WordPress plugin directory?
Not yet. Download the zip from this page and upload it under Plugins → Add New → Upload Plugin.
Where do I change the banner text and colours?
In your ShieldPage account. The WordPress settings screen only holds the site ID and the two switches for tracker blocking and Consent Mode v2.