Funnels & Retention Cohorts
Learn how multi-step conversion funnels and weekly retention cohorts work, how to spot your biggest drop-off leaks, and how TrimStats computes them in ClickHouse.
How do TrimStats ClickHouse funnels and weekly retention cohorts work?
TrimStats runs native ClickHouse windowFunnel() queries across 2 to 8 ordered steps (paths, wildcards, or custom events) over conversion windows from 60 seconds to 30 days. Weekly retention cohorts evaluate 2 to 12 weekly signup or visit cohorts (default 8 weeks) using single-pass uniqCombined64 SQL.
How conversion funnels work
A conversion funnel tracks a sequence of milestones a visitor must complete in strict order within a chosen conversion window (for example: land on / -> view /pricing -> fire signup_started -> complete checkout_completed). Each bar shows how many visitors survived from the previous step so you see the exact stage leaking conversions.
Dividing two standalone pageview totals often misleads you. If /pricing had 5,000 visitors and /signup had 1,500 visitors, a naive ratio suggests 30% conversion, even if half of those signups came straight from an email link without ever reading /pricing. An ordered funnel counts only visitors who completed Step 1 before Step 2 before Step 3.
| Funnel metric | What it measures | How to act on it |
|---|---|---|
| Conversion from start (%) | Percentage of Step 1 entrants who reached the current step | Measures overall end-to-end efficiency across your entire journey. |
| Step-to-step conversion (%) | Percentage of visitors from the previous step who advanced to this step | Isolates the performance of a single page transition or form. |
| Step drop-off (%) | Percentage of visitors lost between the previous step and this step (100% - step conversion) | Attack the highest drop-off step first: fixing a -71% leak before checkout lifts revenue far more than tweaking a -20% top-of-funnel step. |
-71% drop) is the steepest leak. Inspecting UI Friction or pricing copy on /pricing targets the biggest bottleneck first.Match your funnel window to your real buying cycle. Impulse ecommerce checkouts usually finish inside 24 hours, while B2B SaaS visitors read docs on Monday, discuss with teammates, and subscribe days later, requiring a 7-day or 30-day window.
Configuring funnels in TrimStats
Under your site Behavior tab, build and save ordered multi-step funnels to track any sequence of pageviews and custom events. Funnels run directly inside ClickHouse using native windowFunnel() evaluation.
steps2 to 8 ordered stepsRequiredEach step can match either a pageview path (exact or trailing * prefix) or a custom event name. Visitors must complete steps in sequential order.
windowSeconds60 s to 2,592,000 s (30 days)OptionalDefault: 86,400 s (24 hours)Maximum elapsed time allowed between Step 1 and the final step for a visitor to count as converted.
For every step, TrimStats reports unique visitors reached, conversion from start (%), step-to-step conversion (%), and step drop-off (%).
A funnel window longer than 24 hours (such as 7 or 30 days) relies on recognizing the same visitor on subsequent days. Enable First-party ID mode or call identify() for accurate multi-day funnel tracking.
How retention cohorts work
Top-line traffic charts hide churn: if you attract 1,000 new visitors every week while 95% never come back, your visitor graph still looks steady. A retention cohort table groups visitors by the week they first arrived (W0 = 100%) and measures what share returned in W1, W2, W3, and beyond.
- Read horizontally (left to right): Follow one cohort row across weeks to see whether retention drops to
0%or flattens into a loyal recurring floor (for example stabilizing around25%to30%). - Read vertically (top to bottom): Compare older cohorts against newer ones in the same column (
W1orW2). Rising numbers in newer rows prove recent product, content, or onboarding improvements kept more users coming back. - Read diagonally: Cells along the same diagonal happened during the same calendar week, helping you spot site-wide effects like a major release, email blast, or outage.
W1 column shows retention climbing steadily from 45% (Oct 12) to 51% (Nov 23), confirming that recent changes lifted repeat visits.Weekly retention cohorts in TrimStats
The Retention Cohorts matrix under Behavior groups persistent visitors by the ISO Monday week of their first recorded pageview (W0) and shows what percentage returned in W1, W2, through up to 12 weeks (default 8 weeks).
- Cohorts include visitors with
identity_modeoffirst_partyoridentified. - Cookie-less visitors rotate hashes daily and cannot be linked across weeks, so the dashboard displays a transparent count of persistent vs cookie-less visitors alongside the matrix.
- Cohort calculations are cached for 5 minutes for instant rendering on large datasets.
Common technical questions
Do multi-step funnels and weekly cohorts work in strict cookie-less mode?
Are funnels and retention cohorts available on the Starter plan?
Related guides
Choose per site between zero-storage cookie-less analytics and persistent first-party visitor IDs, plus optional logged-in user identification.
Learn how conversion goals and conversion rate work, configure exact/wildcard paths or custom events, and monitor automatic conversion dips.
Learn what rage clicks, dead clicks, and deep scroll reach reveal about broken UX, and pinpoint exact offending CSS selectors with zero session-replay bloat.