NewReady-made websites, live on your domain in days. Browse designs

WordPress Cookie Consent and GDPR: What Your Site Needs

Which cookies WordPress sets on its own, when GDPR and the UK rules require a cookie consent banner, how to choose a plugin and wire it into Google Tag Manager, and how to test the result in ten minutes.

December 3, 2026

Data privacy settings open on a phone screen held above a desk

Key takeaways

  • WordPress core sets no cookies for a logged-out visitor who only reads pages. It sets login cookies for people who sign in, and comment cookies only when a commenter ticks the box to save their details.
  • A WordPress site with no analytics, ad pixels or third-party embeds does not need a consent banner. Storage that is strictly necessary for the service a visitor asked for is exempt under Article 5(3) of the ePrivacy Directive.
  • Cookies are governed by the ePrivacy Directive and, in the UK, by regulation 6 of PECR. The GDPR supplies the definition of consent, and it reaches businesses outside the EU that serve or monitor people in the EU.
  • Prior consent means no optional tag fires before the click. In Google Tag Manager, that means denied defaults set on the Consent Initialization trigger, before any other tag runs.
  • Since February 5, 2026, UK sites can run narrow first-party analytics without consent, as long as visitors get clear information and a simple, free way to object.

Two WordPress sites for the same kind of business, built the same month: one needs a cookie banner and one does not. The country is not what separates them. What separates them is whether anything on the page writes to or reads from the visitor’s device beyond what the site needs to function.

So here is the short answer on WordPress cookie consent. A brochure site with no analytics, no embedded video and no advertising pixels needs a privacy policy, not a GDPR consent banner. Add Google Analytics 4 or a Meta pixel to that same site and the answer flips. This guide starts with what WordPress itself sets, traces the rule back to the laws that create it, then covers plugins, Tag Manager and a test you can run yourself. It is the sequence we follow on a build and on every site we watch under our WordPress care plans.

Legal sources were read on November 13, 2026. WordPress, Google and plugin facts were rechecked on December 3, 2026. No plugin vendor’s blog was used as a source.

This article explains how websites store and send data. It is not legal advice. Confirm your own obligations with a qualified privacy adviser and with the official guidance from your regulator.

Does WordPress use cookies?

Yes, but fewer than most people expect, and none for a visitor who only reads pages. WordPress core sets cookies in two situations: when someone logs in, and when a commenter chooses to save their details.

The WordPress developer documentation on cookies lists them all:

  • Logged-out visitors reading pages: none from core.
  • Commenters: comment_author_{HASH}, comment_author_email_{HASH} and comment_author_url_{HASH}, set “to expire a little under one year from the time they’re set”. Since WordPress 4.9.6, released May 17, 2018, logged-out commenters get a checkbox and the cookies are set only if they tick it.
  • Logged-in users: authentication, screen-preference and language cookies, plus a test cookie on the login screen. All are in the table below.

So when a scanner reports a dozen cookies on your site, they come from your theme, plugins and embeds, not from WordPress itself. One non-cookie point: with avatars switched on under Settings, then Discussion, comment avatars load from Gravatar’s servers, which sends each reader’s IP address to a third party.

Here is how core and WooCommerce cookies sit against the strictly necessary exemption. The names come from the WordPress documentation and from WooCommerce’s own cookie document. The classification is ours.

Cookie What sets it Life Consent needed?
wordpress_logged_in_[hash], wordpress_[hash], wp-settings-{time}-[UID], wp_lang Logging in and the admin screens Login session, adjustable No. Authenticating someone who asked to log in is strictly necessary
wordpress_test_cookie The login page Temporary No. It checks whether the browser accepts cookies at all
comment_author_{HASH} and its email and URL pair Posting a comment with the box ticked Just under one year No, if the visitor ticked the box. The box must not be pre-ticked
woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_ Adding a product to the cart Session, session, 2 days No. A cart that forgets its contents is not a working store
woocommerce_recently_viewed The Recently Viewed Products widget Session Yes, in our reading. Merchandising is not something the shopper requested
store_notice[notice id] Dismissing the store notice Session No. It records a selection the visitor made
tk_ai WooCommerce usage tracking, if enabled Session Admin only, and it is analytics. Switch usage tracking off if you do not want it
Consent plugin’s own record Your cookie banner Usually 6 to 12 months No. Remembering a choice is necessary to respect it

A store running plain WooCommerce still clears the bar. Add abandoned-cart tracking, a Meta catalog pixel or product-view analytics and it does not.

Hands typing on a laptop while editing the product pages of an online store
WooCommerce cart and session cookies are strictly necessary. Merchandising extras such as recently viewed products are not. Photo by Shoper on Unsplash

When does a WordPress site not need a cookie banner?

You do not need a consent banner when every piece of storage on your site is strictly necessary for the service the visitor requested. All five of these have to be true:

  • No analytics of any kind, including Google Analytics 4, Tag Manager, Clarity, Hotjar or a hosting dashboard that injects a script.
  • No advertising or conversion pixels: Meta, Google Ads, LinkedIn, TikTok, Pinterest.
  • No third-party embeds that load on page view: YouTube, Vimeo, Google Maps, a chat widget, a review slider, Google Fonts pulled from Google’s servers.
  • No social or marketing plugin that sets its own tracking identifier.
  • No A/B testing or session recording script.

If that describes your site, stop shopping for a consent plugin. Publish a plain cookie section in your privacy policy instead, naming what the site sets and why. The duty to tell people survives the exemption.

This is where the usual advice goes wrong for a small business. Most guides on this topic come from consent-plugin vendors, so they open with plugin comparisons. For a five-page site with no tracking, that sells you a problem you do not have.

This is a snapshot, not a permanent state. The day someone adds a campaign pixel, the site becomes a banner site.

Which law actually governs cookies, and who does it apply to?

The GDPR is not the cookie law. The cookie rule lives in Article 5(3) of the ePrivacy Directive 2002/58/EC. In the UK the same ground is covered by regulation 6 of PECR, which has diverged since February 2026.

The consolidated text of the directive allows storing information, or reading information already stored, on a visitor’s device only with consent given after clear and comprehensive information. It carves out two cases: storage needed purely to transmit a communication, and storage that is “strictly necessary” for a service the user explicitly requested.

Two details in that sentence decide most arguments. First, the trigger is storage or access, not personal data. A cookie with no name or email in it is still covered. Second, the exemption is judged from the visitor’s side, not yours. The ICO puts it plainly: “There are no advertising purposes that meet the strictly necessary exception.”

The GDPR then defines consent. Article 4(11) requires “a freely given, specific, informed and unambiguous indication”, Article 7(3) makes withdrawal as easy as giving it, and recital 32 rules out silence, pre-ticked boxes and inactivity.

Who this applies to. The question is where your visitor is, not where your company is registered. GDPR Article 3(2) covers controllers outside the EU whose processing relates to offering goods or services to people in the Union, or to monitoring their behavior. Say you run a Denver law firm with a German client base. You are in scope.

Updates

  • November 2023: Google added two parameters, ad_user_data and ad_personalization, to consent mode. Google’s developer documentation calls this update consent mode v2.
  • December 20, 2024: the ICO replaced its older detailed cookies guidance with new guidance on the use of storage and access technologies, extending the same rules to pixels, link decoration, fingerprinting and local storage.
  • February 5, 2026: section 112 of the Data (Use and Access) Act 2025 came into force in the UK under the Commencement No. 6 Regulations, SI 2026/82. It rewrote regulation 6 of PECR and added the Schedule A1 exceptions, including one for statistical purposes.
  • April 29, 2026: the ICO finalized that guidance after two consultations and added a sub-chapter on what a “simple means of objecting” has to look like.
  • June 15, 2026: Google Analytics began using consent mode in Google Ads as the single control for ads data from the Google tag, according to Google’s Analytics Help page on data control updates. The Google signals setting no longer controls ads data collection, so your banner’s consent signals now carry that job alone.

What turns a WordPress site into a banner site?

