Artisan Solutions

Cookie Consent and GDPR for WordPress Sites: A Plain-English Guide

You open a website, and a banner appears before you’ve read a single word. Accept, reject, manage, settings. Most of us click whichever button makes it disappear fastest. For website owners, though, that banner is far more than an irritation. In the UK and Europe, it’s a legal and trust issue, and getting it wrong can mean complaints, regulator attention and lost credibility.

If your WordPress site gets visitors from the UK or the European Union, the rules can apply to you even when your business is based elsewhere. At the same time, a badly configured banner can cause its own damage. It may block your analytics, break your tracking or slow your pages.

This plain-English guide to GDPR cookie consent on WordPress will help you understand the basics and set things up sensibly. You’ll learn:

  • What counts as a cookie that needs consent, and what doesn’t
  • How consent banners should work
  • How to choose a consent plugin, and how to check that it really blocks scripts first
  • How to connect Google Analytics and other tags to the consent setting
  • How to test the whole thing in a private browser window

Why Cookie Banners Matter for UK and EU Visitors

Two sets of rules sit behind most cookie banners.

  • Rules on storing or reading information on someone’s device. In the UK, these sit in the Privacy and Electronic Communications Regulations (PECR). In the EU, they come from the ePrivacy Directive, as each member country applies it. In general, you need consent first, unless a limited exception applies
  • Data protection rules. The UK GDPR and the EU’s GDPR govern how you collect and use personal data, and they set the standard for what valid consent looks like

The rules have a wide reach. If you offer goods or services to people in the UK or EU, or you monitor their behavior, they may apply even if your company sits in another country. Regulators, such as the UK’s Information Commissioner’s Office (ICO), have treated cookies as an enforcement priority, and fines for breaches can be large.

Beyond the law, there’s a trust angle. Visitors increasingly notice how a business handles their data. A clear, honest banner signals that you take privacy seriously.

The UK Rules Changed in 2026

As of our research in November 2026, the UK’s Data (Use and Access) Act 2025 changed PECR from 5 February 2026. In summary, it added some narrow exceptions to the consent rule, such as for certain analytics used purely to improve your own site and for some preference cookies. The exceptions come with strict conditions, including clear information and a simple, free way for visitors to object. The Act also raised maximum fines for PECR breaches to the same level as UK GDPR fines.

The ICO published updated guidance in 2026, and its summary of the changes is a good place to start. Be careful, though. The exceptions are narrow, they don’t apply in the same way in the EU, and many commonly used analytics setups may not qualify. Many businesses therefore keep asking for consent. Ask your adviser what applies to you.

What Counts as a Cookie That Needs Consent?

It helps to know what you’re dealing with. The word “cookie” is shorthand. The rules cover cookies and also similar technologies that store or read information on a visitor’s device, such as local storage, tracking pixels and scripts that fingerprint a browser.

Usually Doesn’t Need Consent: Strictly Necessary Cookies

Cookies that are essential to deliver something the visitor has asked for generally don’t need consent. Examples on a WordPress site include:

  • Login and session cookies that keep a user signed in
  • Security cookies that protect forms and logins
  • Shopping cart and checkout cookies on a WooCommerce store
  • Cookies that remember a visitor’s consent choice itself
  • Load balancing or similar technical cookies

The test is whether the site would fail to deliver the requested service without them. Convenience, analytics and marketing aren’t on that list.

Usually Needs Consent: Everything Else

Unless a specific exception applies, you generally need consent before setting these:

  • Analytics and statistics, such as Google Analytics (see the note on the UK exception above)
  • Advertising and retargeting, such as ad pixels and conversion tracking
  • Social media pixels and plugins, such as tracking tags
  • Embedded content from other services, such as YouTube videos, maps and social feeds, which may set cookies or send data once they load
  • Heatmaps, session recording and A/B testing tools
  • Live chat and customer support widgets that track visitors
  • Marketing and personalization tools

