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.
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 #
-
Download the module
Download the zipkixconsentdemo.zip, version 1.0.0, MIT licence. -
Install the module
- Open Modules›Module Manager.
- Click Upload a module and select
kixconsentdemo.zip, without unzipping it. - Wait for the PrestaShop confirmation message.
- Unzip
kixconsentdemo.zip: you get akixconsentdemofolder. - Upload this folder to the shop's
modulesdirectory. - In Modules›Module Manager, search for "Kixell Tag - consent demo" and click Install.
ResultThe "Kixell Tag - consent demo" module is listed among the installed modules.
-
Tick its two partners
- In Kixell Tag, click the Consent popup configuration tile, then, in the Configuration tab, click Configure and/or synchronize vendor list.
- The Vendor Configuration screen opens and creates the demo's partners. In the Type column, choose Personnel.
- Tick "Kixell Tag consent demo - visitor counter" and "Kixell Tag consent demo - error reports". Each box is saved as soon as you tick it.
ResultThe two partners appear in the banner's partner list.
-
Make a choice in the shop
Open the shop in a private browsing window, with the browser console open (developer tools, Console tab).
- Before any choice, the console shows
[kixconsentdemo] no choice yet: waiting for the visitor. - Accept all. The console shows
[kixconsentdemo] kixconsentdemo: consent, cookie set by the serverand thekixconsentdemo_vidcookie appears. - Reopen the banner with its icon and refuse all. The
kixconsentdemo_vidcookie disappears.
- Before any choice, the console shows
Check before you continue
- The two partners are ticked in Vendor Configuration.
- After "accept all", the
kixconsentdemo_vidcookie exists. After "refuse all", it no longer exists. - The demo log contains a
hook origin=choiceline 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 Modules›Module 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_URLwith 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 Parameters›Performance: a combined JavaScript file may date from before the demo was installed.
Missing or wrong information? Tell the support team