Phase 5 complete: - guard purchase event per transaction in sessionStorage - restore saved consent before GTM and purchase - add centered Przelewy24 countdown redirect
100 lines
3.3 KiB
Markdown
100 lines
3.3 KiB
Markdown
# Roadmap: bilety.brzezovka.pl
|
|
|
|
## Overview
|
|
Projekt obejmuje sprzedaz biletow online, tracking ecommerce oraz zgodnosc cookies/RODO. Aktualna iteracja domyka tracking purchase na stronie Przelewy24: jednorazowe odpalenie eventu, poprawne zgody i automatyczne przekierowanie do platnosci.
|
|
|
|
## Current Milestone
|
|
**v0.4 Purchase Redirect Hardening** (v0.4.0)
|
|
Status: Complete (2026-05-08)
|
|
Phases: 1 of 1 complete
|
|
|
|
## Previous Milestones
|
|
|
|
### v0.3 Cookie Notice Hotfix
|
|
Status: Complete (2026-05-08)
|
|
Phases: 1 of 1 complete
|
|
|
|
### v0.2 Analytics & Privacy
|
|
Status: Complete (2026-04-26)
|
|
Phases: 3 of 3 complete
|
|
|
|
### v0.1 Initial Release
|
|
Status: Complete (2026-04-19)
|
|
Phases: 1 of 1 complete
|
|
|
|
## Phases
|
|
|
|
| Phase | Name | Plans | Status | Completed |
|
|
|-------|------|-------|--------|-----------|
|
|
| 1 | Purchase Data Layer | 1 | Complete | 2026-04-19 |
|
|
| 2 | Purchase Event Pre-Payment | 1 | Complete | 2026-04-26 |
|
|
| 3 | Cookie Consent Banner | 1 | Complete | 2026-04-26 |
|
|
| 4 | Cookie Notice Bugfix | 1 | Complete | 2026-05-08 |
|
|
| 5 | Purchase Redirect Hardening | 1 | Complete | 2026-05-08 |
|
|
|
|
## Phase Details
|
|
|
|
### Phase 1: Purchase Data Layer (v0.1 - Complete)
|
|
|
|
**Goal:** Dodac event purchase do data layer po finalizacji zakupu biletow z kompletnym payloadem.
|
|
**Depends on:** Nothing (first phase)
|
|
|
|
**Plans:**
|
|
- [x] 01-01: Implementacja i walidacja eventu purchase w data layer (UNIFY complete)
|
|
|
|
---
|
|
|
|
### Phase 2: Purchase Event Pre-Payment (Complete)
|
|
|
|
**Goal:** Przeniesc event purchase do momentu przekierowania na bramke platnicza po zlozeniu zamowienia, przed platnoscia Przelewy24.
|
|
**Depends on:** Phase 1
|
|
|
|
**Plans:**
|
|
- [x] 02-01: Przeniesienie eventu purchase na strone przelewy24 (UNIFY complete)
|
|
|
|
---
|
|
|
|
### Phase 3: Cookie Consent Banner (Complete)
|
|
|
|
**Goal:** Wdrozyc baner zgody na cookies (CookieNoticePro) z Google Consent Mode v2 i naprawic blad analityki w bibliotece.
|
|
**Depends on:** Phase 2
|
|
|
|
**Plans:**
|
|
- [x] 03-01: Integracja CookieNoticePro + Consent Mode v2 (UNIFY complete)
|
|
|
|
---
|
|
|
|
### Phase 4: Cookie Notice Bugfix (Complete)
|
|
|
|
**Goal:** Naprawic blad JavaScript `Uncaught ReferenceError: injectScripts is not defined` w CookieNoticePro.
|
|
**Depends on:** Phase 3
|
|
|
|
**Plans:**
|
|
- [x] 04-01: Naprawa undefined `injectScripts` w CookieNoticePro (UNIFY complete)
|
|
|
|
---
|
|
|
|
### Phase 5: Purchase Redirect Hardening
|
|
|
|
**Goal:** Zabezpieczyc `purchase` przed ponownym wywolaniem po odswiezeniu strony Przelewy24 i przywrocic automatyczne przekierowanie do Przelewy24 po 5 sekundach z widocznym odliczaniem.
|
|
**Depends on:** Phase 2 (purchase pre-payment), Phase 3/4 (CookieNoticePro + Consent Mode)
|
|
**Research:** Not needed
|
|
|
|
**Context:**
|
|
- `purchase` jest wypychany w `templates/tickets/przelewy24.php`.
|
|
- Manualny test potwierdzil, ze event uruchamia sie poprawnie po zatrzymaniu auto-submit.
|
|
- Zapisane zgody cookies musza byc przywrocone przed GTM i przed `purchase`.
|
|
- Obecny przycisk byl tylko tymczasowy do testu.
|
|
|
|
**Scope:**
|
|
- Client-side guard w `templates/tickets/przelewy24.php` na bazie `sessionStorage` i `transaction_id`.
|
|
- Komunikat + countdown 5s + automatyczny submit formularza Przelewy24.
|
|
- Zachowanie restore zgody w `templates/site/layout-logged.php`.
|
|
|
|
**Plans:**
|
|
- [x] 05-01: Jednorazowy purchase + redirect countdown do Przelewy24 (UNIFY complete)
|
|
|
|
---
|
|
*Roadmap created: 2026-04-19*
|
|
*Last updated: 2026-05-08 - v0.4 Purchase Redirect Hardening complete*
|