Event Drill Down

About

The Drill Down API provides access to the same data which is available on the Engagement: Event Drill Down page of the justtrack dashboard.

Supported metrics
[
  "totalEventsCount"
]
Supported dimensions
[
  "app",
  "eventName",
  "country",
  "installAppVersionName",
  "network.id"
]
Supported event dimensions
[
    "jt_ad_placement",
    "jt_ad_network",
    "jt_ad_sdk_name",
    "jt_ad_unit",
    "jt_element_name",
    "jt_level_name",
    "jt_provider_name",
    "jt_item_id",
    "jt_item_name",
    "jt_item_type",
]

Table API

Use the Table API for feeding your own drill down tables. Send a POST request to:

curl -H X-API-Key: <API_KEY> https://api.justtrack.io/reporting/v1/drill-down/table

Request

{
    "cohort": {
        "enabled": false,
        "dx": [] 
    },
    "interval": {
        "from": "2023-01-01", 
        "until": "2023-01-05"
    }, 
    "dimensions": [
        "eventName",
        "eventDimension[DIMENSION NAME]" 
    ],
    "metrics": [ 
        "totalEventsCount"
    ], 
    "filters": {
        "app": [ 
            "APP NAME"
        ], 
        "eventName": [
            "EVENT NAME" 
        ],
        "eventDimension[DIMENSION NAME]": [ 
            "VALUE"
        ] 
    },
    "pagination": { 
        "page": 0, 
        "limit": 25
    }, 
    "orderBy": {
        "name": "eventName",
        "direction": "desc" 
    }
}

Response

{
   "pagination": {
       "page": int,
       "limit": int,
       "total": int
   },
   "rows": [
       {
           "<dimension>": string,
           "<metric>": float
       }
   ],
   "sum": {
       "<metric>": float
   }
}

Graph API

The Graph API offers the same data as Table API with more flexible date grouping options.

curl -H X-API-Key: <API_KEY> https://api.justtrack.io/reporting/v1/drill-down/graph

Request

{
   "cohort": {
       "enabled": bool,
       "dx": [int]
   },
   "interval": {
       "from": "YYYY-mm-dd",
       "until": "YYYY-mm-dd"
   },
   "granularity": string,
   "metrics": [string],
   "filters": {
       "<dimension>": [string]
   }
}

Response

{
   "<date>": {
       "<metric>": float
   }
}

<date> stands for the date within which data was aggregated. Depends on the requested granularity.

<metric> stands for the requested metric name and contains float value.

Last updated