Part of Data sovereigntyLaw 25 · Cookies

Law 25 and cookies: what needs consent, and what cookieless analytics avoids.

Law 25 has no cookie section. The rule that matters is section 8.1: technology that can identify, locate or profile a visitor must be disclosed first, and the CAI says those functions must be off by default. Advertising and tracking cookies wait for an opt-in. Cookieless analytics can skip the banner, but not the privacy policy.

Facts checked

What the Act says

Section 8.1 of Quebec’s Act respecting the protection of personal information in the private sector applies to anyone who collects personal information “using technology that includes functions allowing the person concerned to be identified, located or profiled”. That person “must first inform the person (1) of the use of such technology; and (2) of the means available to activate the functions”. Profiling is defined right there: collecting and using personal information “to assess certain characteristics of a natural person, in particular for the purpose of analyzing that person’s […] personal preferences, interests or behaviour.”

The word “activate” is where the opt-in comes from. The Commission d’accès à l’information’s guidelines 2023-1 on valid consent (31 October 2023) say it outright, in section B.4: these functions « doivent être désactivées par défaut » (must be deactivated by default), and the person « doit donc poser un geste positif » (must take a positive step). The guidelines say they do not have the force of law; they do tell you what the CAI expects.

Two more sections finish the picture. Section 9.1 (privacy settings at the most private level by default) states that it “does not apply to privacy settings for browser cookies”, so the off-by-default rule for trackers comes from 8.1, not 9.1. Section 8.2 requires a privacy policy “in clear and simple language” from anyone who collects personal information through technological means. The CAI’s guide to writing one lists “certains témoins (cookies) de votre site Web” as a means of collection to disclose. This page is our reading, not legal advice.

What runs in the browserIdentifies, locates or profiles?What we’d do (our reading)
Sign-in session cookie † †Identifies a user who chose to sign in, for the service they asked forNo opt-in banner; describe it in the privacy policy (s. 8.2)
CSRF token, load-balancer cookie, language choice † †NoDescribe in the privacy policy
Analytics with a persistent ID, such as Google Analytics’ _ga (two years, “used to distinguish users”) † † †Can profile behaviour over timeOff until the visitor opts in (s. 8.1, CAI B.4)
Advertising and retargeting pixels † †Profiles interests, often across sitesOff until opt-in, as a separate choice from analytics (s. 14)
Location from the device (GPS) † †LocatesOff by default; the visitor turns it on (CAI example B-a)
Cookieless, aggregate analytics † †No identifier kept on the device; counts, not profilesNo banner needed for it; still in the privacy policy

† Competitor details come from each vendor’s own published pages on the dates shown; prices and plans change, so check the vendor before you decide. Sign-in session cookie (2026-10-29) · Sign-in session cookie (2026-10-29) · CSRF token, load-balancer cookie, language choice (2026-10-29) · CSRF token, load-balancer cookie, language choice (2026-10-29) · Analytics with a persistent ID, such as Google Analytics’ `_ga` (two years, “used to distinguish users”) (2026-10-29) · Analytics with a persistent ID, such as Google Analytics’ `_ga` (two years, “used to distinguish users”) (2026-10-29) · Analytics with a persistent ID, such as Google Analytics’ `_ga` (two years, “used to distinguish users”) (2026-10-29) · Advertising and retargeting pixels (2026-10-29) · Advertising and retargeting pixels (2026-10-29) · Location from the device (GPS) (2026-10-29) · Location from the device (GPS) (2026-10-29) · Cookieless, aggregate analytics (2026-10-29) · Cookieless, aggregate analytics (2026-10-29)

Section 14 requires consent to be “clear, free and informed”, given for specific purposes and “requested for each such purpose”. The CAI’s guidelines add that the number of clicks « pour consentir ou refuser devrait être équivalent » (to consent or to refuse should be equivalent), and give a counter-example: one click to turn personalized recommendations on, eight to turn them off.

In code, that means four things. Nothing that can profile loads before the visitor chooses. Each purpose gets its own unchecked box. “Refuse all” sits next to “Accept all”. A footer link reopens the choice later, because consent can be withdrawn (section 8). Record which wording the visitor saw:

// Nothing that can profile runs before a positive act (s. 8.1; CAI guidelines 2023-1, B.4).
// One choice per purpose (s. 14), and refusing takes as many clicks as accepting.
const KEY = "consent.v2"; // bump the version when the wording changes

function read() {
  try { return JSON.parse(localStorage.getItem(KEY) ?? "null"); } catch { return null; }
}

function apply(choice) {
  if (choice?.analytics === true) loadScript("https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX");
  if (choice?.ads === true) loadScript("https://ads.example.com/pixel.js");
}

function save(choice) {
  const record = { ...choice, at: new Date().toISOString(), text: "banner-2026-10" };
  try { localStorage.setItem(KEY, JSON.stringify(record)); } catch {}
  apply(record);
}

function loadScript(src) {
  const s = document.createElement("script");
  s.src = src; s.async = true;
  document.head.append(s);
}