Don’t Forget Third-Party Resources

Some third-party resources send visitors’ data to other companies, even without setting a cookie. For example, fonts or scripts loaded from an external server reveal the visitor’s IP address to that server. Some European authorities and courts have treated this as a privacy problem, so many sites now host fonts and libraries on their own server. Self-hosting is also good for speed, as our website speed checklist explains.

Not Only Cookies: Forms, Comments and Marketing

Cookie consent is one piece of the puzzle. You also need to think about contact forms that collect personal data, comment forms, newsletter sign-ups and marketing emails. Each may need its own clear notice and, in some cases, its own consent. WordPress includes privacy tools under Settings → Privacy and Tools for exporting and erasing personal data, and your privacy policy should explain what you collect and why.

Find Out What Your Site Actually Sets

Don’t guess. Many sites set far more cookies than their owners realize, since themes, plugins and embeds each add their own. A cookie scanner built into a consent plugin can list what your site uses. You can also check manually, using the browser steps in the testing section below.

How Consent Banners Work: Accept, Reject and Manage

A valid banner is more than a box that says “OK.” Regulators have been clear about the features it should have. Details vary, so confirm them with your adviser, but the following principles are widely expected.

What a Good Banner Includes

FeatureWhat It Means in Practice
Clear informationExplain, in plain language, what cookies you use and why, before the visitor chooses
No cookies before consentNon-essential cookies and tags stay off until the visitor agrees
An easy way to acceptA clear “Accept” button
An equally easy way to rejectA “Reject” button that is as visible and as easy to use as “Accept,” on the first layer of the banner
Granular choicesA “Manage” or “Preferences” option that lets visitors choose by category, such as analytics or marketing
No pre-ticked boxesOptional categories start off
No tricksNo misleading colors, tiny buttons or wording designed to push people toward “Accept”
Easy withdrawalA visible link or button to change or withdraw consent at any time
A record of consentEvidence of when and how consent was given, which many plugins can log
A linked policyA cookie policy listing each cookie, its purpose and how long it lasts

What Doesn’t Count as Consent

  • Continuing to scroll or browse
  • Pre-ticked boxes
  • Silence or inactivity
  • A banner that only says “we use cookies” with a single OK button
  • Making the site unusable unless the visitor accepts all cookies (a “cookie wall”), although the rules on this are nuanced

Think About Accessibility and Design

A banner must also work for everyone. Make sure it can be used with a keyboard, that it has good color contrast and that screen readers can read it. Our guide to website accessibility for small business covers the basics. Keep the design clear and non-intrusive, and don’t cover the whole page with a pop-up that confuses visitors.

Remember to Re-Ask Sensibly

Consent shouldn’t last forever. Many plugins ask again after a set period, such as six to twelve months, or when your cookie use changes. Ask your adviser what interval suits you.

Choosing a Consent Plugin (and Checking That It Blocks Scripts Before Consent)

WordPress has no built-in consent banner, so you’ll need a plugin or an external consent management platform (CMP). Options include Complianz, CookieYes, Cookiebot, Real Cookie Banner, Borlabs Cookie and the iubenda plugin. Features, plans and pricing change often, so compare current details on each provider’s site. Our guide to the essential WordPress plugins every site needs can help you keep the rest of your plugin setup lean as well.

What to Look For

  1. Blocks scripts before consent. This is the most important feature. A banner that only displays a message, while analytics and ad tags keep running, doesn’t protect you
  2. Category-based control. You should be able to assign each script to a category, such as analytics or marketing, and switch categories on or off by consent
  3. Equal Accept and Reject buttons on the first layer
  4. A cookie scanner that finds what your site sets, and keeps the list current
  5. Consent logs, so you can show what each visitor chose and when
  6. Google Consent Mode support, if you use Google Analytics or Google Ads (see the next section)
  7. WooCommerce and embed handling, such as placeholders for YouTube or maps that load only after consent
  8. Geo-targeting options, if you want different banners for different regions. Many sites simply apply one standard everywhere, which is simpler
  9. Languages, if your site is multilingual
  10. Performance and accessibility, so the banner doesn’t slow the page or create new barriers
  11. Support and updates, since laws and tools keep changing
  12. Transparent pricing, including what the free version really includes

