get_retention
View weekly cohort retention for a product: users grouped by first-seen week, with the share returning each subsequent week. Requires product analytics events.
Instructions
Weekly cohort retention for the product: users grouped by their first-seen week, with the share returning each week after. Read-only; needs product analytics events flowing, and returns empty cohorts when the product has none. Optional product_id (defaults to the primary product) and window_days (default 56 = 8 weekly cohorts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | No | Product id, from whoami (optional; primary by default). | |
| window_days | No | Window in days (default 56 = 8 weekly cohorts). |