Query API
Get Retention
Read retention cohorts by day or week, with an optional entry event and returning event.
GET
Get retention
Returns one row per cohort and period. The entry event puts a visitor in a cohort. The returning event counts a return.
- Without
entry_type, any page view or custom event starts a cohort. entry_type=trackwithentry_value=tutorial_completedstarts a cohort at that event.- A page value is a path, or
*for any page. recurring(the API default) counts a visitor in period N only when they return in that period.rollingcounts a visitor in period N when they return in period N or in a later period.