Skip to content
Québec Studio

Laravel package

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.

Laravel 11–13
v1.1.0

Why this one

A banner that keeps its promise

01

Nothing before consent

No third-party cookie is set until the visitor has chosen. Scripts, iframes and videos wait for their category’s consent.

02

Cache-friendly

The same HTML for every visitor: your pages stay cached, even behind a static cache. The visitor’s choice is applied in their browser.

03

Ready for proof

The package provides the fingerprint of the wording on screen and the script that reports each decision: your application keeps the register its own way, in its own tables.

Homemade

Built for us first, now for you

Cookie Consent Kit is what we install on the sites we build. We designed it for our studio’s needs, we put it to the test at every launch, and we share it so others can benefit.

Features

Everything you need, nothing more

Built for Quebec’s Law 25, usable under the European GDPR.

  • Choice by category

    Accept all, refuse all, or choose category by category.

  • Cookie inventory

    Declared in the configuration, shown as a table in your privacy policy.

  • Click-to-load videos

    YouTube only loads on click, with a thumbnail served by your own site.

  • Google and Matomo

    Consent Mode and Matomo set to “denied” before any tag runs.

  • Global Privacy Control

    The opt-out signal sent by the browser is honoured.

  • French and English

    Included out of the box; another language takes a single file.

  • Your colours

    CSS variables, a dark theme, and fully replaceable templates.

  • Automatic injection

    A middleware adds the banner to every HTML page; JSON, redirects and files are left untouched.

Installation

Three commands and you’re set

Laravel 11–13

composer require quebecstudio-mods/laravel-consent-kit:^1.1
php artisan vendor:publish --tag=cookie-consent-assets
php artisan vendor:publish --tag=cookie-consent-config
First steps in the documentation

The extension handles the banner and the proof of consent. It does not replace your privacy policy, the appointment of a person in charge of the protection of personal information, or legal advice.

Would you rather we took care of it?

Cookie inventory, configuration, integration with your site: we install it and set it up for you.

An extension that doesn’t exist yet?

If Craft CMS, Statamic or Laravel 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