Consent Management
Manage user consent for event collection and forwarding to comply with privacy regulations.
Overview
Consent management lets you define consent categories and automatically filter events based on each user’s consent state. This helps comply with GDPR, CCPA, and other privacy regulations.
Consent Categories
Define categories that map to your privacy policy:
| Category | Description | Example Use |
|---|---|---|
analytics | Product analytics and usage tracking | Mixpanel, Amplitude |
marketing | Email marketing and campaign tracking | Braze, Klaviyo |
advertising | Ad targeting and retargeting | Google Ads, Facebook |
functional | Essential product functionality | Error tracking |
Configuration
- Navigate to Events > Consent
- Define your consent categories
- Map each forwarding rule to a consent category
- Events are automatically filtered based on user consent
Setting User Consent
Include consent state in identify calls:
{
"type": "identify",
"userId": "user_123",
"traits": {
"consent": {
"analytics": true,
"marketing": true,
"advertising": false
}
}
}How Filtering Works
When an event arrives:
- Look up the user’s consent state
- For each forwarding rule, check if the user has consented to the rule’s category
- Only forward events where consent is granted
- Events are still stored in the event warehouse regardless of consent (for audit)
API Reference
See Events API for consent configuration endpoints.