Skip to content

Commit 387d3be

Browse files
committed
adding new integration, OneSignal New
1 parent 84f055a commit 387d3be

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed
109 KB
Loading
108 KB
Loading
573 KB
Loading
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
rewrite: true
3+
title: OneSignal New Destination
4+
---
5+
6+
# OneSignal Destination
7+
[OneSignal](https://onesignal.com/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) is the market leader in driving customer engagement with multi-channel messaging across Web and Mobile Push, In-App Messages, SMS, and Email subscribers.
8+
This destination is maintained by OneSignal. For any issues with the destination, [contact OneSignal Support team](mailto:[email protected]).
9+
10+
**Note**: *The OneSignal Destination is currently in beta.*
11+
This means that OneSignal is still actively developing the destination and some functionality may change before it becomes generally available.
12+
13+
# Getting Started
14+
**Do not remove this line. It will auto-populate the following information for your integration:** **https://cl.ly/23e637f055f7
15+
{% include content/connection-modes.md %}
16+
17+
1. From the Destinations catalog page in the Segment App, click **Add Destination**.
18+
1. Search for "OneSignal" in the Destinations Catalog, and select the "OneSignal" destination.
19+
1. Choose which Source should send data to the "OneSignal" destination.
20+
1. Go to the [OneSignal dashboard](https://app.onesignal.com/apps/), select the App and go to the Settings → Keys & IDs. Copy the “App ID” and the “API key”.
21+
1. Enter the OneSignal “App ID” and the “API key” in the "OneSignal" destination settings in Segment and Enable the App.
22+
1. Please make sure you have an “[External User ID](https://documentation.onesignal.com/docs/onboarding-with-onesignal#step-3-connect-user-data-to-onesignal)” set for your users on OneSignal. OneSignal uses the “External User ID” to match with the “User ID” value from Segment.com.
23+
24+
> *OneSignal Destination app is accessible only to customers on OneSignal Professional and Enterprise plans.*
25+
26+
# Identify
27+
If you aren't familiar with the Segment Spec, take a look at the [Identify method documentation](https://segment.com/docs/connections/spec/identify/) to learn about what it does. An example call would look like:
28+
```js
29+
analytics.identify('userId123', {
30+
firstName: 'John',
31+
lastName: 'Doe',
32+
country:USA
33+
});
34+
```
35+
36+
These user traits will appear as player [data tags](https://documentation.onesignal.com/docs/add-user-data-tags) in OneSignal.
37+
38+
*Note:* OneSignal does not accept nested objects or arrays as user properties.
39+
40+
![](images/demo.png)
41+
42+
43+
44+
# Track
45+
If you aren't familiar with the Segment Spec, take a look at the [Track method documentation](https://segment.com/docs/connections/spec/track/) to learn about what it does. An example call would look like:
46+
```js
47+
analytics.track('Add to Cart', {
48+
product_name: 'Sunglasses',
49+
brand: 'Rayban'
50+
})
51+
```
52+
53+
For events and associated properties sent using Track call, OneSignal will *drop* the event name (for example, *Add to Cart*), but store all the properties (for example, *productname and brand*) as data tags.
54+
55+
![](images/track-example.png)
56+
57+
58+
59+
60+
# Personas
61+
You can send computed traits and audiences generated using [Segment Personas](https://segment.com/docs/personas) to OneSignal destination. To learn more about Personas, contact us for a [demo](https://segment.com/contact/demo).
62+
63+
### Audiences
64+
Persona Audiences automatically show up as a [segment](https://documentation.onesignal.com/docs/segmentation) in OneSignal.
65+
66+
Audiences sent using a **Track call** will create a OneSignal [segment](https://documentation.onesignal.com/docs/segmentation) with the *Audience Name*.
67+
68+
Audiences sent using an **Identify call** will
69+
1. create a OneSignal segment with the *Audience Name* and
70+
2. add data tags (if there are additional properties in the Identify call) on all the matching user records.
71+
72+
![](images/audiences.jpg)
73+
74+
The Identify and Track calls are sent to OneSignal whenever a user enters or exits the Audience.
75+
76+
### Computed Traits
77+
Personas Computed Traits are stored as [Data Tags](https://documentation.onesignal.com/docs/add-user-data-tags) on the OneSignal user (player) records whether passed to OneSignal as an Identify call or a Track call. You can then use these data tags to manually create OneSignal segments and automate your messaging workflows.
78+
79+
80+
81+
# OneSignal Destination FAQ
82+
83+
**Managing Segment’s Reserved and Custom Traits**
84+
* All the Segment’s user traits are sent to OneSignal as data tags. The number of data tags allowed on OneSignal depends on your OneSignal pricing plan. Tags over the entitled number will be dropped.
85+
* OneSignal always updates the firstName and the lastName properties for matching users. All other traits are added/updated on a firstcome basis. *firstName* and *lastName* tags are stored as "first_name" and "last_name".
86+
* User properties sent to OneSignal with blank/null values are removed from the OneSignal user record. This is done to make sure you are within your data tag limits.
87+
* OneSignal doesn’t store email and phone properties as these key identifiers are stored as separate player records in OneSignal. To update user traits for these records in OneSignal
88+
* You must create a player record with the email address and/or a phone number and map those records with the External_User_ID.
89+
* Additional properties sent from Segment will then be automatically mapped across all your matching records, including email and phone number records.

0 commit comments

Comments
 (0)