Consent compliance: Global Privacy Control honoured, equal choice by default, withdrawal that stops running tools, consent log on by default

- GPC (gpc.ts): read in the browser before the first paint (consentBannerScript) and in the consent store; pages stay
  static. 'honour' (default): no banner, analytics and marketing off, no request to Google or a pixel; an explicit
  choice on the site wins; a grant made without the signal gives way when it appears. 'ask' and false as opt-outs.
- equalChoice defaults to true; a development warning when the banner has no 'reject'.
- Withdrawal: Meta / TikTok / Clarity told at once, listed localStorage / sessionStorage keys removed.
- Clarity gets consentv2 when it loads; ads_data_redaction with the Consent Mode default.
- consentLog on by default (consentLog: false turns it off); SiteProviders posts to it by itself; a missing SQL table
  answers 503 with one log line.
- Default banner text: one sentence on changing the choice and browser settings; the GPC line (PL / EN).
- Doctor: consent-log-migration, consent-banner rules.
- Stats: Sec-GPC over a choice made without it keeps the visitor id out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 13:38:39 +01:00
co-authored by Claude Opus 5.5
parent 41771fd51a
commit 99036eb70c
31 changed files with 1130 additions and 120 deletions
+6 -8
View File
@@ -157,10 +157,9 @@ settings window, opened from the cookie button, the visitor switches categories
informed choice. In `'ask'` mode "Accept all" works as usual and the record carries `gpc: true`.
**What the visitor sees.** Mode `'honour'`: no banner; the cookie button; in the settings window, above the
categories, one line (PL / EN defaults in code, overridable through `texts`): *"Twoja przeglądarka wysyła sygnał
Global Privacy Control. Analityka i marketing są wyłączone. Możesz je włączyć dla tej witryny poniżej."* / *"Your
browser sends a Global Privacy Control signal. Analytics and marketing are off. You can turn them on for this site
below."* The same line appears in the banner in `'ask'` mode.
categories, one line (PL / EN defaults in code, overridable through `texts`): *"Your browser sends a Global Privacy
Control signal. Analytics and marketing are off. You can turn them on for this site below."* (Polish default in
`getConsentTexts.ts`) The same line appears in the banner in `'ask'` mode.
**What the consent log records.** In 1.17.0 nothing changes in the log's shape (a new field is a column, §6). The
cookie record carries `gpc`; the request to the log may carry it and the endpoint ignores it. A later release that
@@ -250,9 +249,8 @@ class.
**F. Default text** (the fallback used when the panel field is empty). Opt-out: the editor's own text in the panel
always wins.
- Visitor: before → "…You can accept all, reject non-essential, or choose which to allow." After → the same plus:
"You can change your choice at any time with the cookie button, and set cookie rules in your browser too." (PL:
"Wybór można zmienić w każdej chwili przyciskiem cookies, a zasady dla plików cookies ustawić także w
przeglądarce.")
"You can change your choice at any time with the cookie button, and set cookie rules in your browser too." (Polish
default in `getConsentTexts.ts`)
- A site with its own text in the panel keeps it; doctor (deep mode) notes when that text has no such sentence.
- Analytics: none. Schema: none (constants in code, no new panel field).
@@ -487,7 +485,7 @@ sets the crawl's mode too.
- UODO Biuletyn, "Problematyka ochrony danych osobowych a pliki cookies", 2025-03-31:
https://nowybiuletyn.uodo.gov.pl/problematyka-ochrony-danych-osobowych-a-pliki-cookies/
- WSA Warszawa, II SA/Wa 3993/21 (consent through browser settings), as reported:
https://www.prawo.pl/biznes/zgoda-na-cookies-udzielona-przez-ustawienie-przegladarki,512328.html
`https://www.prawo.pl/biznes/zgoda-na-cookies-udzielona-przez-ustawienie-przegladarki,512328.html`
**EU**
- EDPB, Report of the Cookie Banner Taskforce, 2023-01-17: