Skip to content
next-story
Menu

Feature

Consent signal

One boolean the host site controls, with an opt-in mode.

The host site sets a consent flag and dispatches a next-story:consent event when it changes. Withdrawing consent deletes the library's cookies and purges the queue.

By default an unset flag does not block recording. Set requireConsent: true and nothing is recorded until the flag is true. Each batch carries the flag, and each session summary records what share of its batches had consent.