🍪Consentio

How to comply with GDPR cookies on WordPress

WordPress powers 43% of the web, but most free cookie plugins show the notice without blocking scripts: technically they don't comply. Here's how to do it right.

Why most WordPress plugins don't comply

GDPR requires blocking non-essential cookies BEFORE consent. Many popular plugins just show a notice and load Google Analytics or pixels anyway, or block too late. That's invalid, penalizable consent.

Where cookies come from in your WordPress

How to comply step by step

  1. Inventory the plugins and scripts that load cookies.
  2. Install a banner with real prior blocking (not just a notice).
  3. Load the snippet in the <head> with high priority, before Analytics.
  4. Configure the categories and Google Consent Mode v2.
  5. Publish the cookie policy and store the consent log.

The fast way: the Consentio plugin

With the Consentio plugin for WordPress you install the banner in minutes: real script blocking, Consent Mode v2 and consent logging, without touching code. You'll find the detailed install guide on our WordPress page.

See the WordPress install guide

Common WordPress mistakes

This guide is informational and does not constitute legal advice.

Frequently asked questions

Do free WordPress cookie plugins comply with GDPR?

Most don't by default: they show the notice but don't block scripts before consent. To comply you need real prior blocking and a consent record.

Where do I paste the code in WordPress?

In the <head>, with high priority so it loads before Google Analytics. You can use a header plugin (such as WPCode), your child theme's header.php or the Consentio plugin.

Do I need Consent Mode v2 on WordPress?

Yes, if you use Google Analytics or Ads with EU users. The banner must keep the signals on «denied» by default and switch them to «granted» when the user accepts.

Does it work with Elementor and page builders?

Yes. The snippet loads site-wide in the <head>, so it blocks scripts regardless of the builder or theme you use.

More guides

Get your site compliant in 5 minutes

Set up your banner, copy the snippet and paste it. No card.