Mine sisu juurde
Tõsidus: KõrgeVastutaja: CMP administraatorParandamise aeg: 1-2 h

Google Consent Mode'i lahknevus

Parandage juhud, kus Google tagid käituvad nii, nagu oleks nõusolek antud, kuigi runtime olek näitab denied.

Katab: consent_mode_mismatch, consent_mode_default_granted, consent_mode_runtime_conflict

Miks see on oluline

Kui Consent Mode signaliseerib denied, aga Analyticsi või Ads'i päringud laadivad siiski, tekitab sait vaid vale mulje vastavusest. Tavaliselt on defaults, tagid või runtime uuendused vastuoluliselt seadistatud.

Kuidas seda käsitsi kontrollida

  1. Open the site in a fresh session and inspect Google requests before any banner interaction.
  2. Check whether Consent Mode defaults are set to denied before Google tags initialize.
  3. Compare runtime consent state against actual network behavior after Accept and Reject.

Tüüpilised põhjused

  • 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.

Parandus GTM-is

  1. Use Consent Initialization for your default denied state before any analytics or ads tags run.
  2. Require consent checks on GA4, Google Ads, Floodlight, and remarketing tags.
  3. Audit custom HTML tags that may load Google scripts outside GTM consent controls.

Parandus WordPressis või CMP pluginates

  1. Enable Consent Mode integration in your CMP plugin if available.
  2. Verify that plugin-generated consent events fire before GA4 or Ads plugins load.
  3. Disable duplicate analytics plugins that bypass the CMP integration.

Üldine arendaja parandus

  1. Initialize Google tags only after a denied-by-default consent state is established.
  2. Send explicit consent updates on accept and reject actions.
  3. Ensure fallback defaults are denied whenever consent state is unknown.

Kuidas kinnitada, et parandus töötab

  • 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.

Järgmine samm

Pärast deploy'd käivitage uus skannimine, et kinnitada, et muutus tegelik runtime käitumine, mitte ainult bänneri tekst.

Google Consent Mode'i lahknevus — GDPR Fix Guide