Consent Control gives the user full control before loading various assets, analytic tools or external services like Embedded Videos, Maps,...
Place a button with .consent-control--open on privacy page
Just use data-src instead
Could be Google Maps too
Mark any tag type="text/plain" data-consent="analytics" — it stays inert until the category is granted, then runs automatically.
Inline script: ⏸ blocked until “Analytics” is granted
Kept in sync via the consent-updated window event.
Granted: —
This demo also uses the categories/children vocabulary, an opt-in
“reject all” button (rejectButton: true), a config-driven
analytics service (declarative scripts + inlineScript instead of a callback),
and consent versioning. Reopen the banner and toggle Analytics to see it all react.
Include consentcontrol.bootstrap.css to make use of the nice switches, or style them as you like