04. Analytics Sentry/Conversion Science
Funnels & Cohort Retention
Analyze conversion drop-offs across multi-step user funnels and track long-term customer retention curves with demographic filtering.
MEMORY OPTIMIZATION
O(1) Memory
Safe Against 16MB BSON Limits
“Sequential funnel evaluation using $reduce pipelines prevents memory exhaustion on high-frequency bot traffic.”
Time-Ordered Conversion Engine
Sequential Conversion Funnels
Define multi-step conversion funnels and analyze drop-off rates across any sequence of events:
POST/analytics/project/:projectId/funnel
json
| 1 | { |
| 2 | "steps": [ |
| 3 | "viewed_pricing", |
| 4 | "clicked_signup", |
| 5 | "completed_onboarding", |
| 6 | "first_purchase" |
| 7 | ], |
| 8 | "filters": { |
| 9 | "geo.countryCode": "TZ", |
| 10 | "device.deviceType": "desktop" |
| 11 | } |
| 12 | } |
N-Week Cohort Retention
Track visitor retention across weekly cohorts:
POST/analytics/project/:projectId/retention
json
| 1 | { |
| 2 | "filters": { |
| 3 | "utm.source": "google_ads" |
| 4 | } |
| 5 | } |