API
Journeys endpoint
This endpoint returns the most common paths visitors take, as lists of pages. Scope: analytics:read. Public sites and private links can call it.
Last updated . This guide belongs to User journeys.
GET /sites/:siteId/journeys
| Parameter | Meaning | Default | Range |
|---|---|---|---|
steps | Pages in each path | 3 | 2 to 10 |
limit | Paths to return | 100 | 1 to 500 |
stepFilters | A JSON object that pins steps to pages |
It also takes the shared time parameters, filters and segment_id.
In stepFilters, the key is the step number, starting at 0. The value is a path. * matches one segment and ** matches several.
{ "0": "/", "2": "/blog/**" }
What does the response look like?
{ "journeys": [ { "path": ["/", "/pricing", "/signup"], "count": 57, "percentage": 3.0927 } ] }
count is sessions. The same page twice in a row counts as one stop. Only sessions with at least two different pages are included.