Ozbiljnost: VisokaVlasnik: CMP adminVrijeme za ispravak: 1-2 h
Nesklad u Google Consent Mode
Ispravite slučajeve u kojima se Google tagovi ponašaju kao da je privola dana iako runtime stanje pokazuje denied.
Obuhvaća: consent_mode_mismatch, consent_mode_default_granted, consent_mode_runtime_conflict
Zašto je ovo važno
Ako Consent Mode signalizira denied, a Analytics ili Ads zahtjevi se ipak učitavaju, stranica samo stvara lažan dojam usklađenosti. Obično su defaults, tagovi ili runtime updateovi nedosljedno konfigurirani.
Kako to ručno provjeriti
- Open the site in a fresh session and inspect Google requests before any banner interaction.
- Check whether Consent Mode defaults are set to denied before Google tags initialize.
- Compare runtime consent state against actual network behavior after Accept and Reject.
Tipični uzroci
- Consent defaults are set too late, after Google tags already loaded.
- GTM tags ignore consent checks even though Consent Mode is enabled.
- Banner updates UI state but does not send a matching consent update to Google.
Ispravak u GTM-u
- Use Consent Initialization for your default denied state before any analytics or ads tags run.
- Require consent checks on GA4, Google Ads, Floodlight, and remarketing tags.
- Audit custom HTML tags that may load Google scripts outside GTM consent controls.
Ispravak u WordPressu ili CMP dodacima
- Enable Consent Mode integration in your CMP plugin if available.
- Verify that plugin-generated consent events fire before GA4 or Ads plugins load.
- Disable duplicate analytics plugins that bypass the CMP integration.
Opći developerski ispravak
- Initialize Google tags only after a denied-by-default consent state is established.
- Send explicit consent updates on accept and reject actions.
- Ensure fallback defaults are denied whenever consent state is unknown.
Kako potvrditi da ispravak radi
- Reject optional consent and confirm that Google analytics or ads requests do not fire.
- Accept consent and confirm requests start only after the consent update.
- Run a fresh scan and verify the mismatch finding disappears.
Sljedeći korak
Pokrenite novo skeniranje nakon deploya kako biste potvrdili da se promijenilo stvarno runtime ponašanje, a ne samo tekst bannera.