Phase 4 complete: - remove undefined injectScripts calls from CookieNoticePro - preserve Consent Mode v2 and GTM integration - add PAUL plan, summary, and changelog
107 lines
3.6 KiB
Markdown
107 lines
3.6 KiB
Markdown
# Roadmap: bilety.brzezovka.pl
|
|
|
|
## Overview
|
|
Projekt obejmuje sprzedaz biletow online, tracking ecommerce oraz zgodnosc cookies/RODO. Ostatnia iteracja to hotfix banera cookies po wykryciu bledu JavaScript w CookieNoticePro.
|
|
|
|
## Current Milestone
|
|
**v0.3 Cookie Notice Hotfix** (v0.3.0)
|
|
Status: Complete (2026-05-08)
|
|
Phases: 1 of 1 complete
|
|
|
|
## Previous Milestones
|
|
|
|
### 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 |
|
|
|
|
## 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 (purchase payload builder already implemented)
|
|
**Research:** Not needed
|
|
|
|
**Context:**
|
|
- GTM (GTM-TW9WCD9J) jest wdrozony w `templates/site/layout-logged.php`.
|
|
- Event purchase zostal przeniesiony na strone `przelewy24`.
|
|
- Strona `przelewy24.php` auto-submits formularz, wiec tracking korzysta z beacon transport.
|
|
|
|
**Scope:**
|
|
- Wywolanie `buildPurchaseDataLayer()` w metodzie `przelewy24()` kontrolera.
|
|
- Dodanie dataLayer push do `templates/tickets/przelewy24.php`.
|
|
- Usuniecie purchase push z `templates/tickets/order-confirm.php`.
|
|
|
|
**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
|
|
**Research:** Not needed
|
|
|
|
**Context:**
|
|
- Biblioteka: `libraries/CookieNoticePro/`.
|
|
- Consent Mode v2 musi byc przed snippetem GTM w `<head>`.
|
|
- Tylko `templates/site/layout-logged.php` jest uzywany przez glowne widoki.
|
|
|
|
**Scope:**
|
|
- Pliki CookieNoticePro w `libraries/CookieNoticePro/`.
|
|
- Naprawa `analytics_storage: denied` przy braku zgody analytics.
|
|
- Consent Mode v2 default przed GTM w `layout-logged.php`.
|
|
- Integracja CSS/JS banera + inicjalizacja `cookieNoticePro.init()`.
|
|
|
|
**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 (CookieNoticePro already integrated)
|
|
**Research:** Not needed (root cause is visible in local source)
|
|
|
|
**Context:**
|
|
- `libraries/CookieNoticePro/cookienoticepro.script.js` wywolywal `injectScripts()` w dwoch miejscach.
|
|
- Funkcja `injectScripts` nie istnieje w tej kopii biblioteki.
|
|
- Blad wystepowal po kliknieciu akceptacji cookies oraz mogl wystapic przy inicjalizacji z zapisanymi zgodami.
|
|
|
|
**Scope:**
|
|
- Usuniecie wywolan `injectScripts()`.
|
|
- Zachowanie `cookieNoticePro.init()` w `templates/site/layout-logged.php`.
|
|
- Zachowanie Google Consent Mode v2 i GTM bez zmian.
|
|
|
|
**Plans:**
|
|
- [x] 04-01: Naprawa undefined `injectScripts` w CookieNoticePro (UNIFY complete)
|
|
|
|
---
|
|
*Roadmap created: 2026-04-19*
|
|
*Last updated: 2026-05-08 - v0.3 Cookie Notice Hotfix complete*
|