Konfigurierbares Kategorie-Mapping für Consent Mode #24

Closed
opened 2026-11-09 17:39:09 +00:00 by csaeum · 0 comments
Owner

Ziel

Festlegen, welche Consent-Kategorie welchen Google-Consent-Parameter setzt.

Umfang

  • Bundle-Konfiguration (Configuration) mit sinnvollem Default-Mapping über die Kategorie-Keys
  • Dokumentation in docs/consent-mode.md

Herkunft

Mapping-Teil aus Configuration von wsc_sulubundle_consentanalytics.

Akzeptanzkriterien

  • Geändertes Mapping wirkt im Frontend — Beleg 2026-11-10 im DDEV-Browser: temporäre Projekt-Konfiguration consent_mode.mapping.analytics: [analytics_storage, ad_user_data] und wsc_consent_head() im Test-Template. data-mapping am Script enthält das geänderte Mapping (andere Kategorien weiter Default). Nach CookieConsent.acceptCategory(['necessary','analytics']) sendet das Frontend consent update mit analytics_storage: granted und ad_user_data: granted, ad_storage/ad_personalization bleiben denied. Konfiguration und Template danach wieder entfernt.
  • Ungültige Keys werden beim Container-Build abgelehnt
  • Extension-Test grün
## Ziel Festlegen, welche Consent-Kategorie welchen Google-Consent-Parameter setzt. ## Umfang - Bundle-Konfiguration (`Configuration`) mit sinnvollem Default-Mapping über die Kategorie-Keys - Dokumentation in `docs/consent-mode.md` ## Herkunft Mapping-Teil aus `Configuration` von `wsc_sulubundle_consentanalytics`. ## Akzeptanzkriterien - [x] Geändertes Mapping wirkt im Frontend — Beleg 2026-11-10 im DDEV-Browser: temporäre Projekt-Konfiguration `consent_mode.mapping.analytics: [analytics_storage, ad_user_data]` und `wsc_consent_head()` im Test-Template. `data-mapping` am Script enthält das geänderte Mapping (andere Kategorien weiter Default). Nach `CookieConsent.acceptCategory(['necessary','analytics'])` sendet das Frontend `consent update` mit `analytics_storage: granted` und `ad_user_data: granted`, `ad_storage`/`ad_personalization` bleiben `denied`. Konfiguration und Template danach wieder entfernt. - [x] Ungültige Keys werden beim Container-Build abgelehnt - [x] Extension-Test grün
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Sulu-Bundles/wsc_sulubundle_orestbidacookieconsent#24
No description provided.