Get conversions for a goal
get_conversionsHow many visits reached a goal, and the conversion rate (conversions / visits), for the whole site and by one dimension of the visit: source, utm_campaign, utm_medium, utm_source, entry_page, country, device, hostname (hostname: the domain a visit began on). With filter, only the visits that match it (e.g. the goals of the visits from Substack, by entry page). Without goal, gives every goal of the site with its totals, and with dimension each goal by that dimension too (5 rows each unless limit). Use it to tell which sources or campaigns lead to sales or sign-ups. Rows are ordered by visits, so sources that bring visits and no conversion show too. A total also gives unmeasured: conversions the site's server confirmed with no measured visit (included in conversions, in no rate and no row), and never_received when the goal's event has never arrived (a zero is then not "nobody").
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": {
"site": "<site>"
},
"name": "get_conversions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (site timezone), included. | |
| from | No | Start date YYYY-MM-DD (site timezone), with `to`. | |
| goal | No | The goal's name or label, as list_events gives it. Omit to list every goal with its totals. | |
| site | Yes | The site: its domain (example.com), its id, or its public id. See list_sites. | |
| limit | No | Default 10. | |
| filter | No | Only the visits whose dimension has this value, read by their first event (one filter, never more). E.g. the entry pages of the visits from Substack: dimension entry_page, filter { dimension: source, value: Substack }. | |
| period | No | A preset period ending today: today, 7d, 30d, 90d, 1y (one year) or all (everything since the site's first visit, five years at most). Default 30d. Ignored when from/to are given. | |
| dimension | No | Default source. Use utm_campaign for campaigns. |