Consent Management Test

Testing data-require-consent + grantConsent/revokeConsent

How to test

  1. Page loads with data-require-consent="true" — events are buffered
  2. Click "Accept Tracking" in the banner below — buffer flushes, $consent event fires
  3. Click buttons to send more events — they go through normally
  4. Click "Revoke Consent" — tracking stops, buffer cleared
  5. Check data with npx @agent-analytics/cli events agentanalytics-landing --event '$consent' --days 1

Consent Status

localStorage: no prior consent

Event Log

— Waiting for events...