get_funnel
Compute conversion funnel by defining ordered steps of pageviews or custom events. Get per-step session counts and conversion rate relative to first step within same session.
Instructions
Compute a conversion funnel across an ordered sequence of pageview URLs and custom events. Returns per-step session counts and conversion rate relative to step 0. Steps must all occur within the same session, in order. Optional filters constrain which sessions enter the funnel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site domain or UUID | |
| steps | Yes | Ordered steps — at least 1, typically 2-5 | |
| period | No | Time period | 30d |
| filter_os | No | OS substring match (e.g. 'iOS') | |
| filter_browser | No | Browser substring match (e.g. 'Chrome') | |
| filter_country | No | 2-letter country code (e.g. 'US') | |
| filter_utm_source | No | Exact UTM source (e.g. 'twitter') | |
| filter_device_type | No | Device type: 'desktop' | 'mobile' | 'tablet' | |
| filter_referrer_contains | No | Referrer substring (e.g. 'google') |