Pick the Google Tag Manager consent check that fits each tag
Give every Google Tag Manager tag on a TermsFeed Privacy Consent (CMP) site one mechanism: a built-in consent check, a custom trigger on your own event, or a vendor event. Google tags read Google Consent Mode v2 signals and change what they send. Other tags, such as a Meta Pixel or a LinkedIn Insight Tag in a Custom HTML tag, ignore the signals and need a trigger that holds them. The setup takes 5 steps and about 20 minutes for a typical container.
You need Google Consent Mode v2 on the page, from the Google Tag Manager template or from your own code for a custom vendor. Other tags need the tf_consent_update event from Data Layer Events.
How blocking differs from signaling in Google Tag Manager
Blocking stops a tag from running, while signaling lets the tag run and tells it what the visitor chose. A Privacy Consent vendor holds a script until consent, and a trigger condition holds a tag inside the container. A Google tag that runs with analytics_storage denied sends cookieless pings instead of staying silent.
The result for a visitor who declines depends on the mechanism, so decide per tag which result you need. Check what stays outside the control of Privacy Consent in Blocking Limits.
| Mechanism | Where you set it | What a visitor who declines gets |
|---|---|---|
| Privacy Consent vendor | "Vendors" in the TermsFeed app | The on-accept vendor tag never loads |
Custom trigger on tf_consent_update |
Triggers in Google Tag Manager | The tag never fires |
| Built-in consent check with the template signals | The Google Tag Manager template, read by Google tags | The Google tag fires and sends cookieless pings |
Why each tag takes one consent mechanism
Hold each tag with one mechanism, because a second one adds a condition or a route around the first. A tag with a custom trigger and "Require additional consent for tag to fire" waits for both. A tag on a vendor event trigger and on All Pages fires before consent. Choose from what each kind of tag reads.
| Tag | Mechanism |
|---|---|
| Google tag, Google Analytics 4 event, Google Ads, Floodlight, Conversion Linker | The built-in consent check alone, with the template signals |
| Custom HTML or template tags from other companies (Meta Pixel, LinkedIn Insight Tag, TikTok Pixel) | A custom trigger on tf_consent_update, or a vendor event |
| A tag the visitor switches on per tool in the Preferences Center | A vendor event |
Step 1: Open the consent overview in Google Tag Manager
Open Tags and click the shield icon to open the Consent Overview, which lists tags with consent configured and tags without it. Where the icon is missing, open Admin, then Container Settings, and tick "Enable consent overview".
Step 2: Set the consent settings of each Google tag
Open each Google tag, go to Advanced Settings, then Consent Settings, and keep "Not set" or choose "No additional consent required". Google Analytics, Google Ads, and Floodlight tags carry built-in consent checks that read the signals, according to Google Tag Manager Help, and the template sends those signals. Keep these tags on All Pages: they run before any answer and send cookieless pings until the visitor accepts.
A container in a custom vendor loads only after consent, and Privacy Consent does not send it signals, so it needs your own code. Compare the 2 setups in Set Up Google Consent Mode v2.
Step 3: Hold every other tag with a custom trigger on tf_consent_update
Create a Custom Event trigger with the Event name tf_consent_update, select Some Custom Events, and add the condition DLV - tf_consent_advertising equals granted for an advertising tag. Attach it to the tag, remove All Pages, and choose Once per page under Tag firing options.
Do not use "Require additional consent for tag to fire" as the hold on these tags. The tag fires only if every listed consent type is granted when the tag is triggered, according to Google Tag Manager Help. A tag triggered on All Pages before the visitor answers therefore stays silent for that whole page view.
Step 4: Leave the "Consent Initialization" trigger out of the template setup
Do not add a tag on the Consent Initialization - All Pages trigger with a container from the template, because Privacy Consent sends the defaults before the container loads. A second source of defaults writes its own commands to the same data layer, and the 2 sources then disagree. Your own code for a custom vendor sets its defaults in the head, so it needs no such tag either.
Never put the Privacy Consent snippet on this trigger or any other. Read why in Use Google Tag Manager.
Step 5: Test each consent check in "Preview" mode and the Network tab
Run each visit in a new private window, and close every private window before the next one, because private windows share storage while any of them stays open. These results assume the template setup and a visit that shows the consent banner.
- Sign in to Google Tag Manager in a new private window, click Preview, and enter your site address. On the Container Loaded event, the Consent tab shows the On-page Default column as
deniedforad_storageandanalytics_storage. - Open Chrome DevTools on your site, select the Network tab, and type
google-analytics.comin the filter box. A Google Analytics 4 request carriesgcs=G100, which means both storage types are denied. Filter forfacebook.com/tr, and a Meta Pixel held by a custom trigger does not send a request. - Click I Agree. The On-page Update column shows
grantedon the Consent tab, the held tags move to Tags Fired, and the next Google Analytics 4 request carriesgcs=G111. - Close every private window, repeat step 1, and click I Decline. The
gcsvalue staysG100, the held tags stay under Tags Not Fired, and the filterfacebook.com/trlists nothing.
A gcs value that stays G100 after I Agree means the update never reached Google. Find each cause with Consent Mode Stays Denied.