CookieFox

← All posts · · 2 min read

How to install a cookie banner in PrestaShop - step by step

An online shop means analytics, remarketing and conversion pixels by definition - and therefore a mandatory, GDPR-compliant cookie banner. In PrestaShop you can deploy one in minutes with the ready-made CookieFox module, without touching template files. The module works with PrestaShop 1.7 and 8.

Why a module instead of template edits?

Tracker auto-blocking only works when the banner script sits as early as possible in the <head> - before the Google tag, the Meta pixel and price-comparison scripts. Changes to .tpl files vanish with the next template update and require clearing the Smarty cache. The CookieFox module hooks into displayHeader and prints the script always, regardless of theme changes.

Installation in 3 steps

  1. Download the module from your CookieFox panel: site details → the "Embed script" section → Download PrestaShop module. The ZIP already has your shop's key and the panel address baked in - zero configuration.
  2. Upload it in the back office: Modules → Module ManagerUpload a module → pick the downloaded ZIP.
  3. Done. The banner shows up on the shop immediately. View or change the key under Modules → CookieFox → Configure.

No account yet? Create a free one, add your shop as a site and return to step 1.

What happens after installation?

  • The module prints a single synchronous tag <script src="https://panel/cmp/your-key.js"> - deliberately without async/defer and without registerJavascript(), because those mechanisms cannot guarantee an early position in the <head>.
  • The banner speaks the customer's language, with equal "Accept" and "Reject" buttons - as the GDPR requires.
  • Google Analytics 4, Google Ads and Meta Pixel stay blocked until consent, and the Consent Mode v2 signals are set automatically - your Google Ads conversions do not disappear.
  • The consent register in the panel documents every customer decision (GDPR accountability).

E-commerce and consent categories

Worth remembering in a shop: cart and login-session cookies are strictly necessary - they need no consent and the banner never blocks them. Consent covers the marketing layer: remarketing, comparison engines, heatmap tools. The CookieFox scanner categorizes them automatically after the first scan.

Manual installation (the alternative)

You can also paste the script tag from the panel directly into your child template's head.tpl - as the first script. Remember to clear the cache (Advanced → Performance) and that a template update will overwrite the change. The module is simply more durable.

Also running a company site on WordPress? See the WordPress guide.

A GDPR-compliant cookie banner in minutes

CookieFox scans your site, blocks scripts until consent and keeps a consent register. Deployment is a single line of code.

Create a free account