Goals and funnels
get_conversionsGoal completions and conversion rates, paying customers, and each funnel's steps with drop-off. Each goal keeps its raw name plus displayName, color, description and hidden from the site's goal settings (hidden goals are still listed, with hidden: true). Includes page and link goals (definition field). Built-in automatic events (button_click, form_submit, file_download), when switched on in Settings, are listed apart in automaticEvents with their event counts (not in goals); call get_goal with one of those names for its people, revenue and top button texts, forms or files. Each funnel step has medianSecondsFromPrevious and medianSecondsFromStart; timeToPayment says how many who finished the funnel paid and the median seconds from their first step to paying. Page steps accept page:=/path (exact) and page:host/path (one hostname). Pass funnel_id for a saved funnel, or steps for an unsaved one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_conversions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD (inclusive). | |
| from | No | First day, YYYY-MM-DD (inclusive). Use with to. | |
| steps | No | 1–8 comma-separated steps, counted in order: visit, page:/path (path prefix), page:=/path (exact page), page:host/path (one hostname), event:goal_name, identify, payment. Example: visit,page:/pricing,event:signup,payment. Ignored with funnel_id. | |
| fields | No | Optional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer. | |
| period | No | Preset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set. | |
| compare | No | What change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all. | |
| filters | No | Up to six visitor filters, all of which must match. op: is, is_not (exact); contains, not_contains, starts_with, ends_with (literal text, letter case ignored); regex, not_regex (case-insensitive regular expressions up to 200 characters, without lookarounds, backreferences or repeated groups like (a+)+); is_empty, is_not_empty (no values: send []; e.g. utmCampaign is_empty = visitors who never had a campaign); gt, lt and is for visits. dim urlParam also needs key, the URL parameter name (one of the site's kept parameters): {"dim":"urlParam","key":"plan","op":"is","values":["pro"]}. dim prop (event property) needs key, the property name, and optionally goal to look only at that goal's events; values match as text (numbers and true/false too), and a visitor matches with at least one such event: {"dim":"prop","key":"plan","goal":"signup","op":"is","values":["growth"]} (list_event_properties lists names and values). dim trait needs key, a person's identify trait (get_visitor_traits lists them): {"dim":"trait","key":"role","op":"is","values":["founder"]}. Other dimensions take no key or goal. A 400 filter_too_slow means the regex was too slow: simplify it. | |
| timezone | No | IANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC. | |
| funnel_id | No | A saved funnel's ID from list_funnels; its steps replace the default funnel. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |