Retention cohorts
Groups people by the day, week or month in which they first did first_event (any page view or custom event by default) inside date_range, and counts how many of each cohort did return_event (the same default) in each period after, in the project's time zone. With count_by: users (the default) people are identified users (identify), with their visitors' anonymous events of the same day linked to them; users who did the first event before the range join no cohort. With count_by: visitors a visitor id lasts one day (no cookies), so visitors never come back in a later period. Filters apply to the first event.
Path parameters
prj_…).Body
week by default.dayweekmonthusers (the default): identified people, across days and devices. visitors: a visitor id lasts one day, so no visitor comes back in a later period.usersvisitorsShow 3 fieldsHide fields
pageeventShow 3 fieldsHide fields
isis_notcontainsstarts_withShow 3 fieldsHide fields
pageeventShow 3 fieldsHide fields
isis_notcontainsstarts_withShow 4 fieldsHide fields
props.plan.isis_notcontainsnot_containsstarts_withregexfrom and to as dates (2026-11-01, whole days in the project's time zone, to included) or RFC 3339 times (to excluded). Empty means the last 30 days. A range starting before the first day the plan keeps (retention_days of F47: the last N days, today included, in the project's time zone) starts on that day instead: the answer's date_range shows where it starts, and F1, F2 and the public queries add a range_clamped warning. A range wholly before it is empty.Show 3 fieldsHide fields
todayyesterday7d30d90dthis_monthlast_monththis_yearallResponses
Each cohort's size and the people who came back in each period.
Show 4 fieldsHide fields
periods; null while the period hasn't started.size.dayweekmonthusersvisitorsShow 2 fieldsHide fields
1{2"cohorts": [3{4"start": "2026-11-21",5"size": 1,6"retained": [718],9"rates": [101.511]12}13],14"average": [151.516],17"granularity": "day",18"periods": 1,19"count_by": "users",20"date_range": {21"from": "2026-11-21T09:30:00Z",22"to": "2026-11-21T09:30:00Z"23}24}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
validation_error | |
clickhouse_not_configured |