Files
bilety.brzezovka.pl/.paul/STATE.md
Jacek Pyziak 86e712ba4f feat(02-purchase-event-prepayment): move purchase event to przelewy24 pre-payment page
Phase 2 complete:
- buildPurchaseDataLayer() called in przelewy24() controller, payload passed to template
- dataLayer.push added to templates/tickets/przelewy24.php (fires at order commitment)
- dataLayer.push removed from templates/tickets/order-confirm.php
- Captures 100% of orders regardless of user returning from payment gateway

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 22:29:54 +02:00

68 lines
2.2 KiB
Markdown

# Project State
## Project Reference
See: .paul/PROJECT.md (updated 2026-04-19)
**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 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)
Progress:
- Milestone: [░░░░░░░░░░] 0%
- Phase 2: [░░░░░░░░░░] 0%
## Loop Position
Current loop state:
```
PLAN --> APPLY --> UNIFY
✓ ✓ ○ [APPLY complete, awaiting UNIFY]
```
## 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 (i layout-unlogged.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 DECYZJI — event purchase przenoszony na `przelewy24` (post-order, pre-payment) aby capturować użytkowników którzy nie wracają po płatności.
### Cookie Consent Bug
- cookienoticepro.script.js ~linia 351: gdy analytics NIE zaakceptowane, kod wywołuje gtag('consent','update',{'analytics_storage':'granted'}) zamiast 'denied'
### Deferred Issues
- Phase 3: Cookie Consent Banner (zaplanowane po Phase 2)
### Blockers/Concerns
None yet.
### Git State
Last commit: 9de0429
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
---
*STATE.md - Updated after every significant action*