Repository navigation
Website: Google Analytics (opt-in), cookie consent, privacy policy - #39
Merged
Merged
Conversation
…olicy Matches the approach used on the NUTS and Helena sites. - Google Analytics 4 (G-NG335XP03E) with a prior-consent model: gtag.js is injected only after the visitor Accepts (or returns with a stored, unexpired 'granted' choice). Reject or no choice means nothing is sent to Google. Production builds only (_includes/analytics.html, gated on jekyll.environment). - Cookie consent banner (_includes/consent.html + assets/js/consent.js): Accept or Reject, a 180-day re-ask, and a footer "Cookie preferences" control to withdraw or change the choice. Uses the site's own button styles. - Privacy and Cookies page (privacy.md, /privacy/) plus a footer Privacy link. Plain-language, GDPR-oriented: controller, what is collected, prior consent, the exact cookies, legal basis, transfers, and how to opt out. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds opt-in Google Analytics, a cookie consent box, and a privacy policy to the Gentastic website, matching the approach on the NUTS and Helena sites.
What this does
G-NG335XP03E) with a prior-consent model.gtag.jsis injected only after the visitor presses Accept (or returns with a stored, unexpiredgrantedchoice). Reject or no choice means nothing is ever loaded or sent to Google. The GA snippet is production-only (gated onjekyll.environment), so local dev builds never load it./privacy/, linked from the footer. Plain-language and GDPR-oriented: data controller, what is collected, the prior-consent model, the exact cookies and retention, legal basis, international transfer, and how to opt out.Notes
maindeploys it live via the Pages workflow, at which point the consent banner appears and analytics can load after consent. Analytics stays fully off until a visitor accepts.🤖 Generated with Claude Code