Any script that stores or reads something on the device for a purpose the visitor did not ask for. In practice, four families of tool do it.

  1. Google Analytics 4. A standard GA4 install writes a first-party _ga cookie to recognize returning devices. That is a persistent identifier, not a statistic about the service. Consent is needed in the EU, and in the UK unless the narrow exception below is met in full.
  2. Google Tag Manager. The container is only a loader. Every tag inside it is the real question, and the pixel is often two clicks deep in a container nobody has opened in a year.
  3. Advertising and conversion pixels. Meta, Google Ads, LinkedIn and TikTok exist to connect a visitor to an ad. No advertising purpose meets the strictly necessary exception, so these always need prior consent.
  4. Heatmaps, session recordings and A/B tests. These record an individual visit. They sit outside every exemption, in both the EU and the UK.

Then there is whatever your host, theme or page builder adds: a CDN script, a review widget, a chat bubble.

A website analytics report filling a desktop screen with charts and traffic numbers
A standard Google Analytics 4 install writes a _ga cookie, so it needs prior consent in the EU. Photo by 1981 Digital on Unsplash

Can UK sites run analytics without a cookie banner?

Sometimes, and only inside a narrow box. The Data (Use and Access) Act 2025 added a statistical purposes exception to PECR, in force since February 5, 2026. It is the biggest practical difference between the UK and the EU right now.

The ICO’s guidance on the exceptions sets out the conditions:

  • The sole purpose is collecting statistics about how your site is used, in order to improve it.
  • The output is aggregate information that cannot identify anyone.
  • You do not keep the individual-level data after aggregating it.
  • You do not make inferences or decisions about particular people.
  • A third-party analytics provider may help, but only as your processor. It may not use or combine the data for its own ends.
  • You tell visitors, and you give them a “simple and free” means to object.

A normal GA4 property fails these fast. Google Signals, advertising features, conversion data shared with Google Ads, and retention set in months rather than until aggregation all break the exception.

Our position is simple. For UK analytics without a banner, use a cookieless tool with a visible objection control, not a reconfigured GA4 that you hope qualifies. None of it helps your EU visitors, because the EU has no equivalent exception.

Do YouTube, Vimeo, Google Maps and Google Fonts need consent?

Treat every third-party embed as a consent question until you have checked what it loads.

  • YouTube. The standard embed loads Google’s player on page view. YouTube’s help page offers privacy-enhanced mode on the youtube-nocookie.com domain and says a view there “will not be used to personalize the YouTube browsing experience”. It does not say the player stores nothing, so the switch is not a consent exemption.
  • Google Maps. An interactive map is a Google application inside your page. A static image of your location with a link to directions removes the question, and loads faster.
  • Google Fonts from Google’s servers. A font file is not a cookie, so Article 5(3) is not the issue. The request still sends the visitor’s IP address to Google before anyone agrees to anything. Self-host the files and the request never happens.

For video and maps, use a click-to-load placeholder, sometimes called a facade: your own thumbnail with a play button, and the real embed loaded on click. We build video sections this way by default, and it helps the numbers in our guide to Core Web Vitals on WordPress.

The YouTube app open on a laptop screen on a light wooden desk
A standard YouTube embed loads Google code on page view. A click-to-load placeholder holds it back. Photo by NordWood Themes on Unsplash

How do you choose a WordPress cookie consent plugin?

Judge a consent plugin by what it does before the click, not by how the banner looks. Six checks matter more than any template gallery.

  • Prior blocking. It holds optional scripts and iframes until consent, including ones added by other plugins. Verify it with the private-window test below.
  • Consent Mode v2 signals. It sends all four Google signals and lets you choose basic or advanced mode, explained in the next section.
  • WP Consent API support. The WP Consent API plugin “standardizes the communication of accepted consent categories between plugins”, using five categories: functional, preferences, statistics-anonymous, statistics and marketing. Support on both sides means a plugin such as Google Site Kit or WP Statistics can read the visitor’s choice instead of guessing.
  • Consent records. GDPR Article 7(1) says the controller must be able to demonstrate consent. Check what is logged (date, choice, banner version) and where it is stored.
  • Region rules. An opt-in banner for EU and UK visitors, and a US opt-out link where state law needs one.
  • Maintenance. Check “Last updated” and “Tested up to” on the WordPress.org listing.

Three names come up most in searches. The table below records only what each plugin’s own WordPress.org listing said when we checked on December 3, 2026. It is not a ranking, and we did not test these plugins for this article.

