You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supports --breakdown <property> and --breakdown-limit <N> for segmenting
funnels by any property (e.g. country, experiment variant).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-`--window <N>` — conversion window in hours (`funnel`, default: 168) or live time window in seconds (`live`, default: 60)
293
294
-`--count-by <field>` — `user_id` or `session_id` (`funnel` only)
295
+
-`--breakdown <key>` — segment funnel by a property (e.g. `country`, `variant`) — extracted from step 1 events (`funnel` only)
296
+
-`--breakdown-limit <N>` — max breakdown groups, 1-50 (`funnel`, default: 10)
294
297
-`--interval <N>` — live refresh in seconds (default: 5)
295
298
296
299
### The `live` command
@@ -314,6 +317,7 @@ Match the user's question to the right call(s):
314
317
| "Give me a summary of all projects" |`live` or loop: `projects` then `insights` per project | Multi-project overview |
315
318
| "Which CTA converts better?" |`experiments create` + implement + `experiments get <id>`| Full A/B test lifecycle |
316
319
| "Where do users drop off?" |`funnel --steps "page_view,signup,purchase"`| Step-by-step conversion with drop-off rates |
320
+
| "Which variant converts better through the funnel?" |`funnel --steps "page_view,signup" --breakdown variant`| Funnel segmented by experiment variant |
317
321
| "Are users coming back?" |`retention --period week --cohorts 8`| Cohort retention: % returning per period |
318
322
319
323
For any "how is X doing" question, **always call `insights` first** — it's the single most useful endpoint. For real-time "who's on the site right now", use `live`.
-`--window <hours>` — max time from step 1 to last step (default: 168 = 7 days)
430
434
-`--since <days>` — lookback period, e.g. `30d` (default: 30d)
431
435
-`--count-by <field>` — `user_id` (default) or `session_id`
436
+
-`--breakdown <property>` — segment funnel by a property (e.g. `country`, `variant`). Property is extracted from step 1 events. Returns overall + per-group results.
437
+
-`--breakdown-limit <N>` — max groups returned (default: 10, max: 50). Groups ordered by step 1 users descending.
438
+
439
+
**Breakdown use case — A/B experiments:**`funnel my-site --steps "page_view,signup" --breakdown variant` shows which experiment variant converts better through the funnel.
432
440
433
441
**API-only: per-step filters** — each step can have a `filters` array with `{ property, op, value }` (ops: `eq`, `neq`, `contains`). Example: filter step 1 to `path=/pricing` to see conversions from the pricing page specifically.
0 commit comments