get_funnel_analysis
The full session-based purchase funnel — sessions, product viewed, added to cart, checkout started, address, shipping, payment, order — split by any dimension you choose.
When to use it
Whenever you need to know where visitors drop out. This is the most important tool on the server, and segmentBy is the most important parameter on it.
Ask for it like this
You do not name the tool. These are questions that make an assistant reach for it:
How to read the result
- Always run segmentBy: 'device' before concluding anything. A store at 1.3% overall was 2.0% on mobile and 0.0% across 1,145 desktop sessions — and the leak was at the top of the desktop funnel, not at checkout.
- Every step counts sessions, not events. A session that adds to cart four times counts once, so step-to-step ratios are true drop-off rates.
- biggestDrop names the single largest leak in each segment. sessionConversion carries a 95% Wilson interval and a sample-adequacy verdict.
- vsRestOfStore is a two-proportion z-test, so you can tell a real gap from noise without doing the arithmetic yourself.
- When a segment has zero orders, upperBoundIfZero gives the rule-of-three 95% ceiling on its true rate. That is how you prove a dead segment is genuinely dead rather than just small.
What will make you wrong
Caveats
- Address and shipping steps are not strictly nested — Shopify skips them for express and returning-customer checkouts — so a later step can exceed an earlier one. The response flags this rather than treating it as a bug.
- segmentBy: 'theme' is observational. It diagnoses why an A/B variant loses; it never decides which variant wins.
- segmentBy: 'country' only has data from 31 July 2026 onward. Earlier sessions fall into an unrecoverable unknown bucket.
Parameters
deviceutm_sourceutm_mediumvisitor_typeentry_typecountrythemeShared parameters it accepts
Documented in full on the tool reference index.
Date window — defaults to the last 30 days.
Every tool also accepts merchantId, which resolves from your connection. You never pass it.
What comes back
JSON. These are the top-level keys; date-scoped tools additionally carry a _meta block with the server date and the data coverage envelope.