This API produces aggregated histogram for user-centric metrics represented as two arrays of numbers. The request and response syntax is similar to /traffic/user/histogram except that it operates over DMP event data instead of ordinary page view events.
For using the API, you must be authenticated and have read permissions to the given sites. Sites in requests must be set up with DMP event feeding.
Request
Identical to /traffic/user/histogram request.
Response
Identical to /traffic/user/histogram request.
Examples
Bash
$ python cx.py /dmp/traffic/user/histogram '{"siteId":"12345", "start":"-1M", "count":10, "min":1, "max":10, "origin":"cxad"}'
{
"start": 1399364129,
"stop": 1402042529,
"data": {
"uniqueUsers": [
9139931,
2763238,
1458519,
849363,
583366,
387615,
292537,
210543,
169517,
128705
],
"events": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
]
}