MaxtDesign

Configuration

Settings Overview

Access all settings via Settings → Cookie Consent in your WordPress admin.

Popup Style

Three built-in style presets:

  • Minimal — Clean and subtle, blends with any design
  • Modern — Rounded corners, polished appearance
  • Bold — Strong and prominent, hard to miss
  • Each preset is fully customizable via the color picker.

    Popup Position

  • Top Banner — Fixed banner at the top of the viewport
  • Bottom Banner — Fixed banner at the bottom (most common)
  • Center Modal — Centered overlay with backdrop
  • Animation

  • Slide In — Slides into view from the edge
  • Fade In — Fades in with opacity transition
  • None — Appears instantly (best for performance)
  • Color Customization

    Use the color picker to set your primary color. This affects:

  • Accept All button background
  • Analytics Only button border
  • Status chip active states
  • Manage Consent interface accents
  • Popup Content

    Customize the title and message text displayed in the popup. Default text is GDPR-friendly, but you can adjust it for your audience.

    Cookie Duration

    Configure how long the "popup shown" cookie lasts (1–365 days). Default: 7 days. This prevents the popup from showing repeatedly to the same visitor.

    Re-prompt on Decline

    When enabled, users who decline all tracking will see the popup again once per browsing session. Useful for sites that depend on analytics consent.

    Advanced Settings

    Inject Default Consent State

    Enabled by default. This injects gtag('consent', 'default', {...}) in the before any tracking scripts load. All four consent types are set to 'denied' by default.

    Do not disable this unless you have a custom consent implementation that conflicts. Disabling it may cause tracking to fire before the user grants consent.

    How Default Injection Works

  • 1.Plugin hooks into wp_head at priority 1 (before everything)
  • 2.Injects the gtag('consent', 'default') script inline
  • 3.Sets wait_for_update: 500 to give consent-runtime.js time to load
  • 4.GTM/GA4 loads after this and respects the denied state
  • 5.When user consents, gtag('consent', 'update') fires immediately
  • Elementor Integration

    If you prefer to use your own Elementor popup:

  • 1.Create a popup in Templates → Popups
  • 2.Design your consent UI with Accept/Analytics/Decline buttons
  • 3.Note the Popup ID (visible in the URL: post.php?post=123)
  • 4.Enter the ID in Settings → Cookie Consent → Elementor Integration
  • 5.Save settings
  • Your buttons must call these JavaScript functions:

  • Accept All: mdccConsent.acceptAll()
  • Analytics Only: mdccConsent.acceptAnalyticsOnly()
  • Decline All: mdccConsent.declineAll()
  • The plugin handles GCM v2 updates automatically — your popup just needs to trigger the right function.