Before: the request runs first
The sample event is requested on page load while the choice is still undecided. Rejecting afterward cannot undo that request.
Open the before examplePrivacy patterns · local demonstration
Compare an optional sample analytics request that runs before a choice with one that waits for an explicit opt-in.
Two implementations
The sample event is requested on page load while the choice is still undecided. Rejecting afterward cannot undo that request.
Open the before exampleNo event is requested on page load. Accept enables a deliberate test action; reject and withdrawal keep future attempts blocked.
Open the after exampleLocal files
These pages use only bundled HTML, CSS, JavaScript, and sample JSON. No third-party scripts, fonts, pixels, or services are loaded.