LumaCookies, GDPR cookie consent for PrestaShop

In short. LumaCookies adds a consent banner to your PrestaShop store with three equally weighted choices. It blocks analytics and advertising scripts until the visitor agrees, sends the right signals to Google through Consent Mode v2, and stores every choice in a timestamped log you can export.

A cookie banner takes a second to spot, but what it controls behind the scenes is far less visible. A Google Analytics tag that fires before the click, a pixel added by another module, a YouTube video that drops cookies as soon as the page loads, and the banner is just decoration. LumaCookies handles the whole chain, from the first page view to the proof of consent. Here is what you install, feature by feature.

3equally weighted buttons
4cookie purposes
4placements for the permanent link
5languages included


What LumaCookies brings you

In France, article 82 of the Data Protection Act requires the visitor's agreement before any non-essential cookie is set. The GDPR adds two requirements, being able to prove that consent and letting visitors withdraw it as easily as they gave it. LumaCookies answers each of these with a dedicated tool.

Regulatory or business need LumaCookies answer
Rejecting as easy as accepting Accept all, Decline all and Customise, side by side on the first screen
No non-essential cookie before consent Declared scripts held back, auto-blocking of known trackers, third-party iframes neutralized
Keep Google Analytics 4 and Google Ads usable Google Consent Mode v2 sent before any Google tag, then updated on click
Prove consent Timestamped log in the database, CSV export, automatic purge
Let visitors change their mind Permanent "Manage my cookies" link and public "Cookie details" page
The consent journey with LumaCookies, before the choice, the choice, after the choice

The consent journey with LumaCookies

⚖️ Read this first. LumaCookies provides the technical means for compliance. It is not legal advice. The content of the cookie directory and the texts displayed remain your responsibility. If in doubt, contact your data protection authority or a legal professional.


A clear and balanced banner

The banner appears on the first visit and disappears as soon as a valid choice exists. Its three buttons carry the same visual weight, so "Accept" is never highlighted at the expense of rejecting.

What you can configure

  • 📐Position, bottom bar, top bar or centered window
  • 🎨Three colors, background, text and button accent, to match your branding
  • ✍️Banner title and text, written language by language
  • ⏳Consent validity, 6 months by default
  • 🔁Policy version, which you increase to ask every visitor again

Real-world example. You add a new remarketing tool and list it in your directory. Turn on "Republish the policy now" and save. The version moves from 1 to 2, for instance, choices recorded under version 1 are no longer valid, and each visitor sees the banner again on their next page.

Page-cache friendly. The banner HTML is always present in the page, hidden. The module's JavaScript decides whether to show it by reading the consent cookie, which avoids conflicts with server-side caching.


The preference center

The Customise button opens a panel where visitors choose purpose by purpose. The panel is fully keyboard accessible.

Purpose Behavior
🔒 Strictly necessary Always on and locked, like the PrestaShop session cookie
⚙️ Functional Visitor's choice, Google Maps for example
📊 Analytics Visitor's choice, Google Analytics, Matomo, Clarity
📣 Marketing Visitor's choice, ad pixels, videos and social networks

These categories and their cookies are managed under LumaCookies → Consent management → Categories and Cookie directory. The directory ships pre-filled, including the PrestaShop-* session cookie and the lumacookies_consent cookie that stores the choice. For each cookie you enter its name, provider, purpose and duration, all translatable per language.


Blocking scripts and trackers

This is the core of the module. A banner that asks for consent without blocking anything protects neither your visitors nor your store. LumaCookies works on three levels.

1. Your scripts, declared by purpose

The configuration offers three fields, Functional, Analytics and Marketing. Paste your tracking codes exactly as your tools provide them. The module wraps them in a <template> tag, whose content stays inert in the browser. Nothing runs and nothing loads until the matching purpose is accepted.

2. Auto-blocking of known trackers

Other modules on your store sometimes inject their own trackers. Auto-blocking catches them as their script tries to load, then releases them if the visitor accepts the relevant purpose. Since version 2.3.0, this protection is always on and no longer depends on any setting.

  • 📊Linked to Analytics, Google Analytics and gtag.js, Matomo and Piwik, Microsoft Clarity
  • 📣Linked to Marketing, Facebook Pixel, Google Tag Manager, Google Ads, DoubleClick, X, LinkedIn, Bing, Hotjar, TikTok

3. Third-party iframes

An embedded video or map can set cookies the moment it appears. LumaCookies removes the source of these iframes and shows a placeholder instead, with two buttons, one to allow the purpose and one to open the preferences.

  • Marketing, YouTube, Vimeo, Dailymotion, Facebook, Instagram, X, TikTok, Spotify, SoundCloud
  • Functional, Google Maps and OpenStreetMap

⚠️ A limit worth knowing. A script hard-coded in your theme files, outside any module, does not go through automatic interception. Move it into the right purpose field in the module configuration. It will then be blocked and released correctly.


