OneSignal + Amplitude Integration Overview

Integrate OneSignal with Amplitude to send detailed message engagement events and import behavioral user cohorts. This enables real-time targeting based on user behavior to improve onboarding, re-engagement, and conversion.

Key benefits

  • Send message events to Amplitude: Track delivery, clicks, failures, and more across push, in-app, email, and SMS.
  • Import cohorts from Amplitude: Automatically sync behavior-based cohorts into OneSignal as filters for targeting.

This is an app-level integration, giving you granular control over which apps and events are linked.


Requirements

This integration does not create users. It maps the users in Amplitude to those in OneSignal.


Setup

Add Amplitude to OneSignal

In OneSignal, navigate to Data > Integrations > Amplitude and click Activate.

Amplitude Integration card in OneSignal

In Amplitude:

  1. Find your project API Key then copy-paste it into OneSignal.
  2. If using Amplitude’s EU servers, check Send events exclusively to Amplitude’s EU Residency Endpoint. You can verify this by your Amplitude URL. If you see eu.amplitude.com then you are using Amplitude’s EU servers.

Select message events

Select which OneSignal message events you want to send to Amplitude. When finished, click Activate.

Amplitude settings in OneSignal

Add OneSignal to Amplitude

In your Amplitude Destinations, add OneSignal.

Add OneSignal Destination in Amplitude

Set the Name as something identifiable like OneSignal - APP_NAME where APP_NAME is the name of the app in OneSignal.

You will need the following data available in OneSignal Settings > Keys & IDs :

  1. App ID
  2. API Key

USER ID mapping

This step is essential for cohort syncing and event tracking to work properly.

To match users across both systems:

  • Use a shared identifier: The External ID in OneSignal must match an Amplitude User ID Property selected (like user_id).
  • Verify that the selected user property exists across your Amplitude and OneSignal User Profiles.

Amplitude's dashboard for setting the OneSignal properties.

Click Save when finished.

You should now be able to export cohorts from Amplitude to OneSignal and collect message events from OneSignal to Amplitude.


Export Amplitude cohorts to OneSignal

You can sync the users within your Amplitude cohorts to the users within OneSignal as long as they have the matching User ID/External ID property discussed in the previous step.

Exporting user data from Amplitude does not create the user in OneSignal, the user must already exist and have the matching External ID.

To export users from Amplitude to OneSignal:

  1. In Amplitude, create a cohort. See Amplitude’s docs on cohorts.
  2. Click Sync and choose OneSignal as the destination.
  3. Choose sync frequency.

Image showing how you can set a sync for your cohorts with OneSignal

OneSignal Segment creation

  • The synced cohort appears in OneSignal as an Amplitude Segment filter.
  • A Segment for the cohort will automatically be created if the following conditions are met:
    • The users in the Amplitude Cohort also exist in OneSignal with matching External ID.
    • You must not exceed your Segment limit in OneSignal.

If both conditions are met, OneSignal will automatically generate a Segment using the Amplitude Cohort filter and name of the Cohort.

How to create a Segment from an Amplitude Cohort


Track message events in Amplitude

Once connected, OneSignal will send message events to Amplitude in real time.

Message events

These are the message event kinds that OneSignal sends to Amplitude. You can select which of these events you want to send to your Amplitude project within the OneSignal Integrations Settings.

Message Event Kind (OneSignal)Message Event Name (Amplitude)Event Description
Push Sent[OneSignal] Push SentPush notification successfully sent.
Push Received[OneSignal] Push Confirmed deliveryPush notification successfully received
Push Clicked[OneSignal] Push ClickedPush notification touched on device
Push Failed[OneSignal] Push FailedPush failed to be sent. Check the failed message report in OneSignal.
Push Unsubscribed[OneSignal] Push UnsubscribedThe Subscription unsubscribed from push.
In-App Impression[OneSignal] IAM DisplayedIn-App Message successfully displayed on device
In-App Clicked[OneSignal] IAM ClickedIn-App Message clicked on device
In-App Page Displayed[OneSignal] IAM Page DisplayedIn-App Message page is displayed
Email Sent[OneSignal] Email SentEmail successfully sent
Email Received[OneSignal] Email Confirmed deliveryEmail received by recipient
Email Opened[OneSignal] Email OpenedEmail opened by recipient
Email Link Clicked[OneSignal] Email ClickedEmail link clicked on
Email Unsubscribed[OneSignal] Email UnsubscribedEmail unsubscribed by recipient
Email Reported As Spam[OneSignal] Email Reported As SPAMEmail reported as spam by recipient
Email Bounced[OneSignal] Email Hard BouncedEmail returned to sender due to permanent error
Email Failed[OneSignal] Email Failed deliveryCould not deliver the email to the recipient’s inbox
Email Suppressed[OneSignal] Email Not delivering to suppressed email addressEmail not delivered as the recipient had suppressed the email address it was sent from
SMS Sent[OneSignal] SMS SentSMS sent to recipient
SMS Failed[OneSignal] SMS Failed deliverySMS failed to send
SMS Delivered[OneSignal] SMS Confirmed deliveerySMS successfully delivered
SMS Undelivered[OneSignal] SMS UndeliveredThe SMS could not be sent.

Event properties

These are the properties that are present on any events sent from OneSignal to Amplitude

PROPERTY NAMEDESCRIPTION
Distinct IDThe external_id associated with the message
Message IDThe identifier of the discrete message
Message NameThe message name
Message TitleThe message title
Message ContentsThe message contents
message_typeThe type of message sent, push, in-app, email, SMS
template_idThe message template used (API and Journey Messages)
subscription_idThe OneSignal set device/email/sms identifier
device_typeThe device type that received the message
languageThe two-character language code of the device
sourceonesignal (is indicated as the source for all events)

FAQ

Why don’t my cohort & segment counts match?

  1. Missing or mismatched External IDs Only users with a matching OneSignal External ID and Amplitude User ID are included. This integration doesn’t create users or subscriptions.

  2. Unsubscribed users OneSignal segments only display the count for subscribed Subscriptions. Unsubscribed Subscriptions are available for Journeys or In-App Messages.

For example, if an Amplitude cohort has 10 users but the OneSignal segment shows 8 Subscriptions, the 2 missing users may:

  • Not exist in OneSignal or have an incorrect External ID.
  • Have unsubscribed subscriptions.

To verify, check the Audience > Users tab in OneSignal to see if the users exist and have active subscriptions.

Do unsubscribed users sync from Amplitude?

Yes, but they are excluded from the OneSignal segment counts at this time. You can still message them via Journeys or In-app messsages if they have other Subscriptions or their Subscription type supports it.

Why doesn’t delivery data match?

A single user may have multiple Subscriptions (push devices, email addresses, phone numbers). Each Subscription generates its own delivery event. For example:

  • 1 user = 2 Android + 1 iOS + 2 Web = 5 push Subscriptions
  • 1 push message = up to 5 sent/received/clicked events

Use the subscription_id in event properties to trace the exact source.

To troubleshoot missing events:

  • Ensure OneSignal.login is called whenever a user is identified to set the External ID.
  • Verify that OneSignal.logout isn’t removing the External ID.
  • Check API requests or CSV uploads that may alter the External ID.

How can we send user/subscription events?

User and subscription-level events (e.g., permission granted, user login/logout) are not automatically sent.

The OneSignal SDK has event listeners that can be used to track these events for you to send to Amplitude:

Why is the OneSignal Subscription ID added to Amplitude as a device_id?

Amplitude expects a device_id for deduplication. OneSignal uses subscription_id for this, which maps into device_id automatically.

See Amplitude’s docs for more information.