Gravité: ÉlevéeResponsable: Admin CMPTemps de correction: 1-2 h
Incohérence Google Consent Mode
Corrigez les cas où les tags Google se comportent comme si le consentement était accordé alors que l'état d'exécution indique denied.
Couvre: consent_mode_mismatch, consent_mode_default_granted, consent_mode_runtime_conflict
Pourquoi c'est important
Si Consent Mode signale denied alors que les requêtes Analytics ou Ads partent quand même, le site donne seulement une fausse impression de conformité. Les défauts, tags ou mises à jour runtime sont généralement incohérents.
Comment vérifier manuellement
- 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.
Causes typiques
- 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.
Correction dans 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.
Correction dans WordPress ou les plugins CMP
- 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.
Correction générique côté développeur
- 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.
Comment confirmer que la correction fonctionne
- 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.
Étape suivante
Relancez un scan après déploiement pour confirmer que le comportement réel a changé, et pas seulement le texte de la bannière.