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

Pattern matching in filters

For selected customers we support using patterns (e.g. wildcard queries) instead of explicitly specified items. An overview of the supported filter types/groups and the examples can be found below.

If you are interested in this upgrade, please contact your account manager for pricing information.

Supported filter types and groups

Types

Groups

event

'host', 'referrerHost', 'resolution', 'browserLanguage', 'browserVersion', 'region', 'city', 
'metrocode', 'postalCode', 'company', 'isoRegion', 'query', 'referrerQuery', 'exitLinkQuery'

keyword

'acronym', 'author', 'bidphrase', 'company', 'category', 'location', 'person', 'publishtime', 'site', 'taxonomy'
custom, intent, dmp-custom

all groups


Examples

$ python cx.py /traffic '{"siteId":"12345", "filters":[{"type":"event","group":"isoRegion","pattern":"us-*"}]}'
{
  "start": 1416291628,
  "stop": 1416295228,
    "data": {
      "events": 1505
    }
}


$ python cx.py /traffic '{"siteId":"12345", "filters":[{"type":"keyword","group":"taxonomy","pattern":"*/science"}]}'
{
  "start": 1416291628,
  "stop": 1416295228,
    "data": {
      "events": 1182
    }
}


$ python cx.py /traffic '{"siteId":"12345", "filters":[{"type":"keyword","group":"person","pattern":"*zlatan*"}]}'
{
  "start": 1416291628,
  "stop": 1416295228,
    "data": {
      "events": 1418
    }
}


Last updated: