Analytics with Consent
Google Analytics + CIVIC Cookie Control
★ 2stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dxw/analytics-with-consent/archive/refs/heads/main.zipFrom the readme
Analytics with Consent
A WordPress plugin that combines a basic implementation of the Civic Cookie Control Mechanism with a basic implementation of Google Analytics (pageview tracking only).
Installation
With Whippet:
Follow the instructions in the Whippet documentation
Without Whippet (not recommended):
Copy this repo into your wp-content/plugins/ folder.
Setup
You will need:
A Civic Cookie Control API Key:
Use the Civic Cookie Control download page
Select the licence: "Community" (usually), "Pro" or "Multisite" (if required)
Complete the form. This can be set up using standard client email i.e. @clients.govpress.com
Check email for API details
Save the CivicUK login and API details in 1Password
Login to CivicUK
Set the domain
The setup can be tested on staging sites by setting the domain in the CivicUK account to the staging domain, then changing it to the production domain for release.
A Universal Analytics Tracking ID from Google Analytics (usually in format UA-xxxxxxxx-x), or a Google Analytics 4 Measurement ID (format G-xxxxxxxxxx) or a Google Tag Manager id (format GTM-xxxxxx).
Note: GTM should only be used for embedding Google Analytics, because
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.7.0 | Aug 13, 2026 | — | — |
| v1.6.0 | Jun 5, 2026 | — | — |
| v1.5.6 | Jun 26, 2025 | — | — |
| v1.5.5 | Dec 12, 2024 | — | — |
| v1.5.4 | Nov 28, 2024 | — | — |
| v1.5.3 | Nov 26, 2024 | — | — |
| v1.5.2 | Jul 9, 2024 | — | — |
| v1.5.0 | Mar 6, 2024 | — | — |
| v1.4.0 | Nov 3, 2022 | — | — |
| v1.3.0 | Oct 11, 2022 | — | — |
| v1.1.0 | May 5, 2022 | — | — |
| v1.0.0 | May 25, 2021 | — | — |
| v0.2.2 | Apr 12, 2021 | — | — |
| v0.2.1 | Mar 3, 2021 | — | — |
| v0.2.0 | Feb 26, 2021 | — | — |
| v0.1.0 | Nov 13, 2020 | — | — |