# Consent-Auto-Blocking für dmax-shop.de

dmax-shop.de: 40 Auto-Blocking-Regel(n) für Skripte, Iframes und Tag-Manager-Trigger aus SaferPage-Dienstsignalen.

> Auto-Blocking-Regeln sind Betreiber-Vorlagen. Produktivbetrieb braucht CMP-Freigabe, Tests je Consent-Zustand, CSP-/Tag-Manager-Abgleich und fachliche Freigabe.

## Regeln
- Google Tag Manager (*.googletagmanager.com): Kategorie marketing, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="marketing" data-src="https://googletagmanager.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="marketing" data-src="https://googletagmanager.com/..." src="about:blank" title="Google Tag Manager"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.marketing equals true.
- Meta/Facebook (*.connect.facebook.net): Kategorie marketing, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="marketing" data-src="https://connect.facebook.net/..."></script>`
  Iframe: `<iframe data-saferpage-category="marketing" data-src="https://connect.facebook.net/..." src="about:blank" title="Meta/Facebook"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.marketing equals true.
- _shopify_marketing (*.dmax-shop.de): Kategorie marketing, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="marketing" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="marketing" data-src="https://dmax-shop.de/..." src="about:blank" title="_shopify_marketing"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.marketing equals true.
- guest_id_ads (*.twitter.com): Kategorie marketing, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="marketing" data-src="https://twitter.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="marketing" data-src="https://twitter.com/..." src="about:blank" title="guest_id_ads"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.marketing equals true.
- guest_id_marketing (*.twitter.com): Kategorie marketing, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="marketing" data-src="https://twitter.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="marketing" data-src="https://twitter.com/..." src="about:blank" title="guest_id_marketing"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.marketing equals true.
- muc_ads (*.t.co): Kategorie marketing, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="marketing" data-src="https://t.co/..."></script>`
  Iframe: `<iframe data-saferpage-category="marketing" data-src="https://t.co/..." src="about:blank" title="muc_ads"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.marketing equals true.