Listing says Complianz CookieYes CookieFirst
Google consent mode “Built-in support for Google Consent Mode v2” Passes consent signals to GA4, Google Ads and Tag Manager through its free web app “Support for Microsoft and Google Consent Mode”
WP Consent API Yes, full integration Yes Yes, since version 2.0.0
Consent records Proof of consent in the free version Consent log through the free web app, which needs an account Consents stored in the European Union
Region rules Region banners free; IP-based banner in premium Region-specific banners on paid plans Not stated
Account or subscription Not stated Free account for the web app features Active CookieFirst subscription required
Tested up to WordPress 7.1.5 WordPress 7.1.5 WordPress 6.8, with WordPress.org’s warning that it has not been tested with the latest three major releases

Whichever you pick, the same plugin can pass or fail the prior consent test depending on its configuration.

No. Consent mode is how your banner tells Google tags what the visitor chose. It is a signaling layer, and which version you use decides whether the tag waits.

Google’s consent mode documentation describes two implementations. In basic consent mode, “you prevent Google tags from loading until a user interacts with a consent banner”, and if the visitor refuses, “Google tags are completely blocked from firing”. In advanced consent mode, “Google tags load when a user opens the website or app”, and while consent is denied “the Google tags send measurements without cookies”.

That difference is the whole story. In advanced mode a request leaves the visitor’s browser before any click. No cookie is written, so Article 5(3) is arguably not engaged, but data still moves. That is a GDPR question for your adviser, not a plugin setting.

How do you set up cookie consent in Google Tag Manager on WordPress?

Set every consent type to denied before any tag fires, then let the banner update it. In Tag Manager, one trigger enforces that order.

Google’s Tag Manager consent mode help page says “The Consent Initialization trigger will always fire before all other tags, including any Initialization triggers.” Build on that:

  1. Load the container once. Remove any GA4 snippet hard-coded in the theme or added by a second plugin. A copy outside Tag Manager ignores its consent settings.
  2. Pick one consent path. Use either your consent plugin’s own Google consent mode output or its Tag Manager template, not both. Two sources of defaults produce conflicting states.
  3. Fire the consent template on Consent Initialization – All Pages. Set ad_storage, analytics_storage, ad_user_data and ad_personalization to denied. Google’s consent setup guide says defaults must come before any commands that send measurement data, and lets you set different defaults for specific regions.
  4. Gate the non-Google tags. Google tags have built-in consent checks. A Meta, LinkedIn or TikTok tag does not, so add an additional consent check under its consent settings. Google describes the effect: “This tag will only fire if the status of all specified consent types are ‘granted'”.
  5. Review the Consent Overview. Google calls it “a high level view of all the consent settings across the tags in your container”. Any tag with no consent setting is a finding.
  6. Test in Preview, then in a private window. Preview shows the consent state on each event; the test below shows what really left the browser.

A shortcut we avoid: firing tags on a “consent accepted” event with no denied default. A misnamed event leaves the tag firing for everyone.

Because the banner appears and the tags fire anyway. The EDPB is direct about timing in its consent guidelines: “consent must always be obtained before the controller starts processing personal data for which consent is needed” (paragraph 90). The ICO says the same in fewer words: if no exception applies, “you must obtain prior consent”.

A plugin that only shows a banner does not stop a script. Three things commonly break real blocking on WordPress sites:

  • A tag hard-coded into the theme’s header file or a code-snippets plugin, where the consent plugin never sees it.
  • A caching or optimization plugin that merges and inlines scripts, which undoes the blocking rewrite.
  • An update that resets the consent plugin’s script list, so a newly added tag loads unblocked. Our guide to updating WordPress plugins safely covers the testing pattern that catches this.

Here is the test we run. It takes about ten minutes and needs only the browser you already have.

  1. Open a private or incognito window so no earlier choice is remembered, then load your home page and do not click anything.
  2. Open developer tools. In Chrome or Edge, press F12, then go to Application, then Storage, then Cookies, and select your domain.
  3. Read the list. Anything other than the strictly necessary cookies in the table above is a problem, and _ga is the usual find.
  4. Switch to the Network tab and filter for collect, gtag, gtm.js or fbevents. A request already sent means the tag fired before consent.
  5. Reload with the filter still on, then click Reject. Nothing new should appear. If the same requests fire on reject as on accept, your banner is decoration.
  6. Repeat on one inner page and on a form thank-you page. Tags are often added to conversion pages only.

