🍪
System

Cookie Consent

Admin Settings

GDPR-compliant cookie consent banner for EU compliance

Overview

Customizable cookie consent banner that allows visitors to accept, decline, or customize their cookie preferences. Supports multiple consent categories (necessary, analytics, marketing, preferences) with persistent storage and easy consent checking in code.

Design Considerations

UX patterns and visual design notes for this feature:

  • Banner should be noticeable but not aggressive
  • Use clear, simple language - avoid legal jargon
  • Customize button empowers privacy-conscious users
  • Dark mode support maintains consistent experience

Key Benefits

What makes this feature stand out:

  • GDPR and CCPA compliant
  • Customizable consent categories
  • Multiple layouts: bar, box, floating
  • Easy consent checking in code
  • Persistent cookie storage
  • Dark mode support
Technical Note

CookieConsentHelper manages consent state. Widget renders banner. Check consent with CookieConsentHelper::hasConsent('analytics') before loading tracking scripts.

Helpers
CookieConsentHelper

Configuration

Config Relationship Legend
DB overrides params.php🔗 DB related setting📋 DB stores value only
params.php Configuration

Config path: params['cookieConsent']

params['features']['cookieConsent'] => trueparams['cookieConsent']['position'] => 'bottom'params['cookieConsent']['layout'] => 'bar'params['cookieConsent']['showCustomizeButton'] => trueparams['cookieConsent']['categories']['analytics'] => [...]
Note: No database storage - consent stored in browser cookie. Configure categories and appearance in params.php.