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

/dmp/traffic/event

This API aggregates top-lists for the standard groups associated with the DMP events fed for the given site and/or site group.

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.

The origin items are always prefixed.

Request

Identical to /traffic/event except that:

  • the only fields that can be aggregated are events and uniqueUsers, where events is an implicit field and the uniqueUsers field has to be specified explicitly

  • historyFields are unsupported

  • groups must always be specified explicitly – use /describe subpath to list available groups.

Response

Identical to /traffic/event. See the first example below.

Examples

Bash
$ python cx.py /dmp/traffic/event/describe '{"siteId":"9222302702321341959", "start":"-1d"}'
{
 "start": 1413361798,
 "stop": 1413448198,
 "groups": [
 "type",
 "origin"
 ]
}
Bash
$ python cx.py /dmp/traffic/event '{"siteId":"9222302702321341959", "start":"-1d", "groups":["origin","type"]}'
{
 "start": 1413361823,
 "stop": 1413448223,
 "groups": [
 {
 "items": [
 {
 "item": "conversion",
 "data": {
 "events": 2577
 }
 },
 {
 "item": "impression",
 "data": {
 "events": 1789
 }
 },
 {
 "item": "click",
 "data": {
 "events": 174
 }
 }
 ],
 "group": "type"
 },
 {
 "items": [
 {
 "item": "cxd-funnel",
 "data": {
 "events": 2577
 }
 },
 {
 "item": "cxd-cxensedisplay",
 "data": {
 "events": 1963
 }
 }
 ],
 "group": "origin"
 }
 ]
}

Last updated: