01Steps
- Download our template. It saves as
cmpstack-gtm-template.tpl. - In Tag Manager: Templates → Tag Templates → New, then ⋮ → Import, choose the file and Save. It is not in the Community Template Gallery yet, so it is imported rather than searched for.
- Tags → New → Tag Configuration and choose CMPStack Consent Banner. Paste the Site ID, and leave API URL as it is.
- Set its trigger to Consent Initialization – All Pages, so it runs before every other tag in the container, and Save.
- Submit and Publish the container, 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.
02The Consent Mode default
The template sets the Consent Mode default to denied inside the container, before any other tag in it runs, and applies a returning visitor’s choice in the same step — nothing to paste. Fire it on Consent Initialization – All Pages.
Where it cannot reach. Tag Manager cannot run anything before its own container loads, so a Google tag hard-coded on the page outside the container is not covered. If your page has one, install with the snippet instead, above the container code.
It protects Google tags only. Meta, TikTok and other tags read no Consent Mode signal; our tag blocks those itself.