Funnels
Retrieve the population statistics of a funnel and its funnel stages
Changed onRetrieve the population history of a funnel. The history is returned per day and those days are calculated in the timezone of the audience.
get/audiences/{audienceId}/funnels/{funnelId}/statistics
Request
- Base URLhttps://api-cdp.treasuredata.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
audienceIdinteger required
Audience ID of the funnel
funnelIdinteger required
ID of funnel to return
Query parameters
fromstring date
Example:2019-01-01
from date
tostring date
Example:2019-04-30
to date (inclusive)
limitinteger
number of days to fetch funnel statistics
Response
array of tuple of statistics
Example response
{
"population": 1000,
"stages": [
{
"id": 44242,
"history": [
[
1600297704,
362,
true
],
[
1600383964,
362,
true
]
]
},
{
"id": 44240,
"history": [
[
1600297667,
122,
true
],
[
1600383950,
122,
true
]
]
},
{
"id": 44241,
"history": [
[
1600297690,
516,
true
],
[
1600383956,
516,
true
]
]
}
]
}Changes
- info
api operation id
funnels#statisticsremoved and replaced withfunnels_statistics
- info