Notification delivery and open rates allow you to analyze the success of your mobile push campaigns in more detail. To display this data in eSputnik, you need to implement the return of the status of messages to our system.
Choose one of the two available methods for transferring push notification status data from your app.
The delivery and clicks analytics methods described below are intended for projects that have not installed our SDK
Use this Update interaction status API method to return
DELIVERED status (if the notification was delivered to the device).
In addition to the status value in interactionId, also pass the FCM token and the time of status change on the device in the request's body.
There are differences for exporting message delivery data from different operating systems.
Getting a report on push notifications is possible using "Notification Service Extension" and calling the API inside the service extension.
Add "Notification Service Extension" to your app.
In didReceiveNotificationRequest add your code for calling web service to report to your server about the received message.
override func didReceive( request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void)_
didReceiveNotificationRequest should consist of a http request (PUT) with delivered status to Update interaction status.
Enable Background fetch in Capabilities → Background Modes of your app.
The "content-available" and "mutable-content" parameters are enabled (have value == 1) when transmitting tokens to APN. If data transmission is configured via FCM, only the “mutable-content” parameter is enabled and has value == 1.
Learn more about modifying content in delivered notifications in Apple's guide.
Use a service that extends FirebaseMessagingService to receive messages. A service should override the onMessageReceived and onDeletedMessages callbacks.
In the message editor, you can add a link to the message body without being able to analyze its click rate.
When adding a link, two more fields - es_link_raw and es_link - will be passed in the push notification body:
es_link_raw – http://example.com/somelink – contains the original link that can be opened in the device’s browser or can be an internal link, directing to other app sections;
es_link – https://hh.esclick.me/37NdHw333DjRcukc0l – created based on the added link and contains a wrapped link used for click tracking.
For your mobile app, use the data from the field es_link_raw to redirect the user to the app section or to the web resource; use a GET request by the link in es_link to track clicks.
BigQuery allows you to process large amounts of data, analyze it in detail using BigQuery SQL, export the information to other services, and or use the data for your custom machine learning models. In order to transmit the statuses of sent mobile notifications to eSputnik through this platform, you need to follow these steps:
- Link your project to BigQuery.
- Set up data export from the app to BigQuery:
- Integrate your eSputnik account with BigQuery.
Connecting BigQuery as an external data source in eSputnik is available in the Growth and Enterprise plans. Please note that BigQuery also has its own pricing plans.
Updated 18 days ago