MaxtDesign
PluginsCookie Consent

Cookie Consent

Google Consent Mode v2. Actually enforced.

Free cookie consent that actually controls Google Analytics & Ads tracking — not just a dismissible banner. Proper Google Consent Mode v2 in under 10KB. GDPR and CCPA compliant.

20+ installs
WP 5.8+
PHP 7.4+
Cookie Consent — Google Consent Mode v2. Actually enforced.
Open Source

Features

What Cookie Consent Does

Built for performance, designed for simplicity.

Google Consent Mode v2 — all four consent types (analytics_storage, ad_storage, ad_user_data, ad_personalization)
Actually blocks GA4 and Google Ads tracking until user grants consent
Default consent state injected in <head> before tracking scripts load
Three style presets: Minimal, Modern, and Bold
Three position options: Top banner, Bottom banner, Center modal
Customizable colors, text, and animation (Slide, Fade, or None)
Optional Elementor popup integration — use your own popup design
Two shortcodes: [mdcc_consent_status] and [mdcc_manage_consent]
Under 10KB total (CSS + JS combined) — zero database queries on page load
localStorage-based consent storage — no server-side user tracking
WCAG 2.1 AA accessible with keyboard navigation and screen reader support
Compatible with GTM, Site Kit, WP Rocket, W3 Total Cache, and all major caching plugins

Overview

Why Cookie Consent?

Most WordPress consent plugins either don't actually control tracking (they just show a form) or they're so bloated they slow down your site significantly. MaxtDesign Cookie Consent is different: proper Google Consent Mode v2 implementation in under 10KB.

The plugin implements all four required GCM v2 consent types — analytics_storage, ad_storage, ad_user_data, and ad_personalization. When a visitor declines cookies, GA4 and Google Ads tracking actually stops. No delayed script injection, no race conditions, no compliance gaps. The default consent state is injected in the <head> before any tracking scripts load.

Choose from three style presets (Minimal, Modern, or Bold), three positions (Top banner, Bottom banner, Center modal), and customize colors to match your brand. Use the built-in popup or integrate your own Elementor popup. Two shortcodes — [mdcc_consent_status] and [mdcc_manage_consent] — let you display consent state and management interfaces anywhere on your site.

Zero database queries during page load. Zero external dependencies. Pure localStorage-based consent management. Fully translation-ready with WCAG 2.1 AA accessibility. This plugin is 100% free with no premium tier — comparable solutions like CookieYes start at $49/month.

Requirements

  • WordPress 5.8 or higher
  • PHP 7.4 or higher

FAQ

Common Questions

Can't find what you're looking for? Check the documentation or ask on the support forum.

Changelog

What's New

v1.7.32026-02-28
  • Added complete translation template (.pot) with all 61 translatable strings
  • Enables community translation via translate.wordpress.org
  • Users can now translate with Loco Translate or Poedit without extra setup
v1.7.22026-02-11
  • Fixed popup race condition where JavaScript initialized before popup HTML was rendered
  • Changed initialization from DOMContentLoaded to window load event
  • Resolves inconsistent popup display, particularly in Chrome
v1.7.12026-02-09
  • Critical fix: Google Consent Mode v2 timing — GTM/GA4 now properly blocked until consent granted
  • Added gtag('consent', 'default') injection in <head> before tracking scripts
  • New admin setting to enable/disable default consent injection (Advanced Settings)
  • Added wait_for_update parameter (500ms) for consent-runtime.js load time
v1.7.02025-02-04
  • Minification build system (PostCSS + Terser) — WordPress loads .min assets by default
  • Phase 4 testing suite: performance validation, functional tests, manual testing checklist
  • Fixed popup re-appearing on initial load when Re-prompt on Decline is enabled
  • Optimized consent-runtime.js — 40% size reduction with full functional parity
v1.6.02025-10-30
  • Initial public release on WordPress.org
  • Complete standalone consent popup with three style presets
  • Google Consent Mode v2 implementation (all four consent types)
  • localStorage-based consent, two shortcodes, Elementor integration
  • WCAG 2.1 AA accessible, mobile responsive, translation-ready

Documentation & Support

Step-by-step guides, configuration help, and community support through WordPress.org.

Open Source on GitHub

View the source, report bugs, or contribute. This plugin is free and open source under the GPL.

Need Something Custom?

We build custom WordPress plugins tailored to your exact requirements.