MaxtDesign

Features

Google Consent Mode v2

The plugin implements all four required GCM v2 consent types:

  • analytics_storage — Google Analytics cookies
  • ad_storage — Advertising cookies
  • ad_user_data — User data for advertising
  • ad_personalization — Personalized advertising
  • Without 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 appears
  • 2.User chooses → Three options: Accept All, Analytics Only, or Decline All
  • 3.Consent stored → Choice saved in localStorage (no server tracking)
  • 4.GCM signals updated → Google Analytics and Ads respect the choice immediately
  • 5.No repeat popup → Cookie remembers the popup was shown
  • Three Consent Options

  • Accept All — Grants analytics_storage, ad_storage, ad_user_data, and ad_personalization
  • Analytics Only — Grants analytics_storage only; ads remain denied
  • Decline All — All four consent types remain denied
  • Shortcodes

    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 display
  • Accept All / Analytics Only / Decline All buttons
  • Real-time status updates when consent changes
  • Ideal for your privacy policy page or a dedicated consent management page.

    Popup Customization

    Style Presets

  • Minimal — Clean, subtle design
  • Modern — Rounded corners, polished look
  • Bold — Strong, prominent appearance
  • Position Options

  • Top banner
  • Bottom banner
  • Center modal
  • Animation Options

  • Slide in
  • Fade in
  • No animation
  • Color 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 open
  • ESC key closes the popup
  • ARIA labels and role attributes for screen readers
  • High contrast mode support
  • Reduced motion support (respects prefers-reduced-motion)
  • Performance

  • Under 10KB total (CSS + JS combined, gzipped)
  • Zero database queries during page load
  • No external dependencies — vanilla JavaScript, no jQuery
  • localStorage-based consent storage
  • Compatible with all major caching plugins (WP Rocket, W3 Total Cache, etc.)
  • Translation Support

    Fully translation-ready with all 61 strings extractable via:

  • translate.wordpress.org
  • Loco Translate plugin
  • Poedit
  • POT file included at languages/maxtdesign-cookie-consent.pot.