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

