Integrations
Google Tag ManagerGoogle Tag Manager
preset documentationDocumentation

CookiePilot GTM documentation

GTM is the deployment layer. CookiePilot publishes consent updates and GTM rules should start vendors after consent.

Overview

GTM is the deployment layer. CookiePilot publishes consent updates and GTM rules should start vendors after consent.

Layer: installation and tag orchestration.
Event: cookiepilot_consent_update.
Most important: stub before other tags.

Setup steps

  1. 1Add the stub before GTM.
  2. 2Add the CookiePilot tag on Consent Initialization.
  3. 3Set required consent on vendor tags.

Test checklist

  • Preview shows the CookiePilot tag first.
  • Consent state starts as denied.
  • Vendors wait for the consent update.

FAQ

Is this legal advice?

No. It is an implementation guide. For unusual data flows, confirm the setup with your legal or privacy team.

Does CookiePilot block every script automatically?

CookiePilot supports autoblocking and Consent Mode. Trackers hardcoded before the CMP still need to be moved behind the stub or into GTM Consent Initialization.