- Message events → Mixpanel: Track delivery, clicks, failures, and more for all channels.
- Cohorts → OneSignal: Sync behavior-based Mixpanel cohorts as targeting filters in OneSignal.
Requirements
- Mixpanel Account
- OneSignal Paid Plan
- OneSignal app with External ID set.
This integration does not create Users. It maps Users in Mixpanel to existing Users in OneSignal by matching identifiers.
Setup
Add Mixpanel to OneSignal (Outbound)
Sends OneSignal message events into your Mixpanel project.- In OneSignal, navigate to Data > Integrations > Mixpanel and click Activate.

In Mixpanel
- Find your Project Token then copy-paste it into OneSignal.
- Check your Data Residency. If using Mixpanel’s EU servers, check the Send events exclusively to Mixpanel’s EU Residency Server box.
Select message events
Select which OneSignal message events you want to send to Mixpanel. When finished, click Activate.
Add OneSignal to Mixpanel (Inbound)
In your Mixpanel Integrations, add OneSignal.
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:
- App ID
- API Key
User ID mapping
The External ID in OneSignal must match a Mixpanel User ID Property you select (e.g.,user_id). Verify this property is populated in both systems — cohort syncing and event tracking depend on an exact match.




Click Continue when finished. You should now be able to export cohorts from Mixpanel to OneSignal and collect message events from OneSignal to Mixpanel.
Export Mixpanel cohorts to OneSignal
Sync Mixpanel cohorts to OneSignal using the matching External ID configured above. Exporting does not create Users — each User must already exist in OneSignal.- In Mixpanel, create a cohort.
- Click Options > Export to… > The OneSignal Connection name.

- Choose sync frequency and press Begin Sync.

OneSignal Segment creation
The synced cohort appears as a Mixpanel Segment filter. OneSignal automatically creates a Segment for the cohort if:- The Users in the Mixpanel cohort also exist in OneSignal with a matching External ID.
- You have not exceeded your Segment limit in OneSignal.
Mixpanel requires at least one matching User to create a Segment in OneSignal. Once the Segment is created, it will remain in OneSignal even if the cohort later has no Users. In that case, the Segment shows as empty until Users are added again.

Track message events in Mixpanel
OneSignal sends the following message events to Mixpanel in real time. Select which events to send in Data > Integrations > Mixpanel. To test, send yourself a message from OneSignal, then navigate to your user profile page in Mixpanel. Within the Activity Feed, you should see the events populate.
Message events
| Message Event Kind (OneSignal) | Message Event Name (Mixpanel) | Event Description |
|---|---|---|
| Push Sent | Message Sent | Push notification successfully sent |
| Push Received | Message Received | Push notification successfully received |
| Push Clicked | App Opened from Push | Push notification touched on device |
| Push Failed | Push Failed | Push failed to be sent. Check the failed message report in OneSignal. |
| Push Unsubscribed | Push Unsubscribed | The Subscription unsubscribed from push. |
| In-App Impression | Message Sent | In-App Message successfully displayed on device |
| In-App Clicked | Message Opened | In-App Message clicked on device |
| In-App Page Displayed | In-App Page Displayed | In-App Message page is displayed |
| Email Sent | Message Sent | Email successfully sent |
| Email Received | Message Received | Email received by recipient |
| Email Opened | Message Opened | Email opened by recipient |
| Email Link Clicked | App Opened from Push | Email link clicked on |
| Email Unsubscribed | Email Unsubscribed | Email unsubscribed by recipient |
| Email Reported As Spam | Email Reported as Spam | Email reported as spam by recipient |
| Email Bounced | Email Bounced | Email returned to sender due to permanent error |
| Email Failed | Email Failed | Could not deliver the email to the recipient’s inbox |
| Email Suppressed | Email Suppressed | The email address is on your suppression list. Either it bounced or marked your emails as spam. |
| SMS Sent | Message Sent | SMS sent to recipient |
| SMS Failed | SMS Failed | SMS failed to send |
| SMS Delivered | Message Received | SMS successfully delivered |
| SMS Undelivered | SMS Undelivered | The SMS could not be sent. |
Event properties
Every event sent from OneSignal to Mixpanel includes these properties:| PROPERTY NAME | DESCRIPTION |
|---|---|
| Distinct ID | The external_id associated with the message |
| Message ID | The identifier of the discrete message |
| Message Name | The message name |
| Message Title | The message title |
| Message Contents | The message contents |
| message_type | The type of message sent, push, in-app, email, SMS |
| template_id | The message template used (API and Journey Messages) |
| subscription_id | The OneSignal set device/email/sms identifier |
| device_type | The device type that received the message |
| language | The two-character language code of the device |
| source | onesignal (is indicated as the source for all events) |
Custom events (third-party)
The Mixpanel integration does not natively support sending custom events from Mixpanel to OneSignal. Unlike Amplitude, there is no built-in event destination from Mixpanel to OneSignal. If you need to route Mixpanel behavioral events into OneSignal as custom events to trigger Journeys or Segments, you can use a third-party connector like Vendo. Vendo streams selected Mixpanel events to OneSignal as custom events for campaign triggering.FAQ
Why don’t my cohort and segment counts match?
- Missing or mismatched External IDs Only Users with a matching OneSignal External ID and Mixpanel User ID are included. This integration does not create Users or Subscriptions.
- Unsubscribed Users OneSignal Segments only display the count for subscribed Subscriptions. Unsubscribed Subscriptions are available for Journeys or In-App Messages.
- Not exist in OneSignal or have an incorrect External ID.
- Have unsubscribed Subscriptions.
Do unsubscribed Users sync from Mixpanel?
Yes, but they are excluded from the OneSignal segment counts at this time. You can still message them via Journeys or In-App Messages 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
subscription_id in event properties to trace the exact source.
To troubleshoot missing events:
- Ensure
OneSignal.loginis called whenever a user is identified to set the External ID. - Verify that
OneSignal.logoutisn’t removing the External ID. - Check API requests or CSV uploads that may alter the External ID.
Can I send custom events from Mixpanel to OneSignal?
Not natively. The Mixpanel integration supports message events (OneSignal → Mixpanel) and cohort syncing (Mixpanel → OneSignal), but does not include a built-in custom event destination. To route Mixpanel events into OneSignal as custom events, use a third-party connector like Vendo.How can I 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 Mixpanel:- User State Observer: Mobile SDK, Web SDK
- Permission Observer: Mobile SDK, Web SDK
Related pages
Analytics overview
Overview of OneSignal analytics, delivery metrics, and event tracking.
Custom events
Track User actions to trigger Journeys or power analytics.
Need help?Chat with our Support team or email
support@onesignal.comPlease include:- Details of the issue you’re experiencing and steps to reproduce if available
- Your OneSignal App ID
- The External ID or Subscription ID if applicable
- The URL to the message you tested in the OneSignal Dashboard if applicable
- Any relevant logs or error messages