Cookie Consent Module displays a cookie consent interface on the storefront and stores the visitor’s choice in browser storage.
The extension allows visitors to:
- accept all cookies
- deny optional cookies
- allow analytics cookies only
- allow marketing cookies only
- customise preferences
The selected preferences are stored in the browser and automatically applied on future visits.
Important Behaviour
This extension does not add any tracking scripts to the website.
It only updates consent signals for tracking scripts that already exist on the page.
Supported integrations include:
- Google Analytics (gtag)
- Google Tag Manager consent mode signals
- Meta Pixel (fbq)
- Microsoft Clarity (clarity)
If a tracking script is not installed, the extension will safely skip it without producing JavaScript errors. if some tracking scripts are not installed, ensuring there are no JavaScript errors.
Why this extension is useful
Privacy regulations require websites to obtain user consent before storing or accessing cookies used for analytics and advertising.
This extension helps:
- respect visitor privacy
- improve transparency
- control tracking scripts
- support Google Consent Mode v2
- maintain accurate marketing data
Features
Consent Mode v2 Ready
Supports Google Consent Mode v2 signals required for Google Ads and GA4 tracking.
Supports Popular Tracking Tools
Compatible with:
- Google Analytics 4
- Google Tag Manager
- Meta Pixel
- Microsoft Clarity
Consent Popup and Cookie Bar
Multiple layout styles are available:
Popup styles:
- Popup
- Popup Modern Card
Bar styles:
- Bar Light
- Bar Dark
- Floating Panel
- Compact Right Floating
Granular Cookie Control
Visitors can choose between:
- necessary cookies (always enabled)
- analytics cookies
- marketing cookies
Automatic Preference Storage
Visitor preferences are stored in localStorage and automatically reused on future visits.
Consent Replay for Late Loading Scripts
The extension attempts to re-apply consent multiple times to support scripts that load later via GTM or other async loaders.
Safe Integration
The extension checks whether tracking libraries exist before sending consent signals.
No JavaScript errors occur if:
- Google Analytics is not installed
- GTM is not installed
- Meta Pixel is not installed
- Clarity is not installed