Phase 3 complete: - Copy CookieNoticePro library to libraries/CookieNoticePro/ - Fix bug: analytics_storage sent 'granted' instead of 'denied' on rejection - Add Consent Mode v2 default-denied init before GTM snippet in layout-logged.php - Fix plugin init: cookieNoticePro.init() per library docs - Fix duplicate button label (CSS display:none for acceptBtnSettingsLabel) - Add Bootstrap 5 compatibility reset for banner buttons - Set regulamin link to https://bilety.brzezovka.pl/tickets/regulamin/ v0.2 Analytics & Privacy milestone complete. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
1.3 KiB
Markdown
30 lines
1.3 KiB
Markdown
# 2026-04-26
|
|
|
|
## Co zrobiono
|
|
|
|
- [Phase 2, Plan 01] Przeniesienie eventu purchase dataLayer z order-confirm na stronę przelewy24 (post-order, pre-payment)
|
|
- buildPurchaseDataLayer() wywołany w przelewy24() kontrolera i payload przekazany do szablonu
|
|
- Dodany blok dataLayer.push na początku templates/tickets/przelewy24.php
|
|
- Usunięty blok dataLayer.push z templates/tickets/order-confirm.php
|
|
|
|
## Zmienione pliki
|
|
|
|
- `autoload/controls/class.Tickets.php`
|
|
- `templates/tickets/przelewy24.php`
|
|
- `templates/tickets/order-confirm.php`
|
|
|
|
---
|
|
|
|
- [Phase 3, Plan 01] Wdrożono baner zgody na cookies (CookieNoticePro) z Google Consent Mode v2
|
|
- Skopiowano bibliotekę CookieNoticePro do libraries/CookieNoticePro/
|
|
- Naprawiono błąd biblioteki: analytics_storage wysyłało 'granted' zamiast 'denied' przy odmowie
|
|
- Dodano inicjalizację Consent Mode v2 (default: denied) przed snippetem GTM w layout-logged.php
|
|
- Naprawiono inicjalizację pluginu: cookieNoticePro.init()
|
|
- Naprawiono duplikat tekstu w przycisku (CSS display:none dla acceptBtnSettingsLabel)
|
|
- Zmieniono link regulaminu na https://bilety.brzezovka.pl/tickets/regulamin/
|
|
- Milestone v0.2 Analytics & Privacy — COMPLETE
|
|
|
|
- `libraries/CookieNoticePro/cookienoticepro.script.js`
|
|
- `libraries/CookieNoticePro/cookienoticepro.style.css`
|
|
- `templates/site/layout-logged.php`
|