Resnost: VisokaOdgovorni: CMP adminČas za popravek: 1-2 h
Neskladje Google Consent Mode
Popravite primere, ko se Google tagi vedejo, kot da je soglasje dano, čeprav runtime stanje kaže denied.
Zajema: consent_mode_mismatch, consent_mode_default_granted, consent_mode_runtime_conflict
Zakaj je to pomembno
Če Consent Mode signalizira denied, vendar se Analytics ali Ads zahtevki vseeno naložijo, stran ustvarja le lažen vtis skladnosti. Običajno so defaults, tagi ali runtime posodobitve nedosledno nastavljeni.
Kako to ročno preveriti
- 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 vzroki
- 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.
Popravek v GTM
- 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.
Popravek v WordPressu ali CMP vtičnikih
- 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.
Splošen developerski popravek
- 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 potrditi, da popravek deluje
- 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.
Naslednji korak
Po deployu zaženite nov pregled, da potrdite, da se je spremenilo dejansko runtime vedenje, ne le besedilo bannerja.