PROTOTYPE Clickable mockup · simulates the finished app ◃ Product overview
Petanque Life Boulodrome · admin
AB

Analytics & occupancy

🔐 chain.analytics.read

Reads pre-computed rollups (day/week/month, idempotent upsert) — today's bucket is supplemented with an in-memory live delta on top of the hourly rollup. The funnel's raw data is BookingFunnelEvents with session dedup. The finance vouchers live in Bookkeeping.

Revenue 30 days
412 800 kr
+11 %
Occupancy 30 days
68 %
+4 pp
No-show-rate (trend)
3,8 %
−1,2 pp
Conversion visit → booking
9,4 %
+0,8 pp
Revenue per resource type
GET /chain/analytics/revenue?group_by=resource_type
Courts (court)236 400 kr
Eventytor (event_space)94 900 kr
Bord (table)52 700 kr
Package (package)21 300 kr
Utrustning (equipment)7 500 kr
Occupancy per resource
GET /chain/analytics/utilization
Bana 1 · Center212 bokningar · 84%
Bana 2188 bokningar · 76%
Bord 4154 bokningar · 71%
Bana 6141 bokningar · 62%
Eventyta Terrass31 event · 44%
Bana 9 (retired)no longer in operation · 0%
Peak heatmap — occupancy per weekday × time (ISO week)
GET /chain/analytics/heatmap · basis for the peak pricing rules in Pricing
000204060810121416182022
Mon
Tis
Ons
Tor
Fre
Sat
Sun
Conversion funnel — visit → booking
GET /chain/analytics/conversion
Visits to the booking page18 240 · 100%
Chose resource & time4 010 · 22%
Started checkout2 350 · 13%
Completed booking1 715 · 9.4%
BookingFunnelEvent per step, deduped per session (unique session + step counted once).
Customer cohorts — new vs returning GET /chain/analytics/customers
KohortKunderAndelAvg revenue/customer
First-time guests 412 38 % 310 kr
Returning (2–5 visits) 486 45 % 520 kr
Regulars (6+ visits) 182 17 % 890 kr
The cohort data drives the win-back and birthday automations in Pricing → Upsell & automation.
Monthly report — POST /chain/analytics/export
Synchronous export for ranges ≤ 92 days; longer ranges run as jobs and are emailed. Requires chain.analytics.export.
✅ The June report (PDF, 14 pages) generated 1 Jul — sent to the site manager.
Rollup-jobb (AnalyticsRollup, idempotent upsert)
analytics_rollup_hourly today 18:00 ● ok
analytics_rollup_daily inatt 03:10 ● ok
analytics_rollup_monthly_close 1 Jul 04:00 (June closed) ● ok
Laddar dagens live-delta …
403 — the account lacks chain.analytics.export. Ask the site manager to assign the permission under Roles.