GDPR Cookie Consent Banner on a PrestaShop site
GDPR Cookie Consent

GDPR Cookie Consent

PrestaShop 8.0+ PrestaShop 9.0+Multi-store v1.0.1Free

GDPR-compliant cookie consent banner allowing visitors to accept, reject or customize their preferences for analytics and marketing scripts.

Description

KES Cookie Consent is a simple yet powerful cookie consent management solution designed for PrestaShop 8 and 9. It displays a customizable banner allowing your visitors to accept all cookies, reject non-essential cookies, or fine-tune their preferences by category (Necessary, Analytics, Marketing).

The module blocks tracking scripts (Google Analytics, Matomo, Facebook Pixel, etc.) until the visitor gives explicit consent, ensuring full compliance with GDPR and the ePrivacy directive. Once consent is granted, scripts are dynamically loaded without page reload.

Key features:

  • Easy installation: simply paste your tracking codes in the back-office configuration
  • Fully customizable appearance: colors, button texts and banner position
  • Lightweight: no external dependencies, minimal impact on loading time
  • Remembers user preferences with configurable expiration
  • Accessible: keyboard navigation and ARIA attributes for screen readers

Features

GDPR & ePrivacy compliant cookie consent banner
Three cookie categories: Necessary, Analytics, Marketing
Accept all / Reject all / Customize options
Easy script integration: paste any tracking code
Fully customizable colors (background, text, buttons)
Configurable banner position (top or bottom)
Adjustable consent expiration duration
Built-in privacy policy link
Dual LocalStorage + Cookie storage for reliability
No page reload after consent
Lightweight and fast (no external library)
Accessibility compliant (ARIA, keyboard navigation)
Multi-language ready
Multi-store compatible

Back-Office Configuration

Installation

  1. 1Upload the module ZIP file via Back Office (Modules > Module Manager > Upload a module) or extract it to the /modules/ folder
  2. 2Install the module from the Module Manager
  3. 3Access the module configuration page
  4. 4Customize the banner appearance (colors, position, button texts)
  5. 5Paste your analytics tracking code (Google Analytics, Matomo, etc.) in the Analytics Scripts field
  6. 6Paste your marketing tracking code (Facebook Pixel, etc.) in the Marketing Scripts field
  7. 7Save the configuration - the banner will immediately appear on your front office

Prerequisites

  • PrestaShop 8.0 or higher (PrestaShop 9 compatible)
  • PHP 7.4 or higher
  • No additional PHP extensions required
  • No external dependencies

JavaScript API

The module exposes a public API window.KESCookieConsent for developers:

KESCookieConsent.getConsent()

Returns the current consent status { necessary: true, analytics: false, marketing: true, timestamp: "..." }

KESCookieConsent.hasCategory('analytics')

Checks if a category is accepted (true/false)

KESCookieConsent.openSettings()

Reopens the preferences panel

Technical Notes

The module triggers a kesConsentUpdated event on the window object each time consent changes, allowing other scripts to react accordingly:

window.addEventListener('kesConsentUpdated', function(e) {
  console.log('New consent:', e.detail);
  if (e.detail.analytics) {
    // Initialize your analytics
  }
});

To add a "Manage cookies" link in your footer:

<a href="#" onclick="KESCookieConsent.openSettings(); return false;">
  Manage cookies
</a>

Changelog

v1.0.12026-02-23
  • FixedFix configuration form submission returning "File not found" on PrestaShop 9 — replaced legacy AdminController::$currentIndex URL with Symfony router (admin_module_configure_action) for proper PS9 compatibility
v1.0.02025-01-06
  • AddedInitial release — GDPR/ePrivacy compliant cookie consent banner, three categories (Necessary, Analytics, Marketing), customizable appearance, multi-language support, third-party script management, custom CSS, compatible with PrestaShop 8.0+ and 9.0+

Download the module for free

Fill out the form below to receive the download link by email. The link will be valid indefinitely.

Click on the image that appears the most