# Consent-Auto-Blocking für hellofresh.ch

hellofresh.ch: 24 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
- media.hellofresh.com (*.media.hellofresh.com): Kategorie externe_medien, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="externe_medien" data-src="https://media.hellofresh.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="externe_medien" data-src="https://media.hellofresh.com/..." src="about:blank" title="media.hellofresh.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.externe_medien equals true.
- locale (*.hellofresh.ch): Kategorie komfort, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="komfort" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="komfort" data-src="https://hellofresh.ch/..." src="about:blank" title="locale"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.komfort equals true.
- 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.
- __cf_bm (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="__cf_bm"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- __cf_bm (*.hellofresh.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.com/..." src="about:blank" title="__cf_bm"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- _cfuvid (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="_cfuvid"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- api.fraud0.com (*.api.fraud0.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://api.fraud0.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://api.fraud0.com/..." src="about:blank" title="api.fraud0.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- api.sprig.com (*.api.sprig.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://api.sprig.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://api.sprig.com/..." src="about:blank" title="api.sprig.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- api.statsigcdn.com (*.api.statsigcdn.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://api.statsigcdn.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://api.statsigcdn.com/..." src="about:blank" title="api.statsigcdn.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cdn.contentful.com (*.cdn.contentful.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cdn.contentful.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cdn.contentful.com/..." src="about:blank" title="cdn.contentful.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cdn.hellofresh.com (*.cdn.hellofresh.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cdn.hellofresh.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cdn.hellofresh.com/..." src="about:blank" title="cdn.hellofresh.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cdn.sprig.com (*.cdn.sprig.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cdn.sprig.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cdn.sprig.com/..." src="about:blank" title="cdn.sprig.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cf_clearance (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="cf_clearance"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- cloudflare-dns.com (*.cloudflare-dns.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://cloudflare-dns.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://cloudflare-dns.com/..." src="about:blank" title="cloudflare-dns.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- f0_sid (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="f0_sid"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- f0_uid (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="f0_uid"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hellofresh.com (*.hellofresh.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.com/..." src="about:blank" title="hellofresh.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hf-website-live.s3-eu-west-1.amazonaws.com (*.hf-website-live.s3-eu-west-1.amazonaws.com): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hf-website-live.s3-eu-west-1.amazonaws.com/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hf-website-live.s3-eu-west-1.amazonaws.com/..." src="about:blank" title="hf-website-live.s3-eu-west-1.amazonaws.com"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hf_initial_page (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="hf_initial_page"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hf_landing_page (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="hf_landing_page"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hf_public_id (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="hf_public_id"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hf_ssr_e_plans_config_is_freebie (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="hf_ssr_e_plans_config_is_freebie"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hf_ssr_funnel_drop_off_point (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="hf_ssr_funnel_drop_off_point"></iframe>`
  GTM: Fire only when event equals saferpage_consent_update and consent.unklar equals true.
- hf_system_country (*.hellofresh.ch): Kategorie unklar, Default blocked.
  Script: `<script type="text/plain" data-saferpage-category="unklar" data-src="https://hellofresh.ch/..."></script>`
  Iframe: `<iframe data-saferpage-category="unklar" data-src="https://hellofresh.ch/..." src="about:blank" title="hf_system_country"></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.
