Push notifications tracking

Enterprise feature

Audit of push notifications delivery

As soon as the Push Tracking functionality is enabled, each notification that you send for specific devices returns the unique tracking codes in the response:

{
  "status_code": 200,
  "status_message": "OK",
  "response": {
    "Messages": ["CODE_NOT_AVAILABLE"],
    "TrackingCodes": ["TRACKING_CODE_1"]
  }
}

Later you may use the getTrackingLog API method in order to get the tracking logs of notifications:
Method https://cp.pushwoosh.com/json/1.3/getTrackingLog

{
    "request": {
        "auth": "API TOKEN",
        "date": "2017-01-02" //[optional] date for which tracking log is required
    }
}

Response:

{
    "status_code": 200
    "status_message": "OK"
    "response": {
        "request_id": "2702dd59b826e4a23b2f1af24de53108" //request_id for getResults method
    }
}

Then use the /getResults method: https://cp.pushwoosh.com/json/1.3/getResults

{
    "request": {
                "auth": "API_ACCESS_TOKEN",
                "request_id": "2702dd59b826e4a23b2f1af24de53108"
               }
}

In the results you will get the tracking log link:

{
    "status_code":200,
    "status_message":"OK",
    "response":{
        "fileName":"http://static.pushwoosh.com/tracking_log_link.zip" // direct link to zip file
    }
}

In the ZIP file you will find the CSV list (example below):

//timestamp;tracking_code;target_id;hwid;status;description
2011-01-01T15:03:01.012345;T-8C4A-B1F3567F-80CDFDF3;USER_111;HWID_111;created;
2011-01-01T15:03:01.012345;T-8C4A-B1F3567F-80CDFDF3;USER_111;HWID_111;sent;
2011-01-01T15:03:01.012345;T-8C4A-B1F3567F-80CDFDF3;USER_111;HWID_111;delivered;

Where:
timestamp - time of the specified event
tracking_code - tracking code generated for a given message
target_id - device identifier (hwid/pushtoken) that was used for device specifying
hwid - hardware id
status - notification status: created, sent, delivered (notification gateway reported that notification was passed for the further delivery), failed (sending was unsuccessful)
description - additional info

Push notifications tracking