analytics_retention
Cohort retention analysis — track what % of users return over time. By default uses session-based retention (any return visit counts). Pass 'event' to switch to event-based retention. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | First-seen event filter (e.g. signup). Switches to event-based retention. | |
| period | No | Cohort grouping period | week |
| cohorts | No | Number of cohort periods (max: day=30, week=12, month=12) | |
| project | Yes | Project name | |
| returning_event | No | What counts as 'returned' (defaults to same as event) |