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:
co-authored by
Claude Opus 5.5
parent
41771fd51a
commit
99036eb70c
+8
-1
@@ -79,6 +79,7 @@ export {
|
||||
CONSENT_COOKIE,
|
||||
CONSENT_FALLBACK,
|
||||
CONSENT_FALLBACK_PL,
|
||||
CONSENT_LOG_PATH,
|
||||
CONSENT_LOG_SLUG,
|
||||
CONSENT_MAX_AGE,
|
||||
CONSENT_VERSION,
|
||||
@@ -88,14 +89,20 @@ export {
|
||||
DEFAULT_CONSENT,
|
||||
getConsentTexts,
|
||||
getCookieTable,
|
||||
GPC_CATEGORIES,
|
||||
GPC_HEADER,
|
||||
gpcFromHeaders,
|
||||
gpcFromNavigator,
|
||||
gpcWellKnown,
|
||||
parseConsent,
|
||||
readConsentRecord,
|
||||
REJECT_ALL_CONSENT,
|
||||
resolveConsent,
|
||||
serializeConsent,
|
||||
setDefaultConsent,
|
||||
updateConsent,
|
||||
} from './modules/consent/index.js'
|
||||
export type { ConsentBannerScriptOptions, ConsentCategory, ConsentLogOptions, ConsentState, ConsentStorage, ConsentTexts, CookieTableRow } from './modules/consent/index.js'
|
||||
export type { ConsentBannerScriptOptions, ConsentCategory, ConsentLogOptions, ConsentState, ConsentStorage, ConsentTexts, CookieTableRow, GpcMode, ResolvedConsent } from './modules/consent/index.js'
|
||||
// Cookie scanner — review list, scan, declarations, Open Cookie Database lookup (docs/cookie-scanner.md).
|
||||
export {
|
||||
addCookieScannerTabs,
|
||||
|
||||
Reference in New Issue
Block a user