OneSignal will automatically send notification events to your analytics dashboard if Google Analytics for Firebase is correctly implemented. Works with iOS and Android.
Event Name | Details |
---|---|
os_notification_opened | A OneSignal notification was opened |
os_notification_received | A OneSignal notification was received. (Android Only) |
os_notification_influence_open | An application was opened within 2 minutes of a OneSignal notification being received. (iOS requires additional setup) |
Parameter Name | Parameter Value | Details |
---|---|---|
source | ”OneSignal” | To attribute this event’s source to the OneSignal SDK |
medium | ”notification” | A formal indication that the medium for the event is a notification |
notification_id | the notification_id from a particular OneSignal notification | You can attribute a notification ID to a particular “sent” notification on the dashboard |
campaign | If using a template:[template_name]-[template_id] If not: First 10 letters of the headings API property or notification Title. | Campaigns are a way to group notifications that are similar, such as notifications using the same template or title. |
Firebase enabled in OneSignal
Check your app logs
os_notification_opened
,os_notification_received
, or os_notification_influence_open
Firebase events in LogCat
Go to the Firebase console
Firebase console
Follow the DebugView Setup Guide
debug
mode. Here is a great video on this for iOS: https://youtu.be/kpkW78OSbiw?t=289Example Debug LogsCheck the DebugView
DebugView
os_notification_opened
and received event os_notification_received
may not work if the Firebase library has not initialized in time so the Firebase library drops the event. More details on this github issue.