const saved = read();
if (saved) apply(saved); else showBanner(); // both boxes unchecked by default

document.querySelector("#accept-all").onclick = () => save({ analytics: true, ads: true });
document.querySelector("#refuse-all").onclick = () => save({ analytics: false, ads: false });
document.querySelector("#save-choices").onclick = () => save({
  analytics: document.querySelector("#c-analytics").checked,
  ads: document.querySelector("#c-ads").checked,
});
// and a "Cookie settings" link in the footer that calls showBanner() again

What cookieless analytics avoids, and what it doesn’t

A cookieless tool stores nothing on the visitor’s device and keeps no identifier that follows them for months. Without a persistent profile, there is nothing for section 8.1 to switch on, so by our reading the tool doesn’t need a banner. That is the whole gain, and it is a real one: no banner for your analytics, and no data lost to visitors who click “Refuse”.

It doesn’t take the tool outside the Act. To tell visits apart, cookieless tools still process the IP address and browser string of each request. Section 2 defines personal information as any information that “directly or indirectly allows that person to be identified”, and an IP address can do that. So the tool belongs in your privacy policy. If its vendor keeps the data outside Quebec, section 17 also applies: a privacy impact assessment and a written agreement before the data goes there.

The tools differ in how long one identifier lasts, which is the part worth comparing:

ToolStores anything on the device?How a visitor is countedHow long one identifier lastsWhere the data is processed
Google Analytics 4 †Yes: _ga and _ga_<container-id> cookies_ga is “used to distinguish users”Two years by defaultGoogle, a US company
Plausible †No: “We do not use cookies, browser cache or local storage”hash(daily_salt + website_domain + ip_address + user_agent)A day: the salt is “rotated and deleted every 24 hours”EU
Canner analyticsNo cookie, and nothing in the browser for identityHash of the site, IP address, browser string and a random monthly salt, deleted when the month endsA calendar monthMontréal

† Competitor details come from each vendor’s own published pages on the dates shown; prices and plans change, so check the vendor before you decide. Google Analytics 4 (2026-10-29) · Plausible (2026-10-29)

Canner’s built-in analytics

Every Canner project, on every plan (pricing), has an Analytics tab with page views, sessions, referrers and top pages. The tab gives you one script tag to put in your <head>. The tracker sets no cookie, keeps no identifier in localStorage, and sends cross-origin requests without credentials. It doesn’t run when the browser sends Do Not Track, or when the visitor has set an opt-out flag you can offer with one button.

On the server, a session ID is derived from a hash of the site, the IP address, the browser string and a random salt that changes each month and is deleted once the month is over, so an ID can’t be worked back to an address. The raw IP address is not stored. What is stored per session: browser, operating system, device type, screen size, language, approximate location looked up from the IP (country, region, city), referrer domain and UTM tags. Events hold the path and page title. Everything is processed and stored in Montréal and deleted after 12 months by a daily sweep. The analytics docs cover the tab.

If your app also has visitors outside Quebec, turn on Visitor location in the project settings: each request then carries an X-Canner-Consent-Mode header, opt-in for Canada, the EU and the UK among others and opt-out elsewhere, so the banner can follow the visitor’s region. For Quebec visitors it always says opt-in (visitor location).

<!-- from your project's Analytics tab; one line in <head> -->
<script defer src="https://canner.ca/t.js"
        data-site-id="<your site id>"
        data-domains="your-project.canner.app,www.example.com"></script>

<!-- an opt-out you can offer anyway: the tracker also skips browsers
     that send Do Not Track -->
<button onclick="localStorage.setItem('canner.analytics.disabled', '1')">
  Don’t count my visits
</button>

Questions

Does Law 25 require a cookie banner?

Not for every cookie. Section 8.1 covers technology that can identify, locate or profile someone, and the CAI’s guidelines say those functions must be off by default and activated by a positive act. In practice that means opt-in for advertising and tracking cookies. Cookies a service needs to work, such as a sign-in session, belong in the privacy policy instead.

Can I use Google Analytics under Law 25?

Yes, after an opt-in. Its _ga cookie lasts two years by default and is used to distinguish users, which can profile behaviour, so load it only after the visitor agrees. Google is a US company, so also consider section 17 for data kept outside Quebec.

Does cookieless analytics need consent under Law 25?

By our reading, not when it keeps no identifier on the device and builds no profile: there is nothing for section 8.1 to activate. It still processes IP addresses, so it goes in your privacy policy (section 8.2), and section 17 applies if the vendor keeps the data outside Quebec.

Does the privacy-by-default rule in section 9.1 apply to cookies?

No. Section 9.1 says it “does not apply to privacy settings for browser cookies”. The off-by-default rule for tracking comes from section 8.1, as the CAI reads it in its 2023 guidelines on consent.

Is an IP address personal information in Quebec?

It can be. Section 2 covers any information that directly or indirectly allows a person to be identified. Treat IP addresses in analytics and logs as personal information, and keep them only as long as you need them.

Analytics without a banner, kept in Montréal.

Every Canner project includes cookieless analytics. Start free.