On 1 December we ran a health check on our Google Analytics setup and found consent mode was off. Adsnxt builds websites and runs SEO for UK charities and US nonprofits, so UK visitors are the audience we care about most, and Google's consent policy expects consent mode for visitors in the UK, the EEA and Switzerland. We turned it on the same day.
Consent mode is a small idea. When a visitor has not answered the cookie banner yet, the Google tag still loads, but it sends a ping that says consent was not given, and it stores nothing. When the visitor accepts, the tag updates and normal measurement starts. The banner still has to ask. Consent mode only carries the answer to Google.
On WordPress the setup has three parts, and each part does one job. Getting them mixed up is where most of the confusion comes from.
The switch: Site Kit
Site Kit is the plugin that places our GA4 tag, so it is the plugin that has to add the consent code to that tag. The switch lives under Site Kit, Settings, Admin Settings, labelled "Enable consent mode". We turned it on and Site Kit reported that it had added the necessary code to the tag. We reloaded the settings page and checked the switch was still on. It was.
Turning the switch on does not finish the job. Site Kit showed two more requirements underneath it, and both had to be met before consent mode worked end to end.
The shared layer: WP Consent API
The WP Consent API is a free plugin from the WordPress directory. It shows no banner and asks the visitor nothing. It is a shared layer: the banner plugin writes the visitor's choice into it, by category, and other plugins read that state. Site Kit reads it too.
Site Kit offered to install it from the settings page. We installed it over SSH instead, with WP-CLI, because that is how we do plugin changes on this site:
wp plugin install wp-consent-api --activate The command reported the install and activation, and we checked the plugin was active. After that, the first of Site Kit's two requirement cards changed. It showed a green checkmark and the words "Site Kit detected WP Consent API for your site".
The banner: CookieYes
The banner itself comes from CookieYes, the cookie-law-info plugin, version 3.5.10. It was already installed and active on the site, so nothing new was needed there. It is the part the visitor actually sees, and it is the part that writes the choice into the WP Consent API.
We had already restyled it to match the site earlier the same day. The card is white with a mint border and a mint top accent, rounded corners, and the Inter font the rest of the site uses. Accept All is a black pill with white text. Reject All is white with a black border. Customise is light mint, and the toggles are mint green. There is no default blue left in it.
Two details mattered more than the colours. The banner text now names cookies, preferences and Google Analytics, and it links to our cookie policy. And the small round floating button that lets a visitor reopen the banner was hidden with CSS, because we wanted the popup only and no floating button on the page. The popup itself still works, and the choice is still stored.
That same day we also fixed the pages the banner points to. The Privacy Policy had two words in it, so we wrote it properly, and it now runs to 686 words. The Terms of Service had three words, so we wrote that too, and it now runs to 679 words. The Cookie Policy page was new, at 312 words. All three are linked in the footer, and all three are set noindex, so they stay out of the sitemap and out of search results.
The warning that stayed
After all three parts were in place, the second of Site Kit's requirement cards still showed a caution: "Site Kit isn't able to verify the compatibility of all WP plugins". The plugin was installed, the banner was live, and the API plugin was detected, but Site Kit could not confirm the banner part itself.
That is a limit of the dashboard, not a gap in the setup. Site Kit says so in its own documentation: it cannot verify the compatibility of every plugin. So we checked the plugin code over SSH instead of trusting the card. CookieYes's frontend code integrates with the WP Consent API. Its script uses the bridge flag wp_consent_api_bridge_enabled, the wp_consent_waitfor hooks, and wp_set_consent() calls, which is how a banner passes the visitor's choice to the tag. The banner does the job. The warning stays because Site Kit cannot prove it from the dashboard, and that is fine.
This is the part I would tell anyone doing the same setup: a green checkmark and a caution are both claims about the same setup, and neither one is a test. Read the plugin code, or watch what the tag sends. If you have the browser tools open, load a page in a private window, leave the banner unanswered, and look at the GA4 request in the Network tab. The gcs parameter says what happened: G100 means consent was denied, G111 means it was granted. No gcs parameter at all, plus a _ga cookie, means consent mode is not set up and the tag is tracking.
One more rule from Site Kit's own documentation: do not turn on your banner plugin's own consent mode feature when Site Kit already manages it. One source of truth per tag. Two plugins sending consent defaults will overwrite each other, and you will spend an afternoon finding out which one won.
A check from the next day
The day after, we chased a layout shift flag that had been blamed on the banner. The banner is a fixed box in the bottom-left corner, 440 pixels wide, so it does not push page content around. The real cause was the font. The site self-hosts the Inter variable font with font-display swap, and the late swap from the fallback font to Inter was reflowing the heading and the banner text. We preloaded the font file in the head, which removed the cause. The banner was innocent, and it would have stayed blamed if we had trusted the report instead of checking.
What we can and cannot claim
Consent mode is working end to end on the site, and we verified each part: the switch stayed on after a reload, the API plugin is active and detected, and the banner passes the choice through the API. What we cannot claim is a traffic or ranking change, because consent mode changes what Google records, not how the site ranks. Our analytics will now show less from UK visitors who decline, and that is the point. The numbers will be smaller and honest, instead of bigger and wrong.
One thing we have not confirmed yet is how the banner looks to a brand-new visitor. Our own browsers already hold a stored choice, so the banner does not appear for us, and the black and mint styling is still waiting for a first-time visual check. That is on the list.
A short checklist if you do the same
Turn on consent mode in Site Kit under Settings, Admin Settings, and check the switch is still on after a reload. Install the WP Consent API plugin and confirm Site Kit detects it. Make sure your banner plugin writes to the WP Consent API, and check its code if the dashboard cannot confirm it. Do not turn on the banner plugin's own consent mode feature as well. Give the banner a proper policy page to link to. Purge the cache after every change, then verify on the live page, not in the admin preview. And when a dashboard card disagrees with what the code says, trust the code.
The switch was quick, and the checking took longer than the switch.