Be Skeptical of “GDPR Compliant” Claims

No plugin makes a site compliant by itself. A plugin is a tool. Compliance also depends on your settings, what your site actually does, your policies and the choices you make. Treat marketing claims with caution, and test the setup yourself.

How to Check That It Really Blocks Scripts First

After installing a plugin, don’t assume it works. Test it using the private-window method in the testing section below. In brief, load your site as a new visitor, look at the cookies and network requests before clicking anything, and confirm that analytics, ad and social tags haven’t fired. Also check that your theme, page builder or other plugins don’t add tracking code outside the plugin’s control. Manually pasted scripts in a header, a footer or a theme setting often escape automatic blocking.

Performance and Conflict Tips

  • Use only one consent plugin
  • If you use a caching or optimization plugin, exclude the consent script from delay, defer or combine features if the banner misbehaves, and clear the cache after changes
  • Remember that banners add weight, so recheck speed after installing. Our WordPress maintenance service includes regular speed and plugin checks, so a new plugin doesn’t quietly slow your pages
  • Test updates on a staging site first, as our guide on WordPress staging sites explains

Connecting Google Analytics and Tracking Tags to the Consent Setting

This is where many sites go wrong. Either analytics runs before consent, which risks non-compliance, or it never runs at all, which leaves you with no data. The goal is for tags to respect each visitor’s choice.

The Basic Idea

Tracking tags should be off by default for visitors who need consent, and turn on only after consent is given for that category. When a visitor changes their mind, the tags should stop.

Three Common Ways to Set It Up

1. Let the consent plugin load the tag. Many plugins can insert Google Analytics, Facebook Pixel and similar tags themselves, but only after consent. This is the simplest method for small sites.

2. Use Google Tag Manager with consent settings. You add your tags in Google Tag Manager, and connect them to your consent plugin, so tags fire only when the right consent signal is present. This offers more control, but it needs careful setup and testing.

3. Use a Google plugin or a manual script with consent mode. If you add Google tags through a plugin such as Site Kit by Google or by hand, make sure they follow your consent settings. Check the plugin’s current documentation for consent options, because support differs between versions.

What Is Google Consent Mode?

Google Consent Mode lets your website tell Google’s tags what the visitor has agreed to. It uses signals for analytics storage, ad storage, ad user data and ad personalization, with “denied” as the default until consent is given. Google’s consent mode documentation explains the signals, and its EU user consent policy sets out requirements for using Google advertising and measurement products with visitors in the European Economic Area and the UK. Check the current wording, because these requirements have changed in the past.

A few points are worth knowing:

  • Consent Mode can run in different modes. Some setups hold Google tags back completely until consent, while others let tags load and send limited, cookieless signals beforehand. Whether the second approach suits you is a question for your adviser
  • When consent is denied, Google may use modeling to estimate some missing data in certain reports, subject to conditions. It doesn’t replace real measurement
  • Google works with certified consent management platforms, so check whether your plugin is one if you run Google Ads

Avoid Common Mistakes

  • Double-loading Google Analytics. If your theme, a plugin and Tag Manager all add the same tag, you’ll record duplicate data, and some copies may ignore consent. Remove old code
  • Hard-coded scripts in the theme. Tags pasted directly into a header or footer bypass the banner
  • Forgetting other tags. Meta Pixel, LinkedIn Insight, heatmap tools and chat widgets all need to follow consent too
  • Leaving embeds unmanaged. YouTube and map embeds should show a placeholder until the visitor agrees
  • Skipping the UK exception check. Don’t remove consent for analytics just because a blog post said you can. Confirm that your setup meets every condition first

