ICREATOR Innovative creations

Consent Mode v2 with GTM (WordPress)

Deploy Consent Mode using GTM in 10 minutes

Consent Mode v2 with GTM (WordPress)

Use this guide if you’re deploying Google Consent Mode v2 using Google Tag Manager (GTM) in a WordPress site. If you’re using ConsentPress, most of the heavy lifting is already done for you — but it’s still important to set up GTM correctly.

1. Enable Consent Mode in Your GTM Container

Consent Mode is not active by default in GTM. You must enable it in your container settings.

2. Set Default Consent in GTM (Optional)

If you’re using ConsentPress, you don’t need to add a Consent Initialization tag — the plugin injects it automatically at the right time. But if you’re not using a CMP that handles this:

3. Add Consent Requirements to Each Tag

Every GTM tag that sets cookies or tracks users must declare which types of consent it depends on.

To configure this in each tag:

  1. Open the tag in GTM
  2. Go to Tag Settings → Consent Settings
  3. Enable “Require additional consent”
  4. Specify the needed keys as listed above

4. CMP → Consent Mode Signals

Your CMP must send consent updates to Google using gtag('consent', 'update', …) when the user accepts or rejects.

ConsentPress handles this automatically. Here’s what the update call might look like:

gtag('consent', 'update', {
  ad_storage: 'granted',
  analytics_storage: 'granted',
  personalization_storage: 'granted'
});

5. Test Your Setup

6. Summary

With ConsentPress, you skip the manual scripts — just configure your GTM tags and you’re fully Consent Mode v2 compliant.