Per-category defaults
analytics runs on first paint; ads and other are gated until the visitor accepts. Mark each script with data-pc-track to opt it into the gate.
PrivacyWatchreads the trackers your scan already collected and emits a single <script> + <noscript> block. The block defaults to opt-in (refuse ads and "other") and uses a same-origin pc_consent_v1 cookie — no third-party consent iframe, no CDN import, no vendor key required.
Paste your URL on the scanner, pick up the result, then click Generate cookie banner at the bottom of the report.
Open the scanneranalytics runs on first paint; ads and other are gated until the visitor accepts. Mark each script with data-pc-track to opt it into the gate.
The snippet patches appendChild / insertBefore so off-by-default scripts stay queued in memory and replay only after the visitor accepts that category.
A single <script> opens window.PrivacyConsent. No fetch() to a third-party service, no CSP script-src exception required.