Install
Paste the snippet
Paste this into the <head> of every page you want the banner on.
Steps
- Copy the snippet. In the panel it already carries this domain’s Site ID.
- Paste it into the
<head>of every page you want the banner on, as early as you can — above every Google tag. - Verify the domain in the panel, then publish a banner for it.
“The Site ID” is your domain’s identifier, shown under Domains → Install tag in the panel.
Snippet
The default, then the tag
<script>
window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}
gtag('consent','default',{ad_storage:'denied',ad_user_data:'denied',ad_personalization:'denied',analytics_storage:'denied',wait_for_update:500});
</script>
<script async src="https://cdn.cmpstack.io/cmpstack.js" data-site="YOUR-SITE-ID" data-api="https://api.cmpstack.io"></script>Replace YOUR-SITE-ID with your Site ID, or copy the snippet from the panel, where it is already filled in.
Two blocks, in this order
The first block sets Google Consent Mode to denied before anything loads — so if our tag ever cannot be fetched, your Google tags stay off rather than firing as if no banner existed.
Paste the default, then the tag, as early in <head> as you can — above every Google tag.
It protects Google tags only. Meta, TikTok and other tags read no Consent Mode signal; our tag blocks those itself.
Other routesWordPressGoogle Tag ManagerShopifyWix