Fix Guide

How to Set Up Cookie Consent in WordPress (GDPR)

February 8, 2026

Under the GDPR and ePrivacy Directive, you must obtain user consent before setting non-essential cookies (analytics, marketing, tracking). Here is how to implement a compliant cookie consent solution.

Option 1: Complianz (Recommended)

  1. Install Complianz – GDPR/CCPA Cookie Consent.
  2. Run the cookie scan wizard — it automatically detects cookies on your site.
  3. Configure your consent banner design and text.
  4. Set up cookie categories (Functional, Analytics, Marketing).
  5. Complianz automatically blocks scripts until consent is given.

Option 2: CookieYes

  1. Install CookieYes | GDPR Cookie Consent.
  2. Scan your site for cookies.
  3. Customize the banner appearance.
  4. Configure which scripts require consent.

Option 3: Real Cookie Banner

A German-developed plugin popular in the DACH region, specifically designed for GDPR and German/Austrian privacy law requirements.

Key Requirements for Compliance

  • Prior consent — Non-essential cookies must not be set before consent.
  • Granular choice — Users must be able to accept/reject by category.
  • Easy rejection — Rejecting must be as easy as accepting (no dark patterns).
  • Revocable — Users must be able to change their consent at any time.
  • Documentation — You must log and store consent records.

Verify with InspectWP

InspectWP lists all cookies your site sets. Use this to verify your cookie consent solution is working — no tracking cookies should appear before consent.

Check your WordPress site now

InspectWP analyzes your WordPress site for security issues, SEO problems, GDPR compliance, and performance — for free.

Analyze your site free