- X/Twitter (*.analytics.twitter.com): Kategorie statistik, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="statistik" data-src="https://analytics.twitter.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="statistik" data-src="https://analytics.twitter.com/..." src="about:blank" title="X/Twitter"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.statistik equals true.
- _ga (*.dmax-shop.de): Kategorie statistik, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="statistik" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="statistik" data-src="https://dmax-shop.de/..." src="about:blank" title="_ga"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.statistik equals true.
- _ga_GS9GXNY83J (*.dmax-shop.de): Kategorie statistik, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="statistik" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="statistik" data-src="https://dmax-shop.de/..." src="about:blank" title="_ga_GS9GXNY83J"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.statistik equals true.
- _shopify_analytics (*.dmax-shop.de): Kategorie statistik, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="statistik" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="statistik" data-src="https://dmax-shop.de/..." src="about:blank" title="_shopify_analytics"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.statistik equals true.
- 2602558468.dmax-shop.de (*.2602558468.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://2602558468.dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://2602558468.dmax-shop.de/..." src="about:blank" title="2602558468.dmax-shop.de"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- Cloudflare (*.cdnjs.cloudflare.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cdnjs.cloudflare.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cdnjs.cloudflare.com/..." src="about:blank" title="Cloudflare"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- Cloudflare (*.cloudflare.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cloudflare.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cloudflare.com/..." src="about:blank" title="Cloudflare"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- __cf_bm (*.cdn.506.io): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cdn.506.io/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cdn.506.io/..." src="about:blank" title="__cf_bm"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- __cf_bm (*.t.co): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://t.co/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://t.co/..." src="about:blank" title="__cf_bm"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- __cf_bm (*.twitter.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://twitter.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://twitter.com/..." src="about:blank" title="__cf_bm"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- _shop_app_essential (*.shop.app): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://shop.app/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://shop.app/..." src="about:blank" title="_shop_app_essential"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- _shopify_essential (*.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.de/..." src="about:blank" title="_shopify_essential"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- _shopify_s (*.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.de/..." src="about:blank" title="_shopify_s"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- _shopify_y (*.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.de/..." src="about:blank" title="_shopify_y"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- _twpid (*.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.de/..." src="about:blank" title="_twpid"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cart_currency (*.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.de/..." src="about:blank" title="cart_currency"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cdn.nitroapps.co (*.cdn.nitroapps.co): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cdn.nitroapps.co/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cdn.nitroapps.co/..." src="about:blank" title="cdn.nitroapps.co"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cdn.shopify.com (*.cdn.shopify.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cdn.shopify.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cdn.shopify.com/..." src="about:blank" title="cdn.shopify.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- dmax-shop.myshopify.com (*.dmax-shop.myshopify.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.myshopify.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.myshopify.com/..." src="about:blank" title="dmax-shop.myshopify.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- guest_id (*.twitter.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://twitter.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://twitter.com/..." src="about:blank" title="guest_id"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- loc2.thapi.workers.dev (*.loc2.thapi.workers.dev): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://loc2.thapi.workers.dev/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://loc2.thapi.workers.dev/..." src="about:blank" title="loc2.thapi.workers.dev"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- localization (*.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.de/..." src="about:blank" title="localization"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- monorail-edge.shopifysvc.com (*.monorail-edge.shopifysvc.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://monorail-edge.shopifysvc.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://monorail-edge.shopifysvc.com/..." src="about:blank" title="monorail-edge.shopifysvc.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- otlp-http-production.shopifysvc.com (*.otlp-http-production.shopifysvc.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://otlp-http-production.shopifysvc.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://otlp-http-production.shopifysvc.com/..." src="about:blank" title="otlp-http-production.shopifysvc.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- personalization_id (*.twitter.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://twitter.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://twitter.com/..." src="about:blank" title="personalization_id"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- raw.githubusercontent.com (*.raw.githubusercontent.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://raw.githubusercontent.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://raw.githubusercontent.com/..." src="about:blank" title="raw.githubusercontent.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- shop.app (*.shop.app): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://shop.app/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://shop.app/..." src="about:blank" title="shop.app"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- shopify_client_id (*.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://dmax-shop.de/..." src="about:blank" title="shopify_client_id"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- static-tracking.klaviyo.com (*.static-tracking.klaviyo.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://static-tracking.klaviyo.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://static-tracking.klaviyo.com/..." src="about:blank" title="static-tracking.klaviyo.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- static.growave.io (*.static.growave.io): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://static.growave.io/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://static.growave.io/..." src="about:blank" title="static.growave.io"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- static.klaviyo.com (*.static.klaviyo.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://static.klaviyo.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://static.klaviyo.com/..." src="about:blank" title="static.klaviyo.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- t.co (*.t.co): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://t.co/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://t.co/..." src="about:blank" title="t.co"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- tr.outbrain.com (*.tr.outbrain.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://tr.outbrain.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://tr.outbrain.com/..." src="about:blank" title="tr.outbrain.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- tralut.dmax-shop.de (*.tralut.dmax-shop.de): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://tralut.dmax-shop.de/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://tralut.dmax-shop.de/..." src="about:blank" title="tralut.dmax-shop.de"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.

## Loader Snippet

```js
window.addEventListener('saferpage-consent-update', function(event) {
  var consent = event.detail || {};
  document.querySelectorAll('script[type="text/plain"][data-saferpage-category][data-src]').forEach(function(node) {
    var category = node.getAttribute('data-saferpage-category');
    if (!consent[category] || node.getAttribute('data-saferpage-loaded') === 'true') return;
    var script = document.createElement('script');
    Array.prototype.slice.call(node.attributes).forEach(function(attr) {
      if (attr.name === 'type' || attr.name === 'data-src' || attr.name === 'data-saferpage-category') return;
      script.setAttribute(attr.name, attr.value);
    });
    script.src = node.getAttribute('data-src');
    script.async = true;
    node.setAttribute('data-saferpage-loaded', 'true');
    node.parentNode.insertBefore(script, node.nextSibling);
  });
  document.querySelectorAll('iframe[data-saferpage-category][data-src]').forEach(function(node) {
    var category = node.getAttribute('data-saferpage-category');
    if (!consent[category] || node.src === node.getAttribute('data-src')) return;
    node.src = node.getAttribute('data-src');
  });
});
```

## GTM Setup
- 1. Consent Initialization: Default Consent Mode vor allen Marketing-/Analytics-Tags auf denied setzen.
- 2. Tag Trigger prüfen: Jeder nicht notwendige Tag braucht Kategoriebedingung aus saferpage_consent_update.
- 3. Unklassifizierte Tags blockieren: Neue oder unbekannte Dienste bleiben aus, bis Kategorie, Zweck und Rechtsgrundlage freigegeben sind.
- 4. Reject/GPC testen: Nach Ablehnen und GPC dürfen keine Marketing-/Analytics-/Embed-Tags nachladen.

## Placeholder
- visual_embeds: Videos, Karten, Captchas und Social Widgets mit Platzhalter anzeigen und erst nach Kategorie-Freigabe laden.
- copy: Dieser externe Inhalt ist blockiert, bis Sie die passende Datenschutz-Kategorie aktivieren.
- preview_limit: Keine externen Preview-Bilder laden, wenn diese bereits Drittanbieter-Kontakte auslösen.