Expect Your Numbers to Change

Once consent is working properly, your analytics will likely record fewer visits from the UK and EU, because some visitors will decline. This is normal. To keep your reports useful:

  • Add a note in your analytics on the date you launch the banner
  • Compare trends carefully, since the before and after periods aren’t like for like
  • Look at other sources too, such as server data, sales and enquiries
  • Don’t pressure visitors with tricks to raise the acceptance rate

If you run a store, reliable measurement matters, so our WooCommerce development team can help connect consent, analytics and checkout tracking without breaking either one.

Testing the Banner in a Private Browser Window

Testing shows whether your setup works in practice. Use a private or incognito window, because it starts with no saved cookies or consent choice, much like a first-time visitor.

Step-by-Step Test

  1. Open a private window, and open your browser’s developer tools (usually F12). Go to the Application or Storage tab to see cookies, and the Network tab to see requests
  2. Load your site, and don’t click the banner yet
  3. Look at the cookies. Only essential cookies should appear. Check for analytics, advertising or social cookies, and any unexpected ones
  4. Check the network requests. Look for calls to analytics, ad and social domains. Tags that should wait for consent shouldn’t fire yet, apart from any consent-mode signals you’ve deliberately configured
  5. Click “Reject.” Reload, and confirm that no new non-essential cookies or requests appear, and that your choice is remembered
  6. Clear the cookies, and start again. This time, click “Accept,” and confirm that analytics and other allowed tags now load. Use real-time reports in your analytics tool, or Google’s Tag Assistant, to confirm that tags fire
  7. Test “Manage preferences.” Turn single categories on and off, and check that each one behaves correctly
  8. Test withdrawal. Find the link or button that lets you change your choice, and confirm that it works and that tags stop after you withdraw
  9. Browse several pages, including the homepage, a blog post, any page with embedded video or maps, and, for stores, the cart and checkout
  10. Test on mobile, and on at least two browsers
  11. Test with caching on, because cached pages can show stale banners or ignore choices
  12. Test with the keyboard, to check that the banner is accessible

What the Results Should Look Like

TestExpected Result
First visit, before clickingBanner appears. Only essential cookies. No analytics or ad requests
After “Reject”No new non-essential cookies. Choice remembered on reload
After “Accept”Allowed tags and cookies load. Analytics records the visit
Managing categoriesOnly chosen categories become active
Withdrawing consentTags stop, and the banner can be reopened easily
Embedded video or mapPlaceholder until consent, then content loads
Checkout (stores)Essential cookies work. Marketing tags respect consent
Mobile and keyboardBanner is usable and readable

Keep Testing

Repeat the test after every plugin update, theme change, redesign or new tracking tag. Consent setups break quietly, and nobody notices until someone checks.

A Simple Setup Plan

  1. Audit what your site sets. Run a cookie scan, and list the tools you use
  2. Decide your approach with your adviser. Settle which cookies need consent, how you’ll treat analytics and whether to apply one standard everywhere
  3. Write or update your privacy and cookie policies
  4. Choose and install one consent plugin, and configure categories
  5. Connect your tags, with Google Analytics, Tag Manager and other tools respecting consent
  6. Replace or remove unneeded trackers, and self-host fonts where practical
  7. Test in a private window, as described above
  8. Check speed and accessibility
  9. Document what you did, and keep consent logs
  10. Review regularly, at least twice a year and after any major change

Common Mistakes to Avoid

  1. Installing a banner and assuming you’re done, without testing whether scripts are blocked
  2. Loading analytics and ad tags before consent
  3. Making “Accept” prominent and “Reject” hard to find
  4. Pre-ticked boxes and misleading wording
  5. Ignoring embeds, fonts and chat widgets
  6. Leaving hard-coded tracking scripts in the theme or page builder
  7. Running several consent or cookie plugins
  8. Breaking analytics with duplicate tags or optimization plugin conflicts
  9. Forgetting to update the cookie policy when tools change
  10. Treating the legal side as a one-off. Rules and tools keep moving

