The dashboard stats endpoint aggregates all behavioral event data from the last 7 days into a single response suitable for populating an admin analytics dashboard. PassDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ALEJ4NDRO2025/urban-store/llms.txt
Use this file to discover all available pages before exploring further.
?mode=unique to count distinct sessions instead of raw event totals — useful for deduplicating views across page reloads.
Endpoint
Authentication
Bearer token required withis_admin: true in the JWT payload. Returns 403 if the user is not an admin.
Query Parameters
Controls how event counts are calculated.
total(default) — counts every event occurrence.unique— counts distinctsession_idvalues per event type.
Time Range
All metrics cover the last 7 days from the moment the request is made. Retention metrics (retention_metrics) use a 90-day lookback window.
Response Fields
The active counting mode:
"total" or "unique".Total number of
purchase events recorded in the 7-day window.Sum of
price × metadata.quantity across all purchase events. In COP.total_revenue / total_sales. Returns 0 when there are no sales.Top 5 products by units sold. Each entry:
{ "slug": string, "count": integer }.Top 5 products by view count (unique views in
mode=unique). Each entry: { "slug": string, "count": integer }.Daily purchase event counts. Each entry:
{ "date": "YYYY-MM-DD", "count": integer }. Sorted ascending by date.One entry per day in the 7-day window, each containing daily counts for:
product_view, add_to_cart, begin_checkout, purchase, checkout_started, payment_info_entered, order_completed.Percentage of
begin_checkout identifiers (user/session) that did not also fire a purchase event.Aggregate counts for funnel-critical event types. Keys:
product_view, add_to_cart, begin_checkout, purchase. Respects the active mode.Funnel step conversion percentages. Keys:
visit_to_cart— add_to_cart / product_viewcart_to_checkout— begin_checkout / add_to_cartcheckout_to_purchase— purchase / begin_checkout
Total
checkout_started events in the window.Total
payment_info_entered events in the window.Total
order_completed events in the window.payment_info_entered_count / checkout_started_count × 100.order_completed_count / payment_info_entered_count × 100.Error event totals. Keys:
payment_error, checkout_error, payment_confirmation_error.Up to 10 products, sorted by views descending. Each entry:
{ slug, name, views, add_to_cart, purchases, conversion_rate }. In mode=unique, also includes purchases_units.One entry per day with daily counts for:
payment_error, checkout_error, payment_confirmation_error, address_error.Session-level aggregates:
unique_sessions, avg_events_per_session, sessions_with_purchase.90-day retention data:
repurchase_rate (%), recurrent_customers, total_unique_buyers, period_days: 90.Sessions grouped by traffic source, sorted by session count descending. Each entry:
{ "source": string, "sessions": integer }. Null sources are reported as "direct".Unique sessions that fired a
whatsapp_cart_click event in the 7-day window.Unique sessions that fired a
whatsapp_purchase event in the 7-day window.Last 10 unique
session_id values that clicked the WhatsApp buy button.