Since March 2024, Google requires Consent Mode v2 to keep using Google Analytics 4 and Google Ads with visitors in the European Economic Area. LumaCookies builds it in and turns it on by default.

  1. Default signal. Before any Google tag, the module sets every storage type to denied, except security_storage.
  2. Returning visitor. If a valid choice already sits in their cookie, the module applies it immediately, before the tags load.
  3. Click on the banner. The module sends an update that reflects exactly the accepted purposes.
Accepted purpose Google signals granted
Analytics analytics_storage
Marketing ad_storage, ad_user_data, ad_personalization
Functional functionality_storage, personalization_storage

Under the hood. So that the default signal goes out before your Google tags, the module automatically takes first position on the displayHeader hook during installation. Keep it there if you reorder your hooks.


During an audit, you must be able to show that a visitor consented, and to what. Every choice is saved in the database and available under LumaCookies → Consent management → Consent registry.

What each entry contains

  • 📅Date and time of the choice
  • 👆Action taken, accept, reject or customize
  • 🗂️Detail by purpose, Functional, Analytics and Marketing
  • 🔢Policy version in force at the time
  • 🔐IP address fingerprint, never the address itself
  • 🖥️Browser used, the store concerned and, when the visitor is logged in, their customer account

No IP stored in plain text. Since version 2.3.1, the IP address is reduced to an HMAC-SHA-256 fingerprint computed with your store's own secret key. This standard construction cannot be reversed without the key and is easy to document in your record of processing activities.

  • 📤 CSV export of the log in one click, to archive or share it
  • 🧹 Automatic purge of entries older than the period you set, 13 months by default, run when the log is opened

The Statistics screen shows how your visitors respond to the banner. These figures also help you read your audience data, since visitors who reject do not appear in your analytics tools.

  • Accept, reject and customize rates
  • Consent rate by purpose
  • Trend over the period
  • Quick ranges of 7, 30 or 90 days, or a custom date range

In practice. You rewrite the banner text to better explain why audience measurement matters. Compare the 30 days before and the 30 days after to measure the real effect of the new wording.


An always up-to-date public page

The module creates a "Cookie details" page that lists your cookies by purpose, with their provider, role and duration. It is fed directly by your back-office directory, with no double entry. Visitors see their current choice there and can change it. You can link to it from your legal notice or privacy policy.

Permanent access to the choice

The "Manage my cookies" link reopens the preference center at any time. You decide where it goes.

Placement Result
In the footer, recommended A "Cookies" column built into the theme, collapsible as an accordion on mobile
Below the footer Buttons placed after the footer
Floating button A compact button that stays visible on screen
Disabled You place the link yourself wherever you like

Good to know. The footer column follows the style of the native columns on the Classic and Hummingbird themes. It lines up with "Information" or "Products" without any CSS work on your side.


Installation and getting started

Install the module

  1. Open Modules → Module Manager → Upload a module.
  2. Select the lumacookies.zip archive and upload it.
  3. The LumaCookies → Consent management menu appears, with Categories, Cookie directory, Consent registry and Statistics.
  4. Click Configure to set up the banner.

Upload not possible? Unzip the archive, send the lumacookies/ folder to your store's modules/ directory over FTP, then install the module from the Module Manager.

Configuration in 8 steps

  1. Enable the module and pick the banner position.
  2. Set the background, text and accent colors.
  3. Write the banner title and text in each language.
  4. Paste your third-party scripts into the right purpose, Google Analytics under Analytics, your ad tags under Marketing.
  5. Complete the cookie directory, which feeds the public page.
  6. Choose where the "Manage my cookies" link goes.
  7. Leave Google Consent Mode v2 on if you use Google Analytics 4 or Google Ads.
  8. Click Save.

Quick fixes

Symptom Fix
The banner does not show A choice is probably already saved. Test in a private window or delete the lumacookies_consent cookie
Back-office menu or buttons look wrong Clear the cache in Advanced Parameters → Performance
Google tags receive the wrong signal Check that the module is in first position on the displayHeader hook
A script loads without consent Declare it under its purpose, especially if it is hard-coded in the theme
Labels still in French after adding a language Check that the language is installed, clear the cache, then translate the directory content

⚠️ Before uninstalling. Uninstalling deletes the module tables, including the consent log and the cookie directory. Export the log to CSV first if you need to keep a record.

Available languages

The interface and the banner ship in five languages. The categories and cookies of the default directory are already translated into the same languages.

🇫🇷 French · 🇬🇧 English · 🇪🇸 Spanish · 🇩🇪 German · 🇮🇹 Italian


Technical specifications

Version 2.4.1
PrestaShop 1.7.8, 8.x and 9.x
PHP 7.2 to 8.5
Tested themes Classic (1.7 and 8) and Hummingbird (9)
Languages included FR, EN, ES, DE, IT
Google Consent Mode v2, on by default
IP hashing HMAC-SHA-256 with the store key
Publisher PrestaLuma
License Commercial, one store per license

Ready to get your cookies in order?

LumaCookies blocks what must be blocked, speaks Google's language and keeps a record of every choice. All that's left is filling in your directory.

Discover LumaCookies

Comments

Be the first to comment on this article.

Leave a comment

Your rating *

Related products

Loading...
Back to top