We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/dmp/traffic/user/histogram/event

This API produces aggregated histogram over the number of distinct DMP event items per user represented as two arrays of numbers. The request and response syntax is similar to /traffic/user/histogram/event 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/event request. The only supported groups are 'type' and 'origin', which can alternatively be listed using /dmp/traffic/user/histogram/event/describe.

Response

Identical to /traffic/user/histogram/event request.

Examples

Bash
$ python cx.py /dmp/traffic/user/histogram/event '{"siteId":"12345", "start":"-1h", "count":10, "min":1, "max":10, "groups":["type"]}'
{
 "start": 1467723407,
 "stop": 1467727008,
 "groups": [
 {
 "group": "type",
 "data": {
 "uniqueUsers": [
 44,
 56,
 46,
 52,
 50,
 59,
 53,
 91,
 86,
 91
 ],
 "items": [
 1,
 2,
 3,
 4,
 5,
 6,
 7,
 8,
 9,
 10
 ]
 }
 }
 ]
}

Last updated: