Documentation
Module 4.6.0 What’s new
Modules and consent · Understand and try

Install and try the demo

Install the example module on a test shop, tick its two partners, then make a choice in the banner: the browser console and a cookie show the module following that choice.

For: developer, agency Time: about 15 min Access: PrestaShop back office Checked with module 4.6.0 · updated Nov 29, 2026

Before you start

  • Kixell Tag 4.6.0 or later, with the banner turned on: see step 5 of the path.
  • PrestaShop 1.6 to 9 and PHP 5.6 or higher.
  • A test or staging shop: as soon as you tick the demo's partners, they appear in the banner.

Steps #

  1. Download the module

    kixconsentdemo.zip, version 1.0.0, MIT licence.

    Download the zip
  2. Install the module

    1. Open ModulesModule Manager.
    2. Click Upload a module and select kixconsentdemo.zip, without unzipping it.
    3. Wait for the PrestaShop confirmation message.
    1. Unzip kixconsentdemo.zip: you get a kixconsentdemo folder.
    2. Upload this folder to the shop's modules directory.
    3. In ModulesModule Manager, search for "Kixell Tag - consent demo" and click Install.
    Result

    The "Kixell Tag - consent demo" module is listed among the installed modules.

  3. Tick its two partners

    1. In Kixell Tag, click the Consent popup configuration tile, then, in the Configuration tab, click Configure and/or synchronize vendor list.
    2. The Vendor Configuration screen opens and creates the demo's partners. In the Type column, choose Personnel.
    3. Tick "Kixell Tag consent demo - visitor counter" and "Kixell Tag consent demo - error reports". Each box is saved as soon as you tick it.
    Result

    The two partners appear in the banner's partner list.

  4. Make a choice in the shop

    Open the shop in a private browsing window, with the browser console open (developer tools, Console tab).

    1. Before any choice, the console shows [kixconsentdemo] no choice yet: waiting for the visitor.
    2. Accept all. The console shows [kixconsentdemo] kixconsentdemo: consent, cookie set by the server and the kixconsentdemo_vid cookie appears.
    3. Reopen the banner with its icon and refuse all. The kixconsentdemo_vid cookie disappears.

Check before you continue

  • The two partners are ticked in Vendor Configuration.
  • After "accept all", the kixconsentdemo_vid cookie exists. After "refuse all", it no longer exists.
  • The demo log contains a hook origin=choice line for each choice (see below).

What the demo does #

It declares two partners, to show both legal bases:

Partner key Declaration What the demo does
kixconsentdemo Consent: purposes 1 and 8 After a yes, the server sets the kixconsentdemo_vid cookie: a random identifier, HttpOnly, valid for 30 days. A no deletes it
kixconsentdemo_errors Legitimate interest: purpose 10, special purpose 1 After a yes, Kixell Tag runs a script that writes the page's JavaScript errors to the console. A real module would send them to its server

The demo records no personal data: it has no table, and its log contains neither visitor identifiers nor IP addresses.

Where to look #

Where What you see there
Browser console The [kixconsentdemo] lines: state of the choice, cookie set or deleted, scripts run by Kixell Tag
Browser cookies (Application or Storage tab) kixconsentdemo_vid, present only after a yes
Demo configuration page In ModulesModule Manager, the module's Configure button: presence of Kixell Tag and of its API, registered hooks, declared partners and latest log lines
Log var/logs/kixconsentdemo-YYYY-MM-DD.log, or log/ on PrestaShop 1.6: one line per call of the hook and of the controller
Page source code At the bottom of the page, the <!-- kixconsentdemo: server-side consent … --> comment. It is only accurate without a page cache

Before reusing this code #

  • Replace POLICY_URL with your module's privacy policy page: this link is shown to visitors.
  • Give your partners their own key and their own name: see Declare the partners.
  • Uninstalling the demo leaves its two partners in Kixell Tag: untick them in Vendor Configuration.

Common problems #

The demo's partners do not appear

The module is not installed or it is disabled. Check its configuration page: the two hooks actionKixellTagRegisterVendors and actionKixellTagConsent must be registered. Then reopen Vendor Configuration.

The partner has a different name from the one on this page

An earlier version of the demo already created it on this shop. Kixell Tag creates a partner only once and never updates it: its name and purposes remain those of the first declaration.

The console shows no "[kixconsentdemo]" line

The banner does not start on this page: the demo then receives no state and does nothing. See The banner does not show. If the banner shows, clear the PrestaShop cache in Advanced ParametersPerformance: a combined JavaScript file may date from before the demo was installed.

Missing or wrong information? Tell the support team