Consent Deep Dive
Junction's consent state machine queues events while consent is pending, then flushes or drops them based on user choice. No data escapes without explicit permission.
Site-wide cookie banner active. The floating consent banner at the bottom of the page manages consent across the entire site. This page is a deep-dive into how the consent state machine works under the hood.
Consent Banner
Queue Visualization
Events stack up while consent is pending
Click Reset to Pending then fire some events to see the queue.
Per-Destination Gating
Each destination declares which consent categories it requires. Events only reach destinations with matching consent grants.
GA4
PendingRequires analytics consent
⏳ Queuing events
Amplitude
PendingRequires analytics consent
⏳ Queuing events
Meta Pixel
PendingRequires marketing consent
⏳ Queuing events
Queue Mode vs Strict GDPR Mode
Normal Mode (Queue)
Events are queued while consent is pending. When the user grants consent, queued events flush through. When denied, they're dropped.
Strict GDPR Mode (Drop)
Pending = denied. No events are queued at all. Only explicitly granted categories receive events. Use for GDPR-strict deployments.
Browser Privacy Signals
Do Not Track (DNT)
When respectDNT: true, Junction treats DNT=1 as marketing + analytics denied.
Global Privacy Control (GPC)
When respectGPC: true, Junction respects the legally binding GPC signal under CCPA/GDPR.