When to Get Help

A small brochure site can often handle this with a good plugin and some careful testing. Bring in help when:

  • You run a store, a membership site or a site with many integrations
  • Several tracking tools, Tag Manager or Google Ads need consent mode
  • Your theme or page builder adds scripts that escape blocking
  • You serve several languages or regions with different rules
  • The banner conflicts with caching, performance or checkout
  • You need a legal view on analytics, marketing or data transfers, which is a job for a qualified adviser

Our WordPress maintenance service covers tested updates, backups and monitoring, so consent settings don’t silently break. For custom integrations, cleaner script handling and performance-minded setups, you can also explore our WordPress development service.

Cookie Consent Checklist

  • Cookies and trackers on the site identified with a scan
  • Strictly necessary cookies separated from the rest
  • Advice taken on analytics and any UK exception
  • One consent plugin installed and configured
  • Non-essential scripts blocked until consent
  • Accept and Reject buttons equally clear on the first layer
  • Preferences by category, with nothing pre-ticked
  • Easy way to change or withdraw consent
  • Consent logs and a current cookie policy
  • Google Analytics, Tag Manager and other tags connected to consent
  • Duplicate and hard-coded tags removed
  • Embeds and fonts handled
  • Tested in a private window on desktop and mobile
  • Speed and accessibility checked
  • Review scheduled after major changes

Frequently Asked Questions

Do I need a cookie banner on my WordPress site?

If your site uses non-essential cookies or similar technologies and has visitors in the UK or EU, you will usually need consent first, unless a specific exception applies. Whether you need one depends on what your site actually does, so scan it and ask a qualified adviser.

Does GDPR apply to my site if my business isn’t in Europe?

It can. The rules may apply when you offer goods or services to people in the UK or EU, or monitor their behavior, wherever your business is based. Get advice about your situation.

Do I need consent for Google Analytics?

Often yes, particularly for EU visitors. The UK added a narrow analytics exception from 5 February 2026, but it has strict conditions, and many common setups may not meet them. Check with your adviser before dropping consent for analytics.

Which WordPress cookie consent plugin is best?

There is no single best option. Compare features such as script blocking, equal Accept and Reject buttons, consent logs, Google Consent Mode support, performance and price. Then test the plugin you choose.

How can I tell whether my plugin blocks scripts before consent?

Open your site in a private window, open developer tools and look at the cookies and network requests before clicking anything. If analytics, ad or social requests appear, scripts aren’t being blocked.

Why did my analytics numbers drop after adding a banner?

Because some UK and EU visitors now decline tracking. That’s expected. Annotate the change date, compare trends carefully, and use other data sources, such as sales and enquiries, to see the whole picture.

Do I need a cookie banner for WooCommerce?

WooCommerce uses essential cookies for the cart and checkout, which usually don’t need consent. However, analytics, marketing pixels and other tools on your store typically do. Test the whole purchase path.

Can I just use a banner that says “We use cookies” with an OK button?

That’s generally not enough. Valid consent normally requires a real choice, clear information and no non-essential cookies before consent. Regulators expect a reject option that’s as easy as accepting.

How often should I review my cookie setup?

Review it at least twice a year, and after any redesign, plugin change or new tracking tool.

Final Thoughts

A good cookie setup is clear, honest and tested. Know what your site sets, block non-essential scripts until consent, give visitors equal choices, connect your analytics properly and test in a private window. Then keep checking, because tools and rules change.

If you’d like help, Artisan Solutions designs, builds and maintains WordPress, WooCommerce and Shopify websites for businesses worldwide. Browse our portfolio, meet the team, or request a free website review, and we’ll follow up within one business day.

Scroll to Top