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>
73 lines
2.4 KiB
Markdown
73 lines
2.4 KiB
Markdown
# Project State
|
|
|
|
## Project Reference
|
|
|
|
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 — COMPLETE
|
|
|
|
## Current Position
|
|
|
|
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: [##########] 100%
|
|
- Phase 3: [##########] 100%
|
|
|
|
## Loop Position
|
|
|
|
Current loop state:
|
|
```
|
|
PLAN ──▶ APPLY ──▶ UNIFY
|
|
✓ ✓ ✓ [Loop complete — milestone complete]
|
|
```
|
|
|
|
## Accumulated Context
|
|
|
|
### Codebase Mapped
|
|
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
|
|
- 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: Payload ecommerce budowany w backendzie i serializowany bezpiecznie do widoku.
|
|
- 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 (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
|
|
None.
|
|
|
|
### Blockers/Concerns
|
|
None.
|
|
|
|
### Git State
|
|
Last commit: 86e712b
|
|
Branch: main
|
|
Feature branches merged: none
|
|
|
|
## Session Continuity
|
|
|
|
Last session: 2026-04-26
|
|
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*
|