GA4: run retention (cohort) report
ga4_run_cohort_reportRetention for a GA4 property (properties/): people grouped by day, week (Sunday to Saturday) or month of first visit, not sign-up, and how many were active in each later period; one still running is marked incomplete. first_channel or google_ads_campaign keeps people that channel or campaign first brought; split_by="channel" puts paid channels beside the largest others.
Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cohorts | No | How many groups, 1 to 12. | |
| property | Yes | ||
| split_by | No | "channel": one table per first channel. Every paid channel is kept whatever its size, then the largest others, 8 tables at most; the rest are counted in a note. | |
| granularity | No | WEEKLY | |
| first_channel | No | A default channel group exactly as Analytics names it, such as "Paid Search". | |
| follow_periods | No | Later periods to report for each group, 1 to 12 (30 when DAILY). | |
| last_cohort_end | No | YYYY-MM-DD. The newest group is the last whole day, week or month ending on or before it; by default the newest one that is over. | |
| google_ads_campaign | No | A Google Ads campaign name exactly as written; Analytics knows it once linked to Google Ads. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |