Install

Shopify

Paste this into theme.liquid, inside <head>, as high as you can.

Steps

  1. In Shopify admin: Online Store → Themes → Edit code, open theme.liquid.
  2. Paste the snippet inside <head>, above any app or pixel scripts, and save. (The CMPStack app embed, once listed, prints both blocks for you.)
  3. Verify the domain in the panel, then publish a banner. Decisions are forwarded to Shopify’s own consent API automatically.

“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.

Other routesPaste the snippetWordPressGoogle Tag ManagerWix