Metrics
Track business KPIs from your connected platform apps.
The Metrics page gives you a live view of the KPIs your workspace cares about — revenue, orders, ad spend, conversion rates — computed from the data your platform apps sync continuously.
Where metrics come from
Metrics are derived from synced platform-app data. Connect a platform app (Stripe, Shopify, Google Ads, Meta Ads) and the platform starts syncing its events into your workspace. The Metrics page computes KPIs over that data in real time; no extra configuration is required.
Open the Metrics page
Metrics is in the left sidebar of the dashboard. Before any platform app is connected you see an empty state listing the metrics each app unlocks and a link to Integrations. Once at least one app is connected and its first sync completes, the KPI cards appear.
Reading the page
At the top, per-app status chips show whether each sync is Live, Syncing, Paused, or in Error — and when data was last updated. Use the period tabs (7d, 30d, 90d, 1y) to shift the window. Each KPI card shows:
- The current value for the selected window.
- A delta against the equivalent prior window (+/- and %).
- A sparkline of the daily or weekly bucket series.
Money metrics report in your workspace's dominant currency.
Available metrics
| App | Metrics |
|---|---|
| Stripe | Gross volume, Successful payments, Authorization rate, Refund rate, Dispute rate |
| Shopify | Revenue, Orders, Average order value, Checkout completion |
| Google Ads | Ad spend, CTR, ROAS |
| Meta Ads | Ad spend, CTR, ROAS |
From the API
# List connected apps and the metric descriptors they unlock
curl https://api.levainlabs.com/api/v1/metrics \
-H "Authorization: Bearer $LEVAIN_API_KEY"
# Fetch computed values for a window
curl "https://api.levainlabs.com/api/v1/metrics/data?window=30d" \
-H "Authorization: Bearer $LEVAIN_API_KEY"GET /api/v1/metrics/data returns, for each metric: the current
aggregate, the prior-window aggregate for delta calculation, and a
day/week/month-bucketed series.
See the Metrics API reference for the full schema.
Next
- Connect a platform app to start syncing data.
- Set up app-event triggers to fire agents when something notable happens (e.g. a failed payment, an abandoned checkout).