Skip to content

footer: Privacy and Cookie preferences, linking the blog's policy - #155

Merged
aledbf merged 2 commits into
mainfrom
aledbf/gtm-consent
Nov 25, 2026
Merged

aledbf merged 2 commits into
mainfrom
aledbf/gtm-consent

Conversation

@aledbf

@aledbf aledbf commented Nov 25, 2026 •

Copy link
Copy Markdown
Member
  • Footer: Privacy links https://blog.spinbox.dev/privacy/ (the policy for both sites, aledbf/blog#61), and Cookie preferences (<a data-cc="show-preferencesModal">) opens the banner again. Its href is the privacy page, for readers without JavaScript (Biome refuses #).
  • The banner links the policy too.

Notes for the GTM-N6G9KXJ7 container:

  • Its cookie banner, a Custom HTML tag with vanilla-cookieconsent from jsDelivr, is blocked by this site's hash-based CSP, so it should not fire here.
  • The hostname map says doc.spinbox.dev instead of docs.spinbox.dev.

go tool task lint and GTM_ID=GTM-N6G9KXJ7 go tool task build pass.

🤖 Generated with Claude Code

aledbf and others added 2 commits November 25, 2026 16:21
"Cookies" becomes "Cookie preferences", an <a data-cc="show-preferencesModal"> that opens the
banner, and Privacy links https://blog.spinbox.dev/privacy/, the page for both sites. The banner
links it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Biome's useValidAnchor refuses href="#". Without JavaScript the link opens the page that says what
the cookies are; with it, consent.js cancels the click and opens the banner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf force-pushed the aledbf/gtm-consent branch from 32b6880 to 5cc5bdd Compare November 25, 2026 19:22
@aledbf aledbf changed the title analytics: Google Tag Manager behind a cookie banner, with Privacy and Cookie preferences footer: Privacy and Cookie preferences, linking the blog's policy Nov 25, 2026
@github-actions

Copy link
Copy Markdown

@aledbf
aledbf merged commit e55ae7c into main Nov 25, 2026
1 check passed
@aledbf
aledbf deleted the aledbf/gtm-consent branch November 25, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant