feat(03-cookie-consent): integrate CookieNoticePro with Google Consent Mode v2
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>
This commit is contained in:
@@ -2,29 +2,29 @@
|
||||
|
||||
## Project Reference
|
||||
|
||||
See: .paul/PROJECT.md (updated 2026-04-19)
|
||||
See: .paul/PROJECT.md (updated 2026-04-26)
|
||||
|
||||
**Core value:** Uzytkownicy moga szybko i bezpiecznie kupic bilety online oraz otrzymac natychmiastowe potwierdzenie zakupu.
|
||||
**Current focus:** v0.2 Analytics & Privacy — Phase 2 (Purchase Event Pre-Payment) planning
|
||||
**Current focus:** v0.2 Analytics & Privacy — COMPLETE
|
||||
|
||||
## Current Position
|
||||
|
||||
Milestone: v0.2 Analytics & Privacy
|
||||
Phase: 2 of 3 (Purchase Event Pre-Payment) — Planning
|
||||
Plan: 02-01 executed
|
||||
Status: APPLY complete, ready for UNIFY
|
||||
Last activity: 2026-04-26 — Executed 02-01-PLAN.md (2 tasks, 3 files modified)
|
||||
Milestone: v0.2 Analytics & Privacy — COMPLETE
|
||||
Phase: 3 of 3 (Cookie Consent Banner) — Complete
|
||||
Plan: 03-01 complete
|
||||
Status: Milestone complete — ready for next milestone
|
||||
Last activity: 2026-04-26 — Phase 3 complete, v0.2 shipped
|
||||
|
||||
Progress:
|
||||
- Milestone: [░░░░░░░░░░] 0%
|
||||
- Phase 2: [░░░░░░░░░░] 0%
|
||||
- Milestone: [##########] 100%
|
||||
- Phase 3: [##########] 100%
|
||||
|
||||
## Loop Position
|
||||
|
||||
Current loop state:
|
||||
```
|
||||
PLAN --> APPLY --> UNIFY
|
||||
✓ ✓ ○ [APPLY complete, awaiting UNIFY]
|
||||
PLAN ──▶ APPLY ──▶ UNIFY
|
||||
✓ ✓ ✓ [Loop complete — milestone complete]
|
||||
```
|
||||
|
||||
## Accumulated Context
|
||||
@@ -34,34 +34,39 @@ Date: 2026-04-26
|
||||
Documents: `.paul/codebase/` (8 files — stack, architecture, structure, conventions, testing, integrations, concerns, db_schema)
|
||||
|
||||
### GTM Status
|
||||
- GTM-TW9WCD9J już wdrożony w templates/site/layout-logged.php (i layout-unlogged.php)
|
||||
- GTM-TW9WCD9J już wdrożony w templates/site/layout-logged.php
|
||||
- layout-unlogged.php NIE jest renderowany — view/class.Site.php zawsze używa layout-logged.php
|
||||
|
||||
### Decisions
|
||||
- 2026-04-19: Event `purchase` emitowany na `order-confirm`, nie na `przelewy24` (eliminuje falszywe konwersje).
|
||||
- 2026-04-19: Event purchase emitowany na order-confirm, nie na przelewy24 (eliminuje falszywe konwersje).
|
||||
- 2026-04-19: Payload ecommerce budowany w backendzie i serializowany bezpiecznie do widoku.
|
||||
- 2026-04-26: ZMIANA DECYZJI — event purchase przenoszony na `przelewy24` (post-order, pre-payment) aby capturować użytkowników którzy nie wracają po płatności.
|
||||
- 2026-04-26: ZMIANA — event purchase przeniesiony na przelewy24 (post-order, pre-payment). Capturuje 100% zamowien.
|
||||
- 2026-04-26: cookieNoticePro.init() zamiast $.fn.cookieNoticePro() — zgodnie z dokumentacja biblioteki.
|
||||
- 2026-04-26: Consent Mode v2 default-denied inicjalizowany przed GTM snippetem (wymog Google od marca 2024).
|
||||
|
||||
### Cookie Consent Bug
|
||||
- cookienoticepro.script.js ~linia 351: gdy analytics NIE zaakceptowane, kod wywołuje gtag('consent','update',{'analytics_storage':'granted'}) zamiast 'denied'
|
||||
### Cookie Consent (Phase 3 — COMPLETE)
|
||||
- Biblioteka: libraries/CookieNoticePro/ (skopiowana z pomysloweprezenty.pl)
|
||||
- Bug naprawiony: linia ~351 — blok else teraz wysyla analytics_storage: 'denied'
|
||||
- Dodatkowe poprawki: CSS initial hide dla acceptBtnSettingsLabel, Bootstrap 5 compat reset
|
||||
- Consent Mode v2 init PRZED snippetem GTM w layout-logged.php
|
||||
|
||||
### Deferred Issues
|
||||
- Phase 3: Cookie Consent Banner (zaplanowane po Phase 2)
|
||||
None.
|
||||
|
||||
### Blockers/Concerns
|
||||
None yet.
|
||||
None.
|
||||
|
||||
### Git State
|
||||
Last commit: 9de0429
|
||||
Last commit: 86e712b
|
||||
Branch: main
|
||||
Feature branches merged: none
|
||||
|
||||
## Session Continuity
|
||||
|
||||
Last session: 2026-04-26
|
||||
Stopped at: Plan 02-01 created
|
||||
Next action: Review and approve plan, then run /paul:apply .paul/phases/02-purchase-event-prepayment/02-01-PLAN.md
|
||||
Resume file: .paul/phases/02-purchase-event-prepayment/02-01-PLAN.md
|
||||
Stopped at: v0.2 milestone complete
|
||||
Next action: /paul:milestone — zdefiniuj v0.3 lub /paul:complete-milestone
|
||||
Resume file: .paul/ROADMAP.md
|
||||
|
||||
---
|
||||
*STATE.md - Updated after every significant action*
|
||||
|
||||
Reference in New Issue
Block a user