Dashboard
Every stage’s detail page has a Statistics tab showing four KPIs and a timeline chart over a configurable date range. Backed by the admin API endpoint POST /api/_action/p2lab-stage/stats.
What’s on the page
Section titled “What’s on the page”KPI cards
Section titled “KPI cards”Four cards across the top:
- Impressions — total
impressionevents. - CTA clicks — total
cta_clickevents. - Closes — total
closeevents. - Click-through rate — CTA clicks divided by impressions, as a percentage.
CTR helps you compare popups even when their absolute traffic differs — a slide-in seen 1000 times with 50 clicks (5%) is performing better than a modal seen 5000 times with 200 clicks (4%).
Timeline chart
Section titled “Timeline chart”A line chart with three series:
- Impressions
- Clicks
- Closes
X axis: dates within the selected range, bucketed daily by default. Y axis: count.
Use the chart to spot:
- Sudden drops — likely a targeting or schedule change.
- Sudden spikes — a marketing push that brought new traffic.
- Engagement curves — does CTA-click rate decay over the campaign as visitors get fatigued?
Date range picker
Section titled “Date range picker”A standard date range picker above the cards. Picks affect both KPI totals and the chart. Defaults to the configured Retention (days) window or the data available, whichever is shorter.
Per-stage opt-out
Section titled “Per-stage opt-out”If the stage’s Track statistics toggle is off (Overview tab → Statistics card), no events are recorded and the Stats tab shows zeros (or whatever was recorded before the toggle was flipped). The card hints at this so you know it’s not a bug.
Drill-down
Section titled “Drill-down”The dashboard currently aggregates totals. For per-row inspection of events (e.g. “which page types convert best?”), see Reference → Event types for the raw schema.
The Stats tab is a thin Vue page on top of POST /api/_action/p2lab-stage/stats:
{ "popupId": "<uuid>", "dateFrom": "2026-04-01", "dateTo": "2026-04-30"}Both date fields are optional. The response includes both the aggregate totals and the time-bucketed series. Useful if you want to embed the same data into a custom dashboard outside the plugin.
Where to go next
Section titled “Where to go next”- Events — what each event means and when it’s fired.
- Reference → Event types — full payload schemas.
- Editor → Drafts & revisions — version history is orthogonal to statistics (revisions don’t track events).