Funnel
funnelMeasure conversion across 2-8 ordered page or event steps, showing visit or user counts, median time between steps, and per-step event revenue for a chosen date range.
Instructions
How many visits or people reached each step of a funnel, in order, with the median time from each step to the next and through the whole funnel. Each event step also has its revenue: that of the event that completed the step for each visit or person, its first one after the previous step, so later ones add nothing; null for a page step. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing.
The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.
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>",
"from": "<from>",
"to": "<to>",
"steps": "<steps>"
},
"name": "funnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last day of the range, inclusive (YYYY-MM-DD), at most the project's today. | |
| from | Yes | First day of the range, inclusive (YYYY-MM-DD). | |
| mode | No | visit counts each visit on its own; user follows identified people across visits. | visit |
| steps | Yes | The steps of the funnel, in order: 2 to 8 pages or named events. | |
| project_id | Yes | The project id, from list_projects. |