We are currently working on implementing Google Consent Mode v2 using Matomo Tag Manager (self-hosted) combined with Cookiebot as our CMP. The Cookiebot configuration has been validated by their support team — the consent signal is correctly emitted from the start.
The issue we are facing is not on the CMP side, but rather on how Matomo Tag Manager interprets and acts on these consent signals to control Google tags (Google Ads, GA4, etc.).
Unlike Google Tag Manager, which natively supports consent checks through “Additional Consent Checks” and built-in consent type variables, Matomo Tag Manager does not seem to offer an equivalent native mechanism to map CMP consent states to Google tag firing rules.
To summarize the situation:
Cookiebot correctly exposes the consent state (accepted/declined per category)
The challenge is how Matomo Tag Manager should technically consume this signal to ensure compliant firing of Google tags in Advanced Consent Mode v2
We would like to avoid relying solely on custom JavaScript workarounds without knowing if there is an official or recommended approach from the Matomo team.
Our questions:
Does Matomo Tag Manager natively support Google Consent Mode v2, and if so, how?
What is the recommended way to bridge a CMP’s consent signal (e.g. Cookiebot) with Google tag firing in Matomo Tag Manager?
Is there an official template, trigger type, or documentation covering this use case?
Any guidance or pointer to existing documentation would be greatly appreciated.
You’re right Matomo Tag Manager doesn’t currently have native, built-in support for Google Consent Mode v2 like GTM does, so there’s no direct equivalent to “Additional Consent Checks.” The recommended approach is to bridge the consent signal from Cookiebot using custom variables and triggers (e.g., reading Cookiebot.consent or dataLayer events) to conditionally fire your Google tags, while also manually setting default and updated consent states for Google Analytics 4 / Ads via custom scripts. It’s not fully standardized yet, so most implementations rely on controlled custom logic aligned with Google’s Consent Mode v2 requirements until Matomo provides more native support.