dirango

Privacy patterns · local demonstration

A banner does not control a request by itself.

Compare an optional sample analytics request that runs before a choice with one that waits for an explicit opt-in.

Two implementations

See what happens to the request

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 example

After: opt-in gates the request

No event is requested on page load. Accept enables a deliberate test action; reject and withdrawal keep future attempts blocked.

Open the after example

Local files

Read the demo notes and code

These pages use only bundled HTML, CSS, JavaScript, and sample JSON. No third-party scripts, fonts, pixels, or services are loaded.