PrestaShop 1.6 to 9.x module · PHP 5.6 to 8.5
The CookieYes banner, in the right place on your shop
Paste your CookieYes site key: the banner loads at the very top of every page, before any other script, with Google Consent Mode v2 signals. Your cookie declaration gets its own page, and your customers can change their mind in one click.
- 1st
- script on the page: CookieYes runs before all the others
- 0
- theme changes, no table created
- 6
- languages included, from PrestaShop 1.6 to 9.x
01 - How it works
How does it work?
From your CookieYes account to a live banner, in three steps
Your CookieYes account
Create your account, add your shop, let the scan detect your cookies and set the banner design, texts and languages.
The site key
Paste your site key, the script address or the whole installation code into the module: it keeps only the key, and the banner is live.
The finishing touches
Turn on Google Consent Mode v2 and the declaration page, then choose where the “Cookie preferences” link appears and on which pages the banner has no place.
02 - Script
The first script on the page
CookieYes automatic blocking only works if CookieYes runs before the other scripts
The right hook
Right after the title tag on PrestaShop 1.7.8 to 9, at the top of the head on 1.7.0 to 1.7.7, first module of the header on 1.6: the module picks the spot for your version.
Protected against deferral
JavaScript optimisation modules and Cloudflare Rocket Loader can no longer delay the consent script, and PrestaShop does not move it to the bottom of the page.
Defer only if you want to
Deferred loading stays an option, off by default: without automatic blocking, it speeds up display a little.
Checked before going live
The script address is shown as you type, and the “Test my configuration” button checks from your server that CookieYes really serves your script.
Survives updates
Nothing is pasted into the theme: a theme update never makes the banner disappear.
03 - Consent Mode
Google Consent Mode v2 in the right order
Google requires it to keep measuring conversions from European visitors
- Default state
- Everything denied until the visitor chooses, except security, set before the CookieYes script.
- Update
- CookieYes updates the state as soon as the visitor accepts or refuses, category by category.
- wait_for_update
- How long Google waits for the visitor’s choice, 2000 ms by default, adjustable.
- Advertising data
- Click identifiers are redacted while advertising is denied, on by default as CookieYes recommends.
- URL passthrough
- To measure conversions without cookies, optional: it adds parameters to your internal links.
The order is the one CookieYes recommends: the default state, then the CookieYes script, then your Google tags. If a Google Tag Manager module already sets the default state, leave the module option unticked.
04 - Video
The module on video
The CookieYes site key pasted and checked, Google Consent Mode v2, the advanced options, the “Cookie preferences” link and the cookie declaration page, tab by tab. No sound.
05 - Declaration
Your cookies declared, your customers free to change their mind
A declaration page on your shop and a link to revisit the choice
Declaration
A real shop page
The cookie audit table, kept up to date by CookieYes after every scan, with an introduction text and a button to reopen the banner. Address, title and SEO tags are set language by language.
Preferences
A link always within reach
A “Cookie preferences” link in the footer and, if you wish, in My account, with a label per language. For a link elsewhere, a simple CSS class is enough.
SEO
A page worth linking to
Link the page from your privacy policy and your footer, and enter its address in CookieYes so the banner points to it.
06 - Options
The banner where it belongs
Exclusions, appearance and behaviour, from the back office
Pages without banner
Order confirmation and PDF documents by default, and any shop page you tick.
Groups without banner
For logged-in customers of a chosen group, for example a test account or your shop staff.
Custom CSS
Up to 10 KB of rules to fine-tune the banner appearance beyond the CookieYes settings.
Reload after consent
The page reloads once after the visitor’s choice, so every tag restarts with the right consent.
Debug mode
CookieYes events show in the browser console while you check a setting.
07 - Comparison
The module versus code pasted into the theme
What CookieYes code pasted into the theme gives you, and what the module adds
| Code pasted into the theme | CookieYes | |
|---|---|---|
| Survives theme updates | No | Yes |
| First script on the page, on PrestaShop 1.6 to 9 | Depends on the theme | Yes |
| Protected against optimisation modules and Rocket Loader | No | Yes |
| Google Consent Mode v2 by default | Write it yourself | Yes, in one click |
| Cookie declaration page | Build it yourself | Yes, per language, with SEO |
| “Cookie preferences” link | Add it yourself | Footer and customer account |
| Pages and customer groups without banner | No | Yes |
| Key test from the server | No | Yes |
| Multistore, one key per shop | Handle it yourself | Yes |
In both cases, the banner design, texts, languages and cookie scan are set in your CookieYes dashboard.
The module provides the consent layer. Your shop’s legal position also depends on an up-to-date privacy policy, contracts with your processors and the handling of your customers’ rights.
08 - Technical
Technical specifications
Built for reliability and multi-version compatibility
- PrestaShop
- 1.6 to 9.x
- PHP
- 5.6 to 8.5
- CookieYes account
- Required, the free plan is enough to get started
- Multistore
- Yes, one site key per shop
- Languages
- French, English, German, Spanish, Italian, Polish
- Database
- No table created, no native table modified, no visitor data stored
- External services
- The CookieYes script, from cdn-cookieyes.com
- PrestaShop 1.6.0 to 1.6.1.11
- File classes/Media.php replaced, original backed up and restored on uninstall
- Licence
- Banner and options work without a licence; the licence adds the configuration test, alerts and support
- Help
- Built-in FAQ of 26 questions and PDF documentation
Install CookieYes without touching your theme
The banner, Google Consent Mode, the declaration page and the options work as soon as the module is installed. The licence adds the configuration test, update alerts and priority support.




