Here at OneSignal, we understand gaining analytics into your subscribers and messages are key to your messaging and campaign success.
This guide will explain how to get further analytics with OneSignal for:
- Subscriptions Tracking
- Notification Tracking Section
- Device Tracking
- Prompt Impression-Tracking Section
Using the OneSignal Dashboard, you can view the amount of Total Users (Subscribed and Unsubscribed) which can be broken down by day, month and year while also sorting by the different platforms (iOS, Android, Email and different Web Browsers).
Total Users on Mobile Apps will be the amount of devices that have opened the app and initialized the SDK with a network connection. Android users get subscribed when they open the app for the first time. iOS users need to be prompted in most cases. If you only have a Website with OneSignal, then the increase in Total Users will reflect subscriber increases since only subscribed web users are tracked.
The Revoked Stat counts how many devices were subscribed at one point, but then unsubscribed and continue to use the app or website.
When someone subscribes or unsubscribes from messages, OneSignal automatically detects this and updates the status. The OneSignal SDK provides Subscription Observer methods to help you detect these events and send it to your database or analytics platform.
Using the OneSignal dashboard or API, you can export your user data for in-depth analytics tracking.
Segments can be created with "First Session" filter for all devices that first subscribed within x amount of time. For example, setting "First Session less than 24 hours" will give you all devices that subscribed in the past 24 hours.
Exporting user data will contain the subscription status and
first_session parameter indicating the first time the device was created in our system. This is the "subscription date" for Web and Android App device records because Web device records are only created when the user subscribes and Android App devices are created and subscribed upon opening the app. iOS devices generally need to opt-in to subscribe unless you enable Provisional Push Notifications in which case they are subscribed immediately like android users.
Tracking the "unsubscribe date" or iOS subscription date can be done with the Subscription Observer methods and Time Operators.
Export all the user data and sort by
subscribed = Yes or
invalid_identifier = f to see how many records are currently subscribed at the time of exporting the file.
OneSignal provides notification analytics like clicked, received, sent on a per notification basis.
For tracking notification data on individual users, it is recommended to use a 3rd Party Analytics tool or the OneSignal SDK options listed below.
Notification Data Limitations
Notifications sent from the API or automated messages are only kept for 30 days. You will need to export notification data every 30 days if you plan to keep this data. See Exporting Data or read below for more details on saving this data.
In OneSignal's Delivery Page you can view notifications sent and click for individual notification details. You can also export notification data directly from this page. For instance, the dashboard "Delivered" is how many notifications were successfully sent to the FCM/APNS/HMS/etc servers, while Confirmed shows how many were delivered to individual devices.
Outcomes allow you to track any events or behavior you can think of like purchases, specific app functionality and even clicks by language that occur based on direct notification clicks or influenced notification sends. You can view this data in the dashboard or use the View Outcomes API.
Using the API, the View Notification and View Notifications endpoints will return all notification-level data like
"successful" (how many delivered to FCM/APNS/HMS/etc), and
"received" (received/Confirmed Deliveries). This will also show the targeting parameters used like segments, filters or if you sent to specific devices.
The Notification History API allows viewing the specific Player IDs that
"clicked" and were
"sent" the notification.
OneSignal provides device level tracking based on the following data:
Your app version from Android Studio
Operating System Version
Each device's Operating System Version. Example:
Operating System Type
Device Operating System Type. See API
Device Hardware String Code.
For Operating System Version and Device Model would need to Add Data Tags. For tracking Web Subscribers on Mobile Devices, this would require tags. See our guide to detect and tag Web Subscribers by device.
Prompting users to subscribe to push is required on Websites and recommended on iOS mobile apps. Android mobile apps automatically subscribe users when they download and open the app.
popoverShown- Slide Prompt has just animated into view and is being shown to the user.
popoverAllowClick- The "Continue" button on the Slide Prompt was clicked.
popoverCancelClick- The "No Thanks" button on the Slide Prompt was clicked.
popoverClosed- The Slide Prompt was just closed.
For the Native Browser Prompt we have the Notification Permission Change Event which tells you what action the user took on the native prompt (clicked "Allow", "Deny" or "X") and the
permissionPromptDisplay event which fires whenever the native prompt is shown.
Example code for implementing these events in our Google Analytics Guide.
Using In-App Messaging you can setup your iOS app to trigger the iOS Subscription Prompt using our iOS Push Opt-In Prompt guide and the In-App Message Click Handler Method to detect the option selected.
If you are looking to save per-segment or per-user data for analytics purposes, the best option is to use the Create notification REST API and additionally save a copy of the notification id and targeting parameters on your server. Once the data is stored by your app or on your server, you can display it to the user when you choose.
If you are looking to save this data to create an "inbox" or "activity feed" for your site/app, see our Create an Activity Feed guide.
One option is to use Templates. This will allow you to view clicked/opened and sent stats based on the template used.
Another option is to Export Notification Data with the API or Dashboard and track the
"converted" counts for clicks and
"successful" counts for sends.
More details below in How can I track campaigns or different notification types.
There are a couple ways to achieve this:
1 - Using
utm_parameters with an Analytics Integration like Google Analytics
2 - Use OneSignal Templates. Each time a template is sent from the dashboard or
"template_id" specified in our API it will aggregate the data in our Templates section of the dashboard. You can also access the
"template_id" parameter in the View notifications API calls or Notification Export.
3 - Similar to using Templates above, you can specify a "campaign_id" for example using the "additional data" fields of the notification and access this data in the notification exports to gain aggregated data.
Updated 3 days ago