-
Notifications
You must be signed in to change notification settings - Fork 0
[P-1205] Feature: Added Consent management #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements consent management functionality to allow users to opt out of tracking while continuing to use the SDK. The feature adds blocked address filtering to prevent events from special addresses like zero and dead addresses.
Key changes:
- Adds consent management methods for opting in/out of tracking with persistent cookie storage
- Implements address blocking functionality to filter out events from zero and dead addresses
- Introduces secure hashing utility for privacy-preserving storage keys
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/FormoAnalytics.ts | Adds consent management methods and integrates consent checking into tracking logic |
src/lib/consent.ts | New consent management utilities with project-specific cookie handling |
src/utils/hash.ts | New secure hashing utility for creating short, consistent identifiers |
src/utils/address.ts | Adds isBlockedAddress function to filter out special addresses |
src/lib/event/EventManager.ts | Integrates blocked address checking to prevent events from blocked addresses |
src/constants/base.ts | Defines blocked addresses and consent management constants |
test/utils/address.spec.ts | Comprehensive tests for the new isBlockedAddress functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
🎉 This PR is included in version 1.20.0 🎉 |
No description provided.