What the plugin does
- Loads the CortIQ tracking script on every page. Logged-in administrators are not tracked.
- Shows a consent banner with necessary, statistics and marketing choices, a close button that saves "necessary only", and a link to reopen the settings.
- Stores each consent choice in CortIQ's consent log as well as in the browser.
- Optionally loads Google Analytics 4 with Google Consent Mode v2.
- Banner text in English, Swedish, German, French and Portuguese, or chosen automatically from the site language.
Install
- Download the plugin: cortiq-wordpress-plugin.zip. It is not in the WordPress.org directory.
- In WordPress, go to Plugins → Add New → Upload Plugin, choose the zip file and activate it.
- Go to Settings → CortIQ Analytics and enter the Site ID and Tracking ID from your CortIQ dashboard (Install tracking).
- Choose a tracking mode and save.
Requires WordPress 5.6 or later and PHP 7.4 or later. Tested up to WordPress 6.8.
Settings
- Tracking mode: full (the default) or cookieless. Both modes wait for statistics consent. See cookieless mode.
- Geo-gating: show the banner only to visitors in the EEA, the UK and Switzerland.
- GA4 Measurement ID and Consent Mode: basic or advanced (see below).
- Consent region: apply Consent Mode defaults to the EEA only, or globally.
- Policy version and re-ask cooldown (1 to 400 days): change the policy version to ask every visitor again.
- Banner language and accent colour.
Google Consent Mode v2
When you enter a GA4 Measurement ID, the plugin sets all Consent Mode v2 signals to denied by default (security_storage is granted), waits 500 ms for an update, and turns on ads_data_redaction and url_passthrough. The banner then updates the signals from the visitor's choice.
- Basic: GA4 is not loaded until the visitor gives statistics consent.
- Advanced: GA4 loads at once in denied mode and sends cookieless pings until consent is given.
If you switch the banner off, GA4 loads without any consent defaults. Keep the banner on, or handle Consent Mode in another plugin.