So geht’s
Schaue dir das Video an, entscheide dich für eine Variante und sieh dir dafür das passende Video-Kapital an:
- Fake Consent Mode: Minute 4:18
- Advanced Consent Mode: Minute 9:09
- Basic Consent Mode: Minute 16:35
- Safe Consent Mode: Minute 19:24
Fake Consent Mode
Integriere diesen Code im <head> Bereich jeder Seite:
<!-- Google Tag Consent Mode V2 (Part 1) --> <script type="text/javascript"> // create dataLayer window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } // set „denied" as default for both ad and analytics storage, as well as ad_user_data and ad_personalization, gtag("consent", "default", { ad_user_data: "denied", ad_personalization: "denied", ad_storage: "denied", analytics_storage: "denied" }); gtag("consent", "update", { ad_user_data: "granted", ad_personalization: "granted", ad_storage: "granted", analytics_storage: "granted" }); // Feuern des consentUpdate Events direkt nach dem consent update gtag('event', 'consentUpdate', { 'event_category': 'consent', 'event_action': 'update', 'event_label': 'user consent updated' }); // Enable ads data redaction by default [optional] gtag("set", "ads_data_redaction", true); </script>