Skip to Content
fastmon Docs
Sales

Checkout stages per bucket, by hit time

Report an issue

Visitors who reached each checkout stage, per bucket, at the time they reached it.

The trend and the tile the analytics page draws beside its pageview numbers, counted from events alone.

NOT the funnel's timeseries.reached_by_stage. That one counts an entry COHORT over a window widened by 24h, so a purchase at 14:00 by a visitor who entered at 09:00 lands in the 09:00 bucket. Here the requested range applies to the row's own time, and the window totals are distinct visitors over the window rather than the column sums of the series.

compare_to takes a mode, a {from, to} window or a {release_id}, resolved as on /analytics/query.

Requires: analytics:read, held by every role.

Authorization

headerAuthorizationBearer <fm_… / fmo_…>

API token generated from the fastmon dashboard (Account → API Token) or at organization level (fmo_…, one that outlives its creator). Send as Authorization: Bearer fm_... or paste the full token (including its prefix) into the Authorize dialog.

Path Parameters

org_id*Org Id

An ID, a UUID in lowercase with hyphens.

Formatuuid

Request Body

application/json
  1. body

Request for the checkout stage series, bucketed by the hit itself.

time_range*

Time range for the query

filters?

Optional filters

identity?|

Identifier to count distinct visitors by: 'stitch' or 'session'. Null -> the application's default (stitch preferred), same resolution as /visitors. 'session' answers from pageviews alone, because a pixel event carries no session id.

granularity?GranularityRequest

Bucket size of the series: 'minute', 'five_minutes', 'fifteen_minutes', 'hour', 'six_hours', 'day', or 'auto' (default: the smallest width with at most 300 buckets over the window, and 'day' from 28 days). A width under an hour allows at most 1500 buckets. The comparison window is bucketed at the resolved size too, so both series sit on one grid.

Default"auto"
Value in"auto""minute""five_minutes""fifteen_minutes""hour""six_hours""day"
timezone?|

IANA time zone whose boundaries start the six_hours, day, week and month buckets, such as Europe/Berlin. A day is 23 or 25 hours long across a DST switch. Bucket timestamps stay UTC. In a zone whose offset is not whole hours a bucket starts at the UTC hour that holds the local boundary. Without it the buckets start at UTC boundaries

sparse_buckets?|

The sparse threshold of the page, the number POST /analytics/sparse-hours derives. With exclude the rows of the thin hours are left out. Without it the route only echoes the number in meta.sparse_buckets

compare_to?|||

Also report the same numbers for a second window: a mode, a {from, to} window or a {release_id}. It resolves as on /analytics/query, so a tile here and a tile there compare against the same days.

Response Body

Successful Response

application/json
  1. response

Visitors per checkout stage per bucket, counted at the time of the hit.

Deliberately not the funnel's timeseries.reached. That one buckets a visitor by their funnel ENTRY over a window widened by 24h, so it answers "what did the cohort that entered on Monday do". This one applies the requested range to the row's own time: a hit inside the window counts in the window, whatever the run's entry.

meta*

Facts about the result

request*

The request as the server resolved it

totals*

Stage name -> distinct visitors who reached it anywhere in the window. NOT the column sum of series: a visitor who reached the checkout on three days is one visitor here and three bucket entries there. Exact, as events are never sampled.

series*array<>

One point per bucket that had at least one stage hit. A bucket with none is absent rather than zero-filled, as in /analytics/query.

comparison?

Absent unless compare_to was set (per response_model_exclude_none). The compared window can predate the checkout events, which the collector derives and the pixel sends from the day each started. A stage then rises from 0, and that rise is the installation, not the shop.

POST
/organizations/{org_id}/analytics/funnels/checkout/stages
Example Request
curl -X POST 'https://api.fastmon.eu/organizations/019d8b65-a109-76c7-9f4a-bda57a7ab21d/analytics/funnels/checkout/stages' \  -H 'Content-Type: application/json' \  -d '{  "time_range": {    "from": "2026-04-14T09:50:01Z",    "to": "2026-04-14T09:50:01Z"  }}'
Example Response
{  "meta": {    "execution_time_ms": 0,    "total": 0,    "limit": 0,    "offset": 0,    "has_more": true,    "next_cursor": "string",    "sampling": {      "rate": 0,      "is_sampled": true,      "estimated_metrics": [        "string"      ]    },    "is_identity_mixed": true,    "complete_until": "2026-04-14T09:50:01Z",    "sparse_buckets": {      "min_pageviews": 0,      "excluded_hour_count": 0    }  },  "request": {    "time_range": {      "from": "2026-04-14T09:50:01Z",      "to": "2026-04-14T09:50:01Z"    },    "comparison_time_range": {      "from": "2026-04-14T09:50:01Z",      "to": "2026-04-14T09:50:01Z"    },    "granularity": "minute",    "identity": "stitch",    "window_seconds": 0,    "filters": {},    "url_param_key": "string"  },  "totals": {    "property1": 0,    "property2": 0  },  "series": [    {      "timestamp": "2026-04-14T09:50:01Z",      "reached_by_stage": {        "property1": 0,        "property2": 0      }    }  ],  "comparison": {    "time_range": {      "from": "2026-04-14T09:50:01Z",      "to": "2026-04-14T09:50:01Z"    },    "totals": {      "property1": 0,      "property2": 0    },    "series": [      {        "timestamp": "2026-04-14T09:50:01Z",        "reached_by_stage": {          "property1": 0,          "property2": 0        }      }    ]  }}