Aller au contenu
Québec Studio

Extension pour Craft CMS

Cookie Consent Kit

Le consentement aux témoins, fait correctement : aucun témoin tiers avant l’accord du visiteur, et des pages qui restent en cache. Pensé pour la Loi 25.

Craft CMS 5
v5.0.8
Craft CMS 6
v6.0.10
Éditions
Lite (gratuite), Pro
Aussi pour
Statamic, Laravel

La documentation technique est rédigée en anglais, comme dans le dépôt.

Privacy policy

The plugin links the banner to the site's privacy policy and renders the declared cookies inside it. It does not create or edit the policy.

Set per site, as a page of the site or a URL — see policySource, policyEntry, policyUrl. The URL accepts a $ENV_VAR.

  • The link is shown in the banner's message, labelled with policyLabel.
  • With neither a page nor a URL, the banner shows no link.
  • The manage panel does not show it.

The table lists the declared cookies of each visible category: name, provider, purpose, retention. To place it, see Templates.

Options

OptionDefaultWhat it does
classesthe inventoryFramework setclasses per element
headingLevel3heading level of a category name, 2 to 6
headingtruefalse leaves out the category title and description
categoryalla handle, or a list of handles

With heading: false, each table takes its accessible name from an aria-label.

Markers in content

In content passed through the marker filter, a marker is replaced by the table:

[cookie-table]
[cookie-table:statistics]
[cookie-table category="statistics"]
[cookie-table heading="false"]
[cookie-table category="marketing" level="2"]
AttributeValues
categorya handle
headingfalse
level2 to 6
  • Quotes are optional; curly quotes are accepted.
  • Unknown attributes are ignored.
  • Marker attributes win over the filter's options.
  • Content without a marker is returned unchanged.
  • Content that is not already HTML is escaped before the replacement.
  • Without the filter, the marker stays in the page as text.

Markup

<div class="qsm-ck-inventory">
    <section class="qsm-ck-inventory-category" data-category="statistics">
        <h3 class="qsm-ck-inventory-title" id="qsm-ck-inventory-statistics">Statistics</h3>
        <p class="qsm-ck-inventory-description">…</p>
        <table class="qsm-ck-inventory-table" aria-labelledby="qsm-ck-inventory-statistics">
            <thead><tr><th scope="col">Cookie</th>…</tr></thead>
            <tbody><tr><td><code>_ga</code></td>…</tr></tbody>
        </table>
    </section>
</div>

One table per category, with four columns: name, provider, purpose, retention. The markup ships no CSS; it takes the site's styles.

Classes

inventoryFrameworkClasses rendered
''the qsm-ck-* classes only
bootstrap, bulma, tailwindthat framework's set, for one version of it
custominventoryClasses, one entry per element

Elements: wrapper, section, heading, description, table, thead, tbody, tr, th, td. The classes option overrides any of them for one table.

What the policy has to cover

A visitor has to be able to find which cookies the site sets, what each is for, how long it lasts, and who sets it. The table covers that part.

The plugin does not cover purposes of processing, legal bases, retention of personal information, processors, transfers outside Quebec, individuals' rights or the privacy officer.

Une extension Craft CMS qui n’existe pas encore?

Si Craft CMS ne fait pas encore ce dont vous avez besoin, on peut le développer pour vous.

Parlons-en

Nous utilisons des témoins

Ce site utilise des témoins (« cookies ») nécessaires à son fonctionnement. Avec votre accord, nous en utilisons aussi pour mesurer la fréquentation. Vous pouvez changer d'avis en tout temps. Politique de confidentialité

Vos préférences de témoins

Toujours actif

Indispensables au fonctionnement du site et à la sécurité des formulaires. Ils ne peuvent pas être désactivés.

Nécessaires
Témoin Déposé par Finalité Conservation
CraftSessionId Ce site Maintient votre session de navigation. Session
CRAFT_CSRF_TOKEN Ce site Protège les formulaires contre la falsification de requête. Session
cookie_consent Ce site Mémorise vos choix en matière de témoins. 6 mois

Nous aident à comprendre comment le site est utilisé, afin de l’améliorer. Mesurées avec Matomo.

Statistiques
Témoin Déposé par Finalité Conservation
_pk_id.* Ce site Reconnaît le navigateur d’une visite à l’autre, sans vous identifier. 13 mois
_pk_ses.* Ce site Regroupe les pages vues pendant une même visite. 30 minutes