Skip to content
Québec Studio

Craft CMS extension

Cookie Consent Kit

Cookie consent, done right: no third-party cookie before the visitor agrees, and pages that stay cached. Built for Quebec’s Law 25.

Craft CMS 5
v5.0.8
Craft CMS 6
v6.0.10
Editions
Lite (free), Pro
Also for
Statamic, Laravel

Troubleshooting — Craft CMS 6

See also the Testing checklist.

The banner does not appear

  • autoInject is off and no template renders the banner.
  • A Blade page template lacks @craftHead or @craftEndBody.
  • The request is not a site request: the banner is never added to the control panel or to action requests.

CSS or JavaScript changes do not show

The browser loads the published copy in public/vendor/quebecstudio-mods/craftcms-consent-kit/. Publish again:

php artisan craft:setup:publish

The asset URLs carry ?v= with a hash of the plugin version.

Settings do not save

  • allowAdminChanges is off: the panes are read-only.
  • The setting is in config/craft/cookie-consent-kit.php, which wins; the field shows a note.
  • The account is not an admin.

Reading the settings

The project config stores associative arrays packed: ['__assoc__' => [[key, value], …]]. SettingsStore::stored() returns them unpacked.

A Craft CMS extension that doesn’t exist yet?

If Craft CMS doesn’t do what you need yet, we can build it for you.

Let’s talk

We use cookies

This site uses cookies that are required for it to work. With your consent, we also use cookies to measure traffic. You can change your mind at any time. Privacy policy

Your cookie preferences

Always on

Required for the site to work and for form security. These cannot be turned off.

Necessary
Cookie Set by Purpose Retention
CraftSessionId This site Keeps your browsing session. Session
CRAFT_CSRF_TOKEN This site Protects forms against cross-site request forgery. Session
cookie_consent This site Remembers your cookie choices. 6 months

Help us understand how the site is used so we can improve it. Measured with Matomo.

Statistics
Cookie Set by Purpose Retention
_pk_id.* This site Recognizes the browser from one visit to the next, without identifying you. 13 months
_pk_ses.* This site Groups the pages viewed during a single visit. 30 minutes