Google Consent Mode v2
The plugin implements all four required GCM v2 consent types:
analytics_storage — Google Analytics cookiesad_storage — Advertising cookiesad_user_data — User data for advertisingad_personalization — Personalized advertisingWithout proper GCM v2 implementation, your GA4 and Google Ads tracking may be unreliable or non-compliant. Google made this mandatory in March 2024 for EU users.
How Consent Works
1.Visitor arrives → Consent popup appears2.User chooses → Three options: Accept All, Analytics Only, or Decline All3.Consent stored → Choice saved in localStorage (no server tracking)4.GCM signals updated → Google Analytics and Ads respect the choice immediately5.No repeat popup → Cookie remembers the popup was shownThree Consent Options
Accept All — Grants analytics_storage, ad_storage, ad_user_data, and ad_personalizationAnalytics Only — Grants analytics_storage only; ads remain deniedDecline All — All four consent types remain deniedShortcodes
Consent Status Display
[mdcc_consent_status]
Displays real-time consent chips: "Analytics: On/Off" and "Ads: On/Off". Updates instantly when consent changes. Place anywhere — sidebar widgets, footer, or inline content.
Consent Management Interface
[mdcc_manage_consent title="Your Privacy Choices"]
Full consent management UI with:
Current consent status displayAccept All / Analytics Only / Decline All buttonsReal-time status updates when consent changesIdeal for your privacy policy page or a dedicated consent management page.
Popup Customization
Style Presets
Minimal — Clean, subtle designModern — Rounded corners, polished lookBold — Strong, prominent appearancePosition Options
Top bannerBottom bannerCenter modalAnimation Options
Slide inFade inNo animationColor Customization
Primary color picker affects buttons, accents, and status indicators.
Accessibility
The popup meets WCAG 2.1 AA standards:
Full keyboard navigation (Tab through options, Enter to select)Focus trap when modal is openESC key closes the popupARIA labels and role attributes for screen readersHigh contrast mode supportReduced motion support (respects prefers-reduced-motion)Performance
Under 10KB total (CSS + JS combined, gzipped)Zero database queries during page loadNo external dependencies — vanilla JavaScript, no jQuerylocalStorage-based consent storageCompatible with all major caching plugins (WP Rocket, W3 Total Cache, etc.)Translation Support
Fully translation-ready with all 61 strings extractable via:
translate.wordpress.orgLoco Translate pluginPoeditPOT file included at languages/maxtdesign-cookie-consent.pot.