Product Analytics
Compute a retention grid
Compute a retention grid, showing how much of each cohort came back over each subsequent period. Rows are cohorts, columns are return periods, and each cell holds the count and rate of entities that returned.
post/api/v2/product-analytics/retention/grid
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
OK
Example response
{
"data": {
"attributes": {
"cohorts": [
{
"cells": [
{
"type": "raw"
}
],
"type": "raw",
"unit": [
{
"family": "time",
"name": "nanosecond"
}
]
}
],
"retention_periods": [
{
"unit": "week",
"value": 1
}
],
"unit": [
{
"family": "time",
"name": "nanosecond"
}
]
},
"id": "00000000-0000-0000-0000-000000000000",
"type": "retention_grid_response"
}
}Changes
Changes to this operation have not been checked yet.