Skip to content

Add shared consent and privacy compliance utilities#548

Open
samkim wants to merge 3 commits intomainfrom
consent-update
Open

Add shared consent and privacy compliance utilities#548
samkim wants to merge 3 commits intomainfrom
consent-update

Conversation

@samkim
Copy link
Copy Markdown
Member

@samkim samkim commented Apr 28, 2026

Summary

  • Add a portable consent module (lib/consent/) copied from authzed/web for reading cookie-based privacy preferences
  • Update analytics initialization to respect visitor consent decisions and regional privacy requirements
  • Guard identify calls behind consent checks to prevent transmitting PII when opted out
  • Remove the @segment/in-eu dependency in favor of built-in timezone-based detection

Test Scenarios

  • Non-EU visitor: analytics loads normally, consent cookie from authzed.com is honored if present
  • EU visitor with no prior consent: analytics starts in privacy-preserving mode
  • EU visitor who accepted on authzed.com: consent cookie is read, analytics loads normally

🤖 Generated with Claude Code

Add a portable consent module for reading cookie-based privacy
preferences across AuthZed properties. Update analytics initialization
to respect visitor consent decisions and regional privacy requirements.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

Preview deployment status for this pull request.

Name Status Preview Updated (UTC)
docs 🟢 Ready Visit Preview Apr 28, 2026 05:55am

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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