Skip to content

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.

Four cards across the top:

  • Impressions — total impression events.
  • CTA clicks — total cta_click events.
  • Closes — total close events.
  • 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%).

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?

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.

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.

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.