Declare the module's partners
A partner is the line the visitor sees in the banner, with its switch. Declare one per processing operation that requires a choice, with the legal basis and the purposes that describe it.
Choosing the declaration #
For each processing operation of the module, go through these questions in order:
- Is it strictly necessary for what the visitor asked for (cart, login, security token, language or currency)? Declare nothing and do not make it wait.
- Does it store or read something on the device (cookie, local storage, device fingerprint)? This requires consent: put purpose 1 in
purposes. - What is the data used for? Add the matching purposes (2 to 11). Purposes 3, 4, 5 and 6, which create or use profiles, always require consent.
- No storage on the device, and a legitimate interest the publisher can justify? Purposes 2, 7, 8, 9, 10 and 11 can go in
legIntPurposes. If in doubt, choose consent. - How does the processing work? Add the special purposes and the features that describe it. The visitor is informed of them, with no choice to make.
- Do two processing operations need different choices? Declare two partners: each has its own switch.
| Module type | Usual declaration |
|---|---|
| Visit counter with a cookie | purposes [1, 8] |
| Attribution of sales to campaigns or to affiliates, with a cookie | purposes [1, 7], plus features [2] if attribution follows the customer account from one device to another |
| Advertising pixel, remarketing | purposes [1, 2, 3, 4, 7] |
| Recommendations based on a browsing profile | purposes [1, 5, 6] |
| A/B tests with a cookie | purposes [1, 8, 10] |
| Chat or review widget that sets cookies | purposes [1], plus whatever the widget does with the data |
| Error reports, with no storage on the device | legIntPurposes [10], specialPurposes [1] |
TCF identifiers #
The identifiers are those of the IAB Europe TCF 2.2. The banner shows their names in the visitor's language. Kixell Tag does not check that an identifier exists: use only these.
| Purpose | Name shown | Legitimate interest possible |
|---|---|---|
| 1 | Store and/or access information on a device | No |
| 2 | Use limited data to select advertising | Yes |
| 3 | Create profiles for personalised advertising | No |
| 4 | Use profiles to select personalised advertising | No |
| 5 | Create profiles to personalise content | No |
| 6 | Use profiles to select personalised content | No |
| 7 | Measure advertising performance | Yes |
| 8 | Measure content performance | Yes |
| 9 | Understand audiences through statistics or combinations of data from different sources | Yes |
| 10 | Develop and improve services | Yes |
| 11 | Use limited data to select content | Yes |
| Field | Identifiers | Visitor's choice |
|---|---|---|
specialPurposes |
1 Ensure security, prevent and detect fraud, and fix errors · 2 Deliver and present advertising and content · 3 Save and communicate privacy choices | None: information only |
features |
1 Match and combine data from other data sources · 2 Link different devices · 3 Identify devices based on information transmitted automatically | None: information only |
specialFeatures |
1 Use precise geolocation data · 2 Identify devices based on information actively requested | Explicit consent: always with purposes in purposes |
A given purpose goes in purposes or in legIntPurposes, never in both.
Writing the hook #
Register the hook on install, then return the partner or partners:
public function install()
{
return parent::install()
&& $this->registerHook('actionKixellTagRegisterVendors')
&& $this->registerHook('actionKixellTagConsent');
}
/**
* Partners shown in the Kixell Tag banner. Kixell Tag creates each key
* only once and never updates it: the merchant ticks it in their partners.
*
* @return array
*/
public function hookActionKixellTagRegisterVendors()
{
return [
'key' => 'mymodule',
'name' => 'My module - attribution of sales to campaigns',
'policy_url' => 'https://www.example.com/privacy',
// 1 = the mymodule_vid cookie; 7 = measure advertising performance.
'purposes' => [1, 7],
];
}
For two partners, return a list: return [[…], […]];. This is how the example module declares kixconsentdemo and kixconsentdemo_errors.
| Field | Required | Rule |
|---|---|---|
key |
Yes | Lowercase letters, digits and _, 64 characters at most. It is the partner's identifier in all other calls: never change it. Use the module's technical name, with a suffix for any further partners (mymodule_ads) |
name |
Yes | Not empty, 255 bytes at most. Shown as is in the banner, without translation: describe the service provided |
policy_url |
Yes | Address starting with http:// or https://, 255 bytes at most. The partner's "privacy policy" link in the banner |
purposes, legIntPurposes, specialPurposes, features, specialFeatures |
No | Arrays of integers greater than or equal to 1, written 7 or '7'. Duplicates are removed, an empty array counts as a missing field |
Warning
A partner with a single invalid field is ignored entirely, with no message and no log. After each change, open Vendor Configuration and check that the partner is listed with the right purposes.
Return [] to declare nothing, for example as long as the merchant has not entered your privacy policy address in the module's settings. Never make up this address.
The partner's lifecycle #
- Kixell Tag calls the hook when the merchant opens the Vendor Configuration screen, never on the shop.
- For each unknown key, it creates a partner of type Personnel, with a
kpv:identifier followed by a number. If the merchant had already created by hand a partner with the same name, Kixell Tag takes it over: it gives it the key and keeps its identifier. - A key already known is never updated. Later changes to the declaration are ignored: the merchant edits the partner on that screen.
- The partner is not ticked: until the merchant ticks it, it is not in the banner and the API answers no. The selection is made shop by shop; the partner list is shared by all shops.
- Uninstalling the module leaves the partner in Kixell Tag. Reinstalling it finds the same partner again by its key.
Tell the merchant in the module's user guide and release notes: "Open the Kixell Tag partner screen and tick the partner name. As long as it is not ticked, the module collects nothing."
How the choice becomes yes or no #
For a partner declared by a module, the API answers with a single boolean: is the partner enabled in the visitor's recorded choice?
| Situation | Answer |
|---|---|
| No choice recorded yet | No |
| Bot, excluded IP address, banner turned off, Kixell Tag missing or disabled | No |
| Partner not ticked by the merchant, or ticked after the visitor's choice | No, until a new choice |
| "Accept all" | Yes |
| "Refuse all" | No, legitimate interest included |
| Custom choice, partner enabled | Yes |
Partner with purposes and legIntPurposes, only one of its two switches enabled |
No |
Partner with neither purposes nor legIntPurposes |
No switch: yes after any choice, even "refuse all" |
This table has three consequences:
- Legitimate interest is not a yes by default. The module receives yes only when a recorded choice leaves its partner enabled. Start nothing before the first choice.
- Never declare a partner with neither
purposesnorlegIntPurposesfor a processing operation that requires a choice: it would be active even after a refusal. - One switch per partner. A processing operation based on consent and another based on legitimate interest make two partners, as in the demo.
Missing or wrong information? Tell the support team