Search for "best WordPress cookie consent plugin" and the top results are almost all written by the vendors themselves. CookieYes ranks CookieYes first. WPConsent ranks WPConsent first. It's a remarkable coincidence.
This guide tries to do better. Every plugin claim below comes from the vendor's own documentation or its WordPress.org plugin page — active install counts, free-tier limits, and what each plugin actually says about blocking scripts before consent. Where we couldn't verify something, we left it out.
We'll also cover the part most listicles skip: why a cookie banner alone doesn't make a WordPress site compliant, how WordPress's own Consent API fits in, and the no-plugin path for people who'd rather paste one script tag and move on.
What is the best cookie consent plugin for WordPress?
There's no single best plugin — but there is a clear test: a WordPress cookie consent plugin must block tracking scripts before consent, keep a consent log, and support Google Consent Mode v2. Complianz, Cookiebot, CookieYes, iubenda and WPConsent all claim prior blocking in their official docs, but consent logging and geo-targeting are usually paywalled. A hosted CMP added via a script tag (no plugin at all) is often the simpler option, especially on sites that mix WordPress with other platforms.
Let's unpack what that test actually means.
What WordPress sites actually need for cookie compliance
Under the GDPR and ePrivacy rules, consent must be obtained before non-essential cookies are set — the EDPB's consent guidelines (Guidelines 05/2020) require consent to be freely given, informed and unambiguous, and a cookie set before the user clicks anything is none of those. US state laws like the CCPA/CPRA add opt-out rights instead. For a WordPress site, that translates into four concrete requirements:
- Prior script blocking. Google Analytics, Meta Pixel, YouTube embeds and friends must not fire until the visitor consents. A banner that shows a message while GA loads in the background is decoration, not compliance.
- Consent logging. GDPR Article 7(1) puts the burden of proof on you. You need a record of who consented to what, and when.
- Geo-targeting. EU visitors need opt-in; California visitors need opt-out; many other regions need neither. One global opt-in banner is legal everywhere but costs you data where you didn't need to ask. See where opt-in consent is actually required.
- Google Consent Mode v2. If you run Google Ads or GA4 — including via Site Kit or WooCommerce's Google integrations — Google's EU user consent policy requires consent mode for EEA, UK and Swiss traffic. Site Kit's own documentation spells this out. Our Consent Mode v2 implementation guide covers the mechanics.
Why most WordPress banner plugins fail the blocking test
Here's the structural problem. On WordPress, tracking scripts arrive from two directions:
-
Front-end scripts injected into the page — a GA snippet in your theme, a pixel added by a page builder, a YouTube iframe in a post. A consent plugin can intercept these by rewriting
<script>tags totype="text/plain"until consent, but it has to recognize them first. Auto-blocking lists cover the famous trackers; the long tail of plugins and custom embeds slips through. - Server-side cookies set by PHP before any JavaScript runs. A front-end consent script physically cannot block these. This is exactly the gap the WP Consent API plugin (200,000+ active installs) was built to close: it standardizes how consent state is communicated between plugins, so that a stats or marketing plugin can check consent before setting its own cookies. But it only works if both your consent plugin and the cookie-setting plugin support it — and the WP Consent API explicitly does not collect consent itself.
So when a plugin's marketing says "automatic blocking," the honest reading is "automatic blocking of the scripts on our list, plus whatever you tag manually, plus whatever cooperates via the Consent API." Run a scan after setup and check what still fires on a fresh incognito visit before clicking anything — automatic cookie scanning exists precisely because nobody's blocklist is complete.
The major WordPress cookie consent plugins, compared
All figures below are from WordPress.org plugin pages and official vendor docs as of June 2026.
| Plugin | Active installs | Prior blocking (per own docs) | Consent Mode v2 | Free-tier catch |
|---|---|---|---|---|
| Complianz | 1M+ | Yes — blocks known 3rd-party scripts (Maps, Meta, AdSense, reCAPTCHA…) | Premium only | Geo-targeting, consent records, TCF are premium |
| CookieYes | 1M+ | Yes — auto-blocks common scripts | Yes | Free plan: 5,000 pageviews/month, 100 pages per scan, one domain |
| Cookiebot (Usercentrics) | 100K+ | Yes — "prior-consent cookie blocking," auto + manual modes | Yes, built in | Free plan: 1 domain, 50 subpages |
| iubenda | 200K+ | Yes — auto-blocking added in v3.10.0 | Yes (since v3.8.0) | "Basic set-up" free; limits not clearly documented |
| WPConsent | 100K+ | Yes — auto-blocks GA, Meta Pixel, Clarity and others | Yes, in free version | Geolocation banners and consent logs are Pro |
A few honest notes that the vendor listicles won't give you:
Complianz (4.7★, 1,633 reviews) is the most WordPress-native option — it generates legal documents, integrates with the WP Consent API, and documents WPML and Polylang support for translated banners. The catch: the features that make it provably compliant — geo-IP targeting, advanced consent records, Google Consent Mode — sit in the premium tier.
CookieYes (4.8★) has the friendliest setup, but the free plan's 5,000 pageviews per month (per its own pricing page) is exhausted by even a modest blog. Past that, the banner-management dashboard lives on CookieYes's SaaS, not in WordPress.
Cookiebot (4.4★) is the most explicit about prior consent in its documentation and is a Google-certified CMP. The 50-subpage free limit makes it effectively a trial for any real site, and its automatic blocking mode has a long history of support-forum threads about breaking dynamically loaded scripts — test on staging.
iubenda bundles privacy policy, terms and cookie consent in one plugin, which is genuinely convenient. Its free-tier boundaries are the least transparent of the group; budget for a paid license.
WPConsent is the newest entrant (from the WPBeginner/Syed Balkhi stable) and notably ships Consent Mode v2 support in the free version. But geolocation and searchable consent logs — two of the four requirements above — are Pro features. Consent logs are also stored in your WordPress database, which means your proof of consent lives in the same MySQL instance your intern has access to.
For a broader look beyond WordPress, see our cookie consent tools for developers comparison.
The no-plugin path: add a CMP script tag directly
Every hosted CMP — CookieChimp included — is ultimately one script tag. You don't need a plugin to add a script tag to WordPress; you need one line in a child theme, or a snippets plugin if you'd rather not touch code.
Option 1: child theme functions.php. Hook into wp_head with priority 0 so the CMP loads before other head scripts:
add_action( 'wp_head', function () {
echo '<script src="https://cookiechimp.com/widget/YOUR_ID.js"></script>' . "\n";
}, 0 );
Use a child theme — edits to a parent theme are wiped on update. Priority matters: a CMP can only block scripts that load after it.
Option 2: a snippets plugin. WPCode (3M+ active installs) and similar "insert headers and footers" plugins let you paste the same tag into the site header from wp-admin. Set its location to the header and, if the plugin supports priority, the earliest slot available.
The trade-off versus a consent plugin: the CMP handles banner, blocking, logging, geo-rules and Consent Mode from its own infrastructure — nothing to maintain in WordPress, and the same setup works if half your stack is Next.js or Shopify. What you give up is PHP-level integration: server-side cookies from WordPress plugins won't automatically respect consent unless something bridges them. Weigh this the same way you'd weigh any build vs. buy decision.
Installing CookieChimp on WordPress
CookieChimp works with either approach:
-
Universal: paste the script tag (from your dashboard) at the top of
<head>using either method above. That's the whole install — scanning, geo-targeted banners, consent logging and Consent Mode v2 run from CookieChimp's side. - WordPress plugin: CookieChimp also publishes a WordPress plugin (distributed via its GitHub repo, per the official docs) that loads the widget before other scripts and pushes consent state into the WP Consent API — so Consent-API-aware plugins like Site Kit respect your visitors' choices too. You enter your account ID in the plugin settings and flip on the WordPress integration in CookieChimp.
That Consent API bridge is the detail to look for in any setup: it's what connects a JavaScript banner to WordPress's PHP side.
Two caveats before you ship
WooCommerce checkout cookies are strictly necessary. WooCommerce's session and cart cookies (woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_*) exist so the cart works, and per WooCommerce's own documentation they store no personal information. Cookies that are genuinely required for a service the user requested don't need consent under the ePrivacy rules — so don't gate your checkout behind the banner. Do still list them in your cookie policy, and do still gate the marketing cookies your WooCommerce extensions add (Google for WooCommerce, Meta pixels, abandoned-cart trackers).
Multilingual sites need translated banners. Consent must be informed, and a German visitor clicking "Accept" on an English banner is a weak consent record. If you run WPML or Polylang, verify your consent tool supports them — Complianz, for instance, documents string translation for both. Hosted CMPs handle this with language auto-detection instead; either way, test every locale.
What to actually do (checklist)
- Open your site in a private window with devtools → Network. Note every third-party request that fires before you touch the banner. That's your blocking gap.
- Pick your path: a WordPress-native plugin (Complianz if you want everything inside wp-admin) or a hosted CMP via script tag (simpler, platform-agnostic).
- Whatever you pick, install the WP Consent API plugin and confirm your consent tool registers with it.
- If you use GA4, Google Ads or Site Kit: enable Consent Mode v2 and verify defaults are
deniedfor EEA/UK traffic before consent. - Confirm consent logging is actually on — in several plugins it's a paid feature, and "we showed a banner" is not proof of consent.
- Whitelist WooCommerce's session/cart cookies as strictly necessary; categorize everything else.
- Re-run the incognito test from step 1. Zero non-essential third-party requests before consent is the pass condition.
- If multilingual: click through the banner in every language.
Where CookieChimp fits
If you'd rather not assemble compliance from a free plugin plus three paid add-ons, CookieChimp covers the full requirement list from one script tag: prior script blocking with an automatic safeguard for untagged scripts, geo-targeted banners (opt-in for the EU, opt-out for California), consent logging, automatic cookie scanning, and built-in Google Consent Mode v2. It's simple yet powerful — and because it's not WordPress-specific, the same setup follows you if you ever migrate off WordPress. The optional WordPress plugin adds the WP Consent API bridge for deeper integration.
FAQ
Do I need a cookie consent plugin for WordPress?
You need a consent mechanism, not necessarily a plugin. If your site uses any non-essential cookies — analytics, ads, embedded video — and serves visitors in the EU, UK or other opt-in jurisdictions, something must collect consent and block those scripts first. That can be a WordPress plugin or a hosted CMP added via a single script tag in your theme or a snippets plugin like WPCode.
Is a free cookie consent plugin enough for GDPR compliance?
Sometimes, but read the fine print. Free tiers commonly exclude exactly what GDPR audits ask for: Complianz puts geo-targeting and advanced consent records in premium, WPConsent puts geolocation and consent logs in Pro, CookieYes caps free use at 5,000 pageviews a month, and Cookiebot's free plan covers only 50 subpages. The banner is free; the proof of compliance usually isn't.
Does WordPress have built-in cookie consent?
No. WordPress core sets a comments cookie opt-in checkbox and that's about it. The closest thing to a core standard is the WP Consent API plugin — a community project that standardizes how consent state is shared between plugins — but it explicitly doesn't show a banner or collect consent itself. You still need a consent tool on top.
Do WooCommerce cookies require consent?
The cart and session cookies don't. WooCommerce's own documentation lists them as functional cookies that store no personal information — they're strictly necessary for the shop to work, which exempts them from the consent requirement. Marketing and analytics cookies added by WooCommerce extensions (Google, Meta, abandoned-cart tools) do require consent like any other tracker.
How do I add Google Consent Mode v2 to WordPress?
Either use a consent plugin that supports it (Cookiebot, CookieYes, iubenda and WPConsent all do per their docs; Complianz in premium), or use Site Kit's built-in consent mode toggle, which installs the WP Consent API and sets default-denied consent states for EEA/UK visitors — you still need a consent banner to update those states. A hosted CMP like CookieChimp ships Consent Mode v2 without extra configuration.
Will a cookie consent plugin slow down my WordPress site?
Any extra script costs something, but the real-world impact depends on the specific plugin, your hosting and your caching setup — distrust any comparison that quotes universal millisecond numbers without showing its methodology. The practical advice: load the consent script early (it must run before trackers anyway), keep it as the only consent tool installed, and measure your own site with PageSpeed Insights before and after.
References
- WordPress.org, "Complianz – GDPR/CCPA Cookie Consent": wordpress.org
- WordPress.org, "CookieYes – Cookie Banner for Cookie Consent": wordpress.org
- WordPress.org, "Cookiebot by Usercentrics": wordpress.org
- WordPress.org, "iubenda | All-in-one Compliance": wordpress.org
- WordPress.org, "WPConsent – Cookie Consent Banner for Privacy Compliance": wordpress.org
- WordPress.org, "WP Consent API": wordpress.org
- CookieYes, "Pricing": cookieyes.com
- Google, "Consent mode — Site Kit by Google": sitekit.withgoogle.com
- WooCommerce, "WooCommerce and cookies": woocommerce.com
- EDPB, "Guidelines 05/2020 on consent under Regulation 2016/679": edpb.europa.eu
- Complianz, "Configuring for Polylang": complianz.io
- CookieChimp, "WordPress Plugin — CookieChimp Docs": cookiechimp.com
Ready to stop juggling plugin tiers? Get started with CookieChimp — one script tag, full compliance on WordPress or anywhere else.