Save a funnel
funnels_saveSave a funnel you mapped from the site's code: the path most visitors take toward signing up or paying from one of the most visited pages (find those with analytics page_flow: the top pages, where visitors go next, what they click). Each step is a goal's definition: PAGEVIEW (a path, * for a wildcard), EVENT (an event name, or name@/path such as form_submit@/register, which t.js sends with no code on the site), CTA (the element's data-sf value, * for a wildcard), ENGAGED, REVENUE (trial, paid) or CHECKOUT (a visit back from a hosted checkout). Put other ways that count as the same step in any, and where you found each step in evidence (file:line). Steps count in order (strict, the default) within windowDays (default 7). The same name redefines a funnel; remove: true deletes it. It is counted from events already stored, so it returns its last 28 days at once: a step no one reached is usually a wrong pattern. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the path is, e.g. "Home to signup", "Pricing to payment", "Free tool to signup" | |
| steps | No | Needed unless remove | |
| remove | No | ||
| siteId | No | ||
| strict | No | Steps in this order (default true) | |
| windowDays | No | Days from the first step to the last (default 7) |