Prompt

How do I debug a CMP that isn't firing in Google Tag Manager?

Technology / Marketing Automation1 observationLast seen Oct 29, 2026

Latest observation

Oct 29, 2026OpenAI APIWeb search: off

Here’s a practical checklist to debug a CMP (Consent Management Platform) that isn’t “firing” in Google Tag Manager.

1) Confirm what “isn’t firing” means

There are usually two different issues:

  • The CMP tag/container isn’t loading at all
  • The CMP loads, but consent isn’t being passed/updated correctly to GTM

Knowing which one it is will narrow the problem fast.


2) Check whether the CMP script is actually loading

Open the page and use browser DevTools:

  • Network tab: filter for your CMP domain/script name
  • Console tab: look for JavaScript errors
  • Elements tab: verify the CMP-related script tag exists

Things to look for:

  • Script blocked by CSP
  • Script blocked by an ad blocker or browser privacy setting
  • 404/403 errors
  • CMP script inserted but failing to initialize

3) Use GTM Preview / Tag Assistant

In GTM Preview mode:

  • Confirm the container is connected to the correct site
  • Check whether the CMP-related tag fires on the expected event
  • Look at the event timeline in the left panel

If the tag doesn’t fire:

  • The trigger may be wrong
  • The tag may be blocked by consent settings
  • The tag may rely on a dataLayer event that never happens

4) Check consent settings in GTM

If your CMP is used to control consent, the CMP integration may be prevented by GTM’s consent system.

In GTM:

  • Go to Tags
  • Open the CMP tag
  • Check Consent Settings
  • See whether the tag requires consent that isn’t granted yet

Common problem:

  • The CMP tag itself is set to require consent before it can load
  • That creates a deadlock because the CMP must run before consent is granted

For CMP initialization tags, you often need them to fire before consent is required or be exempted appropriately.


5) Verify the dataLayer events

Many CMPs communicate with GTM through dataLayer pushes.

Check:

  • Does the CMP push a dataLayer event?
  • Is the event name correct?
  • Is GTM listening for the same event?

Example things to inspect in the browser console:

dataLayer

You can also temporarily log pushes:

window.dataLayer = window.dataLayer || [];
const originalPush = window.dataLayer.push;
window.dataLayer.push = function() {
  console.log('dataLayer push:', arguments);
  return originalPush.apply(this, arguments);
};

If the CMP is supposed to send something like:

dataLayer.push({
  event: 'consent_update'
});

but nothing appears, the issue is likely in the CMP script or its configuration.


6) Confirm trigger conditions

In GTM, open the trigger attached to the CMP tag.

Check:

  • Page URL conditions
  • Event name conditions
  • DOM Ready vs Page View vs Consent Initialization
  • Any exceptions blocking it

For CMPs, a common best practice is to fire on:

  • Consent Initialization trigger if supported
  • Or Initialization trigger, depending on the CMP setup

If it fires too late, other tags may already have executed without consent state.


7) Check tag sequencing or dependencies

If the CMP depends on another script:

  • Make sure the dependency loads first
  • Check for tag sequencing rules
  • Verify no other tags overwrite the consent state

Sometimes another script:

  • Replaces dataLayer
  • Overrides consent defaults
  • Breaks the CMP’s callback

8) Inspect consent mode behavior

If you use Google Consent Mode:

  • Check whether default consent is set correctly
  • Confirm the CMP updates consent after the user interacts
  • Make sure the consent update is sent to GTM/Google tags

In the console, look for consent state behavior if your setup exposes it. Also verify the expected Google tags are honoring consent.


9) Test in a clean environment

Try:

  • Incognito/private window
  • No ad blockers
  • No browser extensions
  • Another browser/device

If it works there, the issue may be:

  • Browser extension blocking the CMP
  • Cached old GTM container
  • Privacy settings

10) Check the CMP vendor documentation

CMPs often have very specific requirements for:

  • Script placement
  • GTM template installation
  • Consent event names
  • Region-specific behavior
  • Required IDs/domains

If you’re using a vendor template from the GTM Gallery, make sure:

  • You entered the correct site ID / domain ID
  • All required fields are filled in
  • You published the container after saving

11) Review container publish status

Sometimes the tag is configured correctly in the workspace but:

  • Not published
  • Published to the wrong environment
  • A newer version was reverted

Check:

  • Workspace changes
  • Versions
  • Environments

12) Common root causes

Here are the most common reasons a CMP doesn’t fire in GTM:

  • Wrong trigger type
  • Consent settings blocking the CMP itself
  • Incorrect CMP site ID / configuration
  • Script blocked by CSP
  • CMP script fails with a JS error
  • DataLayer event name mismatch
  • Tag not published
  • Ad blocker interference
  • Container loaded on the wrong site/domain

Quick debugging flow

If you want the fastest path:

  1. Open GTM Preview
  2. Check whether the CMP tag fires
  3. If not, inspect the trigger and consent settings
  4. Check the browser Console for errors
  5. Check the Network tab for the CMP script
  6. Verify the CMP’s dataLayer event or consent update

If you want, I can also give you:

  • a step-by-step GTM debugging checklist
  • a custom console snippet to inspect consent events
  • or help debug a specific CMP like Cookiebot, OneTrust, Complianz, iubenda, or Didomi

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.