Advanced

Google Tag Manager integration

Using GTM? Here's how to set up Consentico with your existing tag management workflow.

3 min read

Quick Answer

Add the Consentico CMP template from the GTM Community Gallery, create a tag on Consent Initialization, and you're done. Your existing consent triggers will work automatically.

This guide is for stores that manage all their tracking through Google Tag Manager. If you use Shopify's built-in tracking or the Google & YouTube channel, you don't need this — Consent Mode works automatically.

Setup

How it works

The GTM template:

  1. Listens for Consentico's cookieConsentUpdated event
  2. Translates consent choices into GTM's consent signals
  3. Your existing tags that use consent triggers will fire (or not) based on the visitor's choice

Configuring your tags

For each tracking tag (GA4, Meta Pixel, etc.), set the consent requirements:

  1. Open the tag
  2. Go to Advanced Settings → Consent Settings
  3. Check Require additional consent for tag to fire
  4. Add the relevant consent types:
    • analytics_storage for analytics tags
    • ad_storage for advertising tags

If you've built your own consent management in GTM, you have two options:

Keep your existing consent logic, but use Consentico's banner for the UI.

In Consentico: Settings → Integrations → Google Consent Mode → "Manage GCM elsewhere"

This prevents Consentico from sending its own consent signals (avoiding conflicts with yours).

Remove your custom consent triggers and let Consentico handle everything. This is simpler to maintain.

Debugging

Use GTM's Preview mode to verify:

  1. Click Preview in GTM
  2. Visit your store
  3. Check the Consent tab in the debug panel
  4. Verify consent states change when visitors interact with the banner

Was this page helpful? Let us know