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

/dmp/traffic

This API aggregates top-level metrics associated with the DMP events fed for the given site and/or site group. Similar to /traffic, the slice is defined by combining the time period with filters. Filters can be defined for properties and custom parameters associated with the incoming DMP events as well as the corresponding Traffic events. Join between the two event types is described here. DMP event parameters and custom parameters can be aggregated using /dmp/traffic/event and /dmp/traffic/custom.

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 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. See the example below.

Response

Identical to /traffic. See the first example below.

Examples

Bash
$ python cx.py /dmp/traffic '{"siteId":"9222302702321341959", "start":"-1d"}'
{
 "start": 1413361789,
 "stop": 1413448189,
 "data": {
 "events": 4545
 }
}

Last updated: