Overview
Funnels track multi-step user journeys to analyze conversion rates and identify drop-off points. Create funnels based on page views or custom events.Funnel Endpoints
Funnel analytics use a separate set of RPC endpoints managed through the AI tools system. These endpoints are not part of the standard query API.List Funnels
Retrieve all funnels configured for a website.The website ID to list funnels for.
Array of funnel objects containing:
id: Funnel IDname: Funnel namedescription: Funnel descriptionsteps: Array of funnel stepsfilters: Applied filterscreatedAt: Creation timestamp
Total number of funnels.
Get Funnel by ID
Retrieve details for a specific funnel.The funnel ID.
The website ID.
Get Funnel Analytics
Retrieve conversion data and metrics for a funnel.The funnel ID to analyze.
The website ID.
Start date in YYYY-MM-DD format. Defaults to 30 days ago.
End date in YYYY-MM-DD format. Defaults to today.
Array of funnel steps with metrics:
step_number: Step position (1-based)step_name: Human-readable step nameusers_entered: Users who reached this stepusers_completed: Users who completed this step and moved forwardconversion_rate: Percentage who proceeded to next stepdrop_off_rate: Percentage who dropped off at this steptime_to_complete: Average time to complete this step
Percentage of users who completed the entire funnel.
Number of users who entered the funnel at step 1.
Number of users who completed all steps.
Get Funnel Analytics by Referrer
Analyze funnel performance segmented by traffic source.getAnalytics
Response:
Array of referrer sources with funnel metrics:
referrer: Referrer domain or sourceusers_entered: Users from this sourceusers_completed: Users who completed the funnelconversion_rate: Source-specific conversion ratesteps: Per-step metrics for this source
Create Funnel
Create a new funnel to track a conversion path.The website ID.
Funnel name (1-100 characters).
Optional funnel description.
Array of 2-10 funnel steps. Each step must include:
type: Step type (PAGE_VIEW,EVENT, orCUSTOM)target: Page path (forPAGE_VIEW) or event name (forEVENT)name: Human-readable step nameconditions: Optional additional conditions (object)
Optional array of filters to apply to the funnel:
field: Filter field nameoperator: Filter operator (equals,contains,not_equals,in,not_in)value: Filter value (string or array of strings)
If true, only tracks data from the funnel creation date forward.
Whether the funnel was created successfully.
The created funnel object with all details and assigned ID.
Funnel Step Types
PAGE_VIEW Steps
Track when users visit specific pages:- Matches exact page paths
- Path normalization automatically applied (trailing slashes removed)
- Can use wildcards in target (e.g.,
/blog/*)
EVENT Steps
Track when custom events are triggered:- Matches custom event names
- Optional conditions filter events by property values
CUSTOM Steps
Advanced step definitions with custom logic:Funnel Analysis Features
Conversion Tracking
- Calculate conversion rates between each step
- Identify highest drop-off points
- Track overall funnel completion rate
- Measure time taken between steps
Segmentation
- Break down conversions by referrer/source
- Apply filters to analyze specific user segments
- Compare performance across device types, countries, etc.
Time-based Analysis
- Specify date ranges for analysis
- Compare funnel performance across different periods
- Track trends over time
Best Practices
- Keep funnels focused: 2-5 steps is optimal. Very long funnels become harder to analyze.
- Order matters: Steps must be defined in the expected user journey order.
- Use clear naming: Step names should clearly describe the user action.
- Start broad: Begin with a simple funnel, then add filters to segment.
- Test your events: Verify custom events are firing correctly before creating event-based steps.
- Monitor regularly: Check funnel analytics weekly to catch conversion issues early.
Example: E-commerce Checkout Funnel
Notes
- Funnels are evaluated in real-time as users progress through steps
- A user can be counted multiple times if they restart the funnel
- Steps must occur in order; skipping steps counts as a drop-off
- Maximum 10 steps per funnel
- Filters apply to all steps in the funnel
- Historical data analysis depends on the
ignoreHistoricDatasetting