Live demo

Crumb

Tweak the config below and click Apply & reset. The widget will reload with your settings. Open DevTools to watch the crumb:update events and the Google Consent Mode gtag('consent', …) calls in window.dataLayer.

Configure

Install snippet (drop into your site)

Blocked scripts (these only run after consent)

<script type="text/plain" data-consent="analytics"
        src="https://www.googletagmanager.com/gtag/js?id=G-DEMO"></script>

<script type="text/plain" data-consent="advertising">
  console.log("Meta Pixel would fire now — user opted into advertising.");
</script>

The page below contains these inert tags. They become real scripts only when the matching category is accepted. Watch the console.