Vakavuus: KorkeaOmistaja: CMP-ylläpitäjäKorjausaika: 1-2 h
Google Consent Mode -ristiriita
Korjaa tilanteet, joissa Google-tagit käyttäytyvät kuin suostumus olisi annettu, vaikka runtime-tila on denied.
Kattaa: consent_mode_mismatch, consent_mode_default_granted, consent_mode_runtime_conflict
Miksi tämä on tärkeää
Jos Consent Mode signaloi denied, mutta Analytics- tai Ads-pyynnöt latautuvat silti, sivusto luo vain väärän kuvan compliance-tilasta. Yleensä oletukset, tagit tai runtime-päivitykset ovat ristiriitaisesti määriteltyjä.
Näin tarkistat manuaalisesti
- 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.
Tyypilliset syyt
- 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.
Korjaus GTM:ssä
- 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.
Korjaus WordPressissä tai CMP-lisäosissa
- 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.
Yleinen kehittäjäkorjaus
- 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.
Näin varmistat, että korjaus toimii
- 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.
Seuraava vaihe
Aja uusi skannaus käyttöönoton jälkeen varmistaaksesi, että todellinen runtime-käyttäytyminen muuttui eikä vain bannerin teksti.