EventsConsent Management

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.

Define categories that map to your privacy policy:

CategoryDescriptionExample Use
analyticsProduct analytics and usage trackingMixpanel, Amplitude
marketingEmail marketing and campaign trackingBraze, Klaviyo
advertisingAd targeting and retargetingGoogle Ads, Facebook
functionalEssential product functionalityError tracking

Configuration

  1. Navigate to Events > Consent
  2. Define your consent categories
  3. Map each forwarding rule to a consent category
  4. Events are automatically filtered based on 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:

  1. Look up the user’s consent state
  2. For each forwarding rule, check if the user has consented to the rule’s category
  3. Only forward events where consent is granted
  4. Events are still stored in the event warehouse regardless of consent (for audit)

API Reference

See Events API for consent configuration endpoints.