What the module consent API is for
A module that sets a cookie or collects data must wait for the visitor's consent. Instead of showing its own banner, it asks Kixell Tag for that choice.
On a shop, modules other than Kixell Tag set cookies or collect data: visit counter, attribution of sales to campaigns, affiliation, review or chat widget. Each of them must wait for the visitor's consent. With Kixell Tag 4.6.0 or later, a module needs neither its own banner nor to read the cookies of a consent tool: it asks Kixell Tag.
Who it is for #
| You are | What you gain |
|---|---|
| Module publisher | Your module follows the visitor's choice on any shop equipped with Kixell Tag, with no banner to write. It appears in the banner with its own purposes |
| Agency | You make a client's modules compliant, in-house modules included, with the same method on every shop |
| Merchant | A single banner for the whole shop, and a register that keeps proof of each choice |
How it works #
- The module declares its partners: a name, a link to its privacy policy and its purposes.
- The merchant opens the Kixell Tag partner screen: the partner is created there, then the merchant ticks it.
- The visitor makes their choice in the banner.
- Kixell Tag passes this choice on to the module: in PHP through a hook and a method, in the page through a JavaScript event. The module starts on a yes; on a no, it stops and deletes what it stored.
What the API provides #
| Need | Tool | Details |
|---|---|---|
| Appear in the banner | actionKixellTagRegisterVendors hook |
Declare the partners |
| Act on the server when the visitor chooses | actionKixellTagConsent hook |
React in PHP |
| Ask the server whether the visitor gave consent | hasVendorConsent() method of the kixelltag module |
React in PHP |
| Follow the choice in the page, even with a page cache | kixelltagOnReady, kixelltag_consent_state event, KixellTag.hasConsent() |
Browser side |
| Have Kixell Tag run a script after consent | <script type="kixelltag/javascript" data-kt-vendor="…">, ${GDPR_CONSENT} |
Browser side |
The five rules #
- Nothing on the device before a yes. No cookie, no local storage, no pixel, not even a "refused" value.
- No answer, no consent. Kixell Tag missing or disabled, banner turned off, partner not ticked, visitor who has not chosen yet: the module collects nothing.
- A no stops everything. The module stops the processing and deletes what it stored, on the device as well as on the server.
- What is strictly necessary does not wait. Cart, login, language, currency, security: do not declare a partner for them.
- No dependency on Kixell Tag. The two modules install in any order and only talk to each other through this API.
Legal basis
These pages are a technical guide, not legal advice. The module publisher and the merchant remain responsible for choosing the legal basis of each processing operation. If in doubt, choose consent.
Frequently asked questions #
Does the module work without Kixell Tag?
It installs and works, but collects nothing as long as no consent tool answers it (rule 2). A module sold to many shops can support several tools: see Integration recipes.
Which version of Kixell Tag is needed?
Version 4.6.0 or a later one. With an older version, the hasVendorConsent() method does not exist and the hooks are never called: the module receives no consent.
Does the visitor see my module's name?
They see the name of the partner the module declares, as is, without translation. Describe the service provided, for example "Attribution of sales to campaigns", rather than just the module's name.
Missing or wrong information? Tell the support team