Visit timeline
visit_timelineFetch a newest-first event timeline for a single visit or a user's visits, showing location and visitor type, 20 per page; use either session_id or user_id.
Instructions
Every event of one visit, or every visit of one identified person (the anonymous part of the visit they identified in included), newest first, 20 visits a page; each visit names its country, region and approximate city (null unless the project keeps the city). It takes exactly one of session_id (a visit id from visits or funnel_subjects) or user_id. Each visit also has its visitor kind: first_visit, first_this_month, first_today or again_today, null when the project does not count unique visitors or the visit carried none; the first three count as a unique visitor of their day, first_visit and first_this_month as one of their month, and again_today in neither. Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.
Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "visit_timeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | No | The next_before of the previous page. | |
| user_id | No | The id the site passed to identify(). | |
| project_id | Yes | The project id, from list_projects. | |
| session_id | No | A visit id, from visits or funnel_subjects. |