WordPressOfficial Plugin

Cookie Consent for WordPress

Free WordPress plugin for GDPR, CCPA, and Google Consent Mode v2 compliance. Install in 2 minutes. No coding, no theme editing, no developer needed.

How to install

1

Download & install the plugin

Download the plugin ZIP from your LegalBanner dashboard and upload it in your WordPress admin under Plugins > Add New > Upload Plugin.

2

Connect to LegalBanner

Go to Settings > Legal Banner in WordPress. Generate a connect code in your LegalBanner dashboard and paste it into the plugin.

3

Enable and go live

Toggle "Enable banner injection" in the plugin. Your consent banner appears immediately. Configure the banner design in your LegalBanner dashboard.

Features

One-click connect

Generate a connect code in your LegalBanner dashboard, paste it into the plugin, and your WordPress site is linked instantly. No API keys, no manual configuration.

Automatic SDK injection

The plugin injects the LegalBanner SDK into every page of your WordPress site automatically. No need to edit theme files or use header/footer plugins.

Google Consent Mode v2

Native support for Google Consent Mode v2. Consent signals are emitted automatically to Google Analytics 4, Google Ads, and Google Tag Manager.

Cookie scanner

Automatically detects all cookies and third-party trackers on your WordPress site. Maps them to consent categories. Notifies you when new trackers appear.

GDPR & CCPA compliant

Blocks all non-essential trackers until consent. Supports opt-in (GDPR) and opt-out (CCPA) models. Covers all 20 US state privacy laws with automatic geo-detection.

No performance impact

SDK loads asynchronously, under 8KB gzipped. Shadow DOM isolation prevents style conflicts. Zero impact on Core Web Vitals.

Works with any theme

Compatible with all WordPress themes — Astra, GeneratePress, Divi, Elementor, Kadence, and more. No theme file editing required.

WooCommerce ready

Full compatibility with WooCommerce. Consent is collected before any tracking scripts fire on product, cart, and checkout pages.

Requirements

  • WordPress 5.8 or higher
  • PHP 7.4 or higher
  • A LegalBanner account (free plan works)
  • HTTPS enabled on your WordPress site

Frequently Asked Questions

Is the WordPress plugin free?

Yes. The plugin itself is completely free. It connects to your LegalBanner account, which has a free plan (1 site, all banner features).

Does it work with WooCommerce?

Yes. The plugin is fully compatible with WooCommerce. Consent is collected on all pages including product, cart, and checkout pages.

Does it support Google Consent Mode v2?

Yes. Google Consent Mode v2 signals are emitted automatically. No additional configuration needed in WordPress or Google Tag Manager.

Will it slow down my site?

No. The SDK is under 8KB gzipped, loads asynchronously, and has zero impact on Core Web Vitals (LCP, FID, CLS).

Can I use it on multisite (WPMU)?

Yes. Install the plugin on each site in your multisite network. Each site connects to a separate LegalBanner site for independent configuration.

What happens if I deactivate the plugin?

The consent banner stops appearing. Your configuration and consent logs remain in your LegalBanner dashboard. Reactivate anytime.

Add cookie consent to WordPress in 2 minutes

GDPR, CCPA, Google Consent Mode v2, and all 20 US state privacy laws. Free plan available.