Segment makes it easy to send your data to OneSignal (and lots of other destinations). Once you've tracked your data through our open source libraries we'll translate and route your data to OneSignal in the format they understand. Learn more about how to use OneSignal with Segment.
After destination Segment with your app, enable OneSignal in your segment destinations. Use your OneSignal App ID to enable the destination. This ID can be found on the settings page for your app on the OneSignal dashboard.
OneSignal will only track new users. If you have existing push notification data in another service, please get in touch with us to transfer it over: firstname.lastname@example.org
OneSignal supports the
track methods and is currently only available on iOS via Segment.
Identify & Track
Both Identify and Track have identical behavior for the OneSignal destination.
OneSignal will store the following data fields about a user:
Device OS Version
Push Notification Token(If available)
Advertising ID(If available)
Identifier For Vendor(iOS Only)
OneSignal will also assign the following custom tags based on user attributes or traits, when available:
Segment user ID
Segment Group ID
All of the above values can be used to deliver and schedule notifications to your users from the OneSignal dashboard.
For user-property destinations, an identify call will be sent to the destination for each user being added and removed. The property name will be the snake_cased version of the audience name you provide with a true/false value. For example, when a user first completes an order in the last 30 days, we will send an identify call with the property
order_completed_last_30days: true, and when this user no longer satisfies we will set that value to
When the audience is first created an identify call is sent for every user in the audience. Subsequent syncs will only send updates for those users which were added or removed since the last sync.
Segment lets you change these destination settings via your Segment dashboard without having to touch any code.
Your OneSignal App ID/key can be found under your account settings