📊
Marketing

Marketing Pixels

Admin Settings

GDPR-compliant tracking pixels with 13 built-in providers

Overview

Marketing and analytics pixel management with cookie consent integration. Supports 13 major providers (Facebook Pixel, GA4, GTM, TikTok, LinkedIn, Pinterest, Twitter/X, Snapchat, Klaviyo, Criteo, Bing UET, Reddit) plus custom scripts. Respects GDPR consent categories.

Design Considerations

UX patterns and visual design notes for this feature:

  • Pixels should load after consent is given, not before
  • Production-only by default to avoid tracking dev/staging
  • Clear admin UI for enable/disable per pixel
  • Consent categories: none (essential), analytics, marketing
  • Provide testing tools in admin (check pixel firing)

Key Benefits

What makes this feature stand out:

  • 13 built-in providers ready to use
  • Custom script support for any pixel
  • GDPR-compliant with cookie consent
  • Production-only mode (configurable)
  • Per-pixel consent categories
  • Easy enable/disable from admin
Technical Note

PixelWidget renders in layout (head and body positions). Pixels load conditionally based on CookieConsentHelper consent. Each pixel has a provider type (built-in or custom) and consent_category (none/analytics/marketing). Custom pixels support head_script and body_script fields.

Helpers
PixelHelperCookieConsentHelper
Models
Pixel
Database Tables
pixel

Configuration

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

Config path: params['pixels']

params['features']['pixels'] => trueparams['pixels']['enabled'] => trueparams['pixels']['respectCookieConsent'] => trueparams['pixels']['productionOnly'] => true
Database Settings (system_setting table)
KeyTypeDescriptionRelation
pixels_production_onlybooleanOnly load pixels in production
Note: Pixel IDs/credentials stored in Pixel model (database). Widget automatically renders in layout. Configure per-pixel settings in admin panel.