Consent events (Enhanced Consent)
Enhanced consent is the recommended way to track marketing consent events on your website.
Eventsโ
Schema for consent preferences selection event
Schema URI:iglu:com.snowplowanalytics.snowplow/consent_preferences/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
โ | โ | โ |
๐ Example
๐ Schema properties definition
โ How to query the event in the warehouse?
Tracks the load time of Consent Management Platform (CMP) banners.
Schema URI:iglu:com.snowplowanalytics.snowplow/cmp_visible/jsonschema/1-0-0
Web | Mobile | Tracked automatically |
---|---|---|
โ | โ | โ |
๐ Example
๐ Schema properties definition
โ How to query the event in the warehouse?
How to track?โ
To track enhanced consent events using the JavaScript tracker on Web, you can make use of the Enhanced Consent plugin.
Modeled data using the snowplow-web dbt packageโ
To process raw events created by the Snowplow Enhanced Consent plugin we have included an optional module to model consent events in the snowplow-web dbt package.
This custom module consists of a series of dbt models which produce the following aggregated models from the raw consent tracking events:
Derived table | Table description | |
---|---|---|
snowplow_web_consent_log | Snowplow incremental table showing the audit trail of consent and Consent Management Platform (cmp) events | Docs |
snowplow_web_consent_users | Incremental table of user consent tracking stats | Docs |
snowplow_web_consent_totals | Summary of the latest consent status, per consent version | Docs |
snowplow_web_consent_scope_status | Aggregate of current number of users consented to each consent scope | Docs |
snowplow_web_cmp_stats | Used for modeling cmp_visible events and related metrics | Docs |
snowplow_web_consent_versions | Incremental table used to keep track of each consent version and its validity | Docs |
Consent Tracking for Marketing acceleratorโ
Visit the Consent Tracking for Marketing accelerator for an end-to-end tutorial on how to track and model consent data using Snowplow.