Consent behaviour
Layer: installation and tag orchestration.
Event: cookiepilot_consent_update.
Most important: stub before other tags.
Setup steps
Add the stub before GTM.
Add the CookiePilot tag on Consent Initialization.
Set required consent on vendor tags.
Example snippet
Example snippet
cookiepilot_consent_update
function () {
var consent = window.cookiepilot_consent || {};
return consent.marketing === true;
}Test checklist
Preview shows the CookiePilot tag first.
Consent state starts as denied.
Vendors wait for the consent update.
Related integrations
See the setups that most often appear together with this integration.
Ready to configure it?
Start CookiePilot, choose the right integration and verify that tags wait for user consent before they run.