Private Offering feature
To enable Push Tracking, please contact your Customer Success Manager.
Please be aware that Push Tracking is not available for CSV pushes.
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:
Example{"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
Example{"request":{"auth":"API TOKEN","date":"2017-01-02" // optional, date for which tracking log is required}}
Response:
Response example{"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
Example{"request":{"auth":"API_ACCESS_TOKEN","request_id":"2702dd59b826e4a23b2f1af24de53108"}}
In the results you will get the tracking log link:
Example{"status_code":200,"status_message":"OK","response":{"fileName":"http://static.pushwoosh.com/tracking_log_link.zip" // direct link to zip file}}
Please note the push tracking log contains messages created within the last 14 days.
In the ZIP file you will find the CSV list (example below):
//timestamp;tracking_code;target_id;hwid;status;description2011-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;2011-01-01T15:03:01.012345;T-8C4A-B1F3567F-80CDFDF3;USER_111;HWID_111;opened;
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), opened.
description - additional info
To enable logging of push opens, please contact our Customer Support team or your Customer Success Manager.