Skip to content

feat(dashboard): link privacy policy from the analytics notice - #198

Merged
bryangingechen merged 1 commit into
masterfrom
feat/analytics-privacy-policy-link
Aug 31, 2026
Merged

feat(dashboard): link privacy policy from the analytics notice#198
bryangingechen merged 1 commit into
masterfrom
feat/analytics-privacy-policy-link

Conversation

@bryangingechen

@bryangingechen bryangingechen commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

The analytics notice injected into every generated dashboard page (added in
#149) carried only the one-line summary.

docs/design-decisions/031-analytics-ingestion-design.md already anticipates
this: under the cautious reading that visitor_month_hash is pseudonymous
personal data, GDPR Art. 13 expects visitors to be able to find information
about the processing, and the CNIL guidance expects the site's privacy policy
to describe the measurement even for consent-exempt analytics. A footer notice
alone satisfies the letter of that; a linked policy is the stronger posture.

The footer notice on every generated page becomes:

This page collects anonymous visit counts for usage reporting (no cookies, no
IP addresses stored). See the Mathlib Initiative privacy
policy
.

🤖 Generated with Claude Code

The injected notice previously carried only the one-line summary. Under the
cautious reading that visitor_month_hash is pseudonymous personal data, GDPR
Art. 13 expects visitors to be able to find the full disclosure, and CNIL
guidance expects the site's privacy policy to describe the measurement even
for consent-exempt analytics.

The URL is a named constant so the next site reusing this snippet has one
place to point at its own controller's policy. No styling was needed: style.css
unsets link styling and underlines links outside headings and tables, so the
anchor inherits the notice's muted grey, and the page header's
<base target="_blank"> already opens it in a new tab.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bryangingechen
bryangingechen merged commit 42a47b1 into master Aug 31, 2026
4 checks passed
@bryangingechen
bryangingechen deleted the feat/analytics-privacy-policy-link branch August 31, 2026 16:04
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