What makes a cookie banner lawful?

A lawful banner gives a real choice, in one step, with no steering. Five design rules carry almost all of the weight, and each one has a named source.

Rule What it means in the design Source
Refusing is as easy as accepting A reject control on the first layer, as prominent as accept. Not a link, not a second screen ICO consent checklist: “Our consent mechanism makes it as easy to refuse consent as it is to accept.”
Nothing on by default Every optional toggle starts off. No pre-ticked boxes, no legitimate-interest switches left on GDPR recital 32; EDPB deceptive design guidelines on pre-ticked boxes
No cookie wall where it is not allowed Content stays reachable for someone who refuses EDPB consent guidelines paragraph 39; ICO: in most cases “take it or leave it” fails the freely given test
Granular purposes Separate controls for analytics, advertising and other purposes, with third parties named EDPB consent guidelines paragraphs 42 to 45; ICO consent checklist
Withdrawal as easy as consent A persistent control, usually a small settings link in the footer, that reopens the choices and clears what was set GDPR Article 7(3); ICO: withdrawal “with the same ease that they gave it”

The EDPB guidelines on deceptive design patterns go further than most designers expect on the visual side.

“if controllers decide to highlight one option more than the other(s), the highlighted one needs to be the most restrictive regarding data processing.”

European Data Protection Board, Guidelines 03/2022 on deceptive design patterns

Read that as a design brief. A dark blue Accept all button beside gray text that says Manage preferences is exactly the nudge the EDPB describes. If you highlight anything, highlight reject.

Scrolling is not consent either: the EDPB consent guidelines say at paragraph 86 that scrolling or swiping “will not under any circumstances satisfy the requirement of a clear and affirmative action”.

The banner also has to be usable. A modal that traps keyboard focus, or hides reject behind a low-contrast label, fails on two fronts at once. We test it with the checks in our guide to website accessibility for small businesses.

Do you need a cookie policy, a privacy policy or a banner?

They do different jobs, and a site can need one without the others. The banner collects a decision before optional storage happens. The policies explain what you collect, why, and who receives it.

A privacy policy is needed as soon as you process personal data at all, which a contact form does. WordPress has let you designate one under Settings, then Privacy, since version 4.9.6, and WooCommerce can link it from the registration and checkout notices with the [privacy_policy] shortcode.

No law requires a page titled “cookie policy”. Article 5(3) requires clear and comprehensive information, and a cookie section inside the privacy policy can carry it. A separate cookie policy page helps once the list grows. Either way, name each cookie or tool, who sets it, what it is for and how long it lasts, then link it from the banner and the footer settings link. List your strictly necessary cookies too: no consent is needed for them, but the duty to inform still applies.

A one-line “we use cookies” strip satisfies neither job.

What about US state privacy laws?

US state laws use a different model. They generally give people a right to opt out of targeted advertising and of the sale or sharing of personal information. They do not require opt-in consent before a cookie is set.

California is the one most small businesses meet first. The California Privacy Protection Agency’s FAQ says the CCPA applies to a for-profit business in California with gross annual revenue of $26.625 million or more (since January 1, 2025), or that buys, sells or shares the personal information of 100,000 or more residents or households, or earns 50% or more of revenue from selling or sharing it.

Businesses in scope must give a conspicuous “Do Not Sell or Share My Personal Information” or “Your Privacy Choices” link, and must honor opt-out preference signals such as Global Privacy Control. An EU-tuned banner does not deliver that link, and a US opt-out does not deliver EU prior consent. Decide which visitors you serve before you configure anything.

Who keeps this right after launch?

Consent setup is build work. Keeping it true is maintenance work, because ordinary change breaks it: a new pixel, a plugin update, an agency given admin access.

Setting up or correcting a banner on an existing site is quoted separately, after we see what the site loads. The recurring part fits a care plan. Our Business plan, at $99 a month per website, includes a monthly SEO check and a monthly test of contact forms and links, which is when the private-window test above gets rerun. The $49 a month plan covers the weekly WordPress, theme and plugin updates that most often disturb a consent setup, with free fixes if an update breaks the site. Both are billed monthly with no contract.

One limit, stated plainly: we build and maintain WordPress sites. We do not provide legal or compliance certification, and we will say so when a question belongs with a privacy adviser.

Whatever you decide, put the check on a schedule. Our WordPress maintenance checklist shows where a monthly tag review fits.

Check your site this week

  • Open your home page in a private window and do not click. How many cookies are set before any choice? Write down the number.
  • Is _ga among them? Yes or no.
  • Filter the Network tab for collect or gtag, reload, then click Reject. Does any analytics request still fire? Yes or no.
  • Is there a reject control on the first layer of your banner, as prominent as accept? Yes or no.
  • Open Tag Manager’s Consent Overview. How many tags have no consent setting?
  • Does your consent plugin’s WordPress.org listing show it tested with your WordPress version? Yes or no.
  • Can you find a way to change your choice after accepting, in under 15 seconds, from the footer?

Frequently asked questions

Is WordPress GDPR compliant out of the box?

No software is compliant on its own, because compliance depends on what you collect and why. WordPress core gives you the tools: since version 4.9.6 it offers a privacy policy page setting, an opt-in checkbox for comment cookies, and Tools screens to export or erase a person’s personal data. What usually breaks compliance is what gets added later: analytics, pixels, embeds and form plugins that send data elsewhere.

What does GDPR mean for a WooCommerce store beyond cookies?

Mostly retention and erasure. Under WooCommerce, then Settings, the Accounts and Privacy tab has retention settings for inactive accounts and for pending, failed, canceled and completed orders. WooCommerce notes that a blank field keeps that data indefinitely. The same tab has “Remove personal data from orders on request”, which decides whether an erasure request run from WordPress Tools also clears order data. Set the periods, then state them in your privacy policy.

Does Google Site Kit mean my site needs a banner?

Usually, yes, if it places the Google Analytics tag. Site Kit is a connector, and the GA4 tag it adds sets the same _ga cookie as any other install, so the consent rule is unchanged. The WP Consent API listing names Site Kit among the plugins that work with the API, so pairing it with a consent plugin that supports the API lets the two share the visitor’s choice.

How often do I have to ask for consent again?

Neither the ePrivacy Directive nor PECR sets a fixed period, so there is no legal 12-month rule. The ICO does say you may need fresh consent when your use of these technologies changes, for example when you add a new advertising partner. Most sites store a choice for six to twelve months and re-ask after that. Record the date and the version of the purpose list with each choice.

Do cookies set by my contact form need consent?

Usually not, if the cookie only makes the form work for the person using it, such as a spam token or a field the visitor asked you to remember. The form data itself is a separate question under the GDPR, and needs a lawful basis and a privacy notice. Watch for form plugins that load a third-party anti-spam or analytics service, since those are a different decision.

Does a cookie banner slow my WordPress site down?

Yes, usually a little, and the size depends on the implementation. A cloud-hosted banner adds a third-party connection and a script that has to run before the rest of the page settles, which can shift layout as it appears. A self-hosted banner with reserved space and a small script is kinder to your loading scores. Measure it rather than assuming, because some setups add more than the tags they block.

What happens if I ignore cookie consent entirely?

The realistic first consequence is a complaint from a visitor or a question from a prospective client’s procurement team. Regulators act on complaints and on patterns, and the UK enforcement regime for PECR changed on February 5, 2026 to align with data protection law. Figures move, so check your regulator’s current position rather than a blog’s. The cheaper path is to remove the tags you do not use.

Hand the monthly tag check to someone else

Our care plans keep WordPress, themes and plugins updated weekly and test your forms and links every month, from $49 a month per website with no contract.

See the care plans

Work with us

Ready for a website that works as hard as you do?

Fixed-price WordPress packages, launch-ready in 7 to 21 days.

Fixed price, agreed upfront

No hourly billing or surprise invoices.

50% to start, 50% on approval

Or pay in full, if you prefer.

First-design guarantee

You approve the homepage design first, backed by a full refund of your first payment.