Smagums: AugstaAtbildīgais: CMP administratorsLaiks labošanai: 1-2 h
Cookies un tracking pirms piekrišanas
Izlabojiet analītikas, mārketinga un trešo pušu skriptus, kas aktivizējas, pirms apmeklētājs ir pieņēmis lēmumu par piekrišanu.
Aptver: pre_consent_analytics_cookie, pre_consent_marketing_cookie, pre_consent_tracker
Kāpēc tas ir svarīgi
Saskaņā ar ePrivacy un GDPR principiem neobligātai glabāšanai un tracking ir nepieciešama piekrišana pirms aktivizēšanas. Analītikas vai mārketinga skriptu ielāde pirms lietotāja izvēles rada tūlītēju atbilstības risku.
Kā to pārbaudīt manuāli
- Open the site in a fresh private browsing window and do not interact with the banner.
- Check the Network panel for analytics, ads, heatmap, chat, or social pixel requests before consent.
- Inspect Application > Cookies and confirm whether non-essential cookies appear pre-consent.
Tipiski cēloņi
- GTM tags fire on page view without consent conditions.
- CMP loads after analytics tags instead of before them.
- Scripts are embedded directly in templates and bypass CMP blocking.
Labojums GTM
- Enable Google Consent Mode v2 with default denied states for ad_storage, analytics_storage, ad_user_data, and ad_personalization.
- Update tag firing rules so analytics and marketing tags only fire when consent state is granted.
- Use consent initialization events before any marketing or analytics trigger paths.
Labojums WordPress vai CMP spraudņos
- Install and configure CookieYes or Complianz with blocking enabled for analytics and marketing categories.
- Map services to categories and verify scripts are blocked pre-consent.
- Clear cache or CDN and retest in an incognito browser session.
Vispārīgs izstrādātāja labojums
- Block third-party script execution until consent is granted.
- Store pending scripts with a consent category marker.
- On consent grant, activate only scripts matching accepted categories.
<script
type="text/plain"
data-consent="analytics"
data-src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX">
</script>Kā apstiprināt, ka labojums darbojas
- Re-run the scan in a fresh session and confirm the finding disappears.
- Verify that no non-essential cookies are set before interaction.
- Verify that analytics and marketing requests only begin after opt-in.
Nākamais solis
Pēc deploy palaidiet jaunu skenēšanu, lai apstiprinātu, ka mainījusies reālā runtime uzvedība, nevis tikai bannera teksts.