Funnel conversion over time
get_funnel_trendOne funnel's overall conversion and per-step visitor counts per day, week, month or year across a date range -- to tell whether a drop-off changed and when. Buckets with few entering visitors swing wildly; say so rather than reading a trend into them. Buckets marked partial cover only part of their week/month/year (see covers_from/covers_to) or contain today: never read a partial bucket as a drop. Dates are the project's calendar days, YYYY-MM-DD (timezone: get_project); timestamps are UTC. Omit from/to for the last 28 complete days, ending yesterday. A period marked starts_before_data begins before the project has data (see data_from): those days read as zero, not as a quiet period.
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": {
"funnel_id": "<funnel_id>"
},
"name": "get_funnel_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD in the project's timezone, inclusive. Default: yesterday, the last complete day. | |
| from | No | First day, YYYY-MM-DD in the project's timezone, inclusive. Default: 27 days before 'to'. | |
| trait | No | Only count visitors carrying this session trait value, the way the funnel's trait_scope says (see get_funnel). | |
| project | No | Project ID, from list_projects. Required when this connection covers more than one project; may be left out when it covers one (and with an API key, which belongs to one project). | |
| funnel_id | Yes | Funnel ID, from list_funnels. | |
| granularity | No | Bucket size: day (default), week, month or year. |