Skip to content

Commit 335b9c5

Browse files
author
markzegarelli
authored
Merge pull request #1422 from segmentio/userlist-updates
Update Userlist documentation
2 parents d5ce248 + 70b52c4 commit 335b9c5

File tree

6 files changed

+104
-42
lines changed

6 files changed

+104
-42
lines changed

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# destination categories last updated 2021-02-12
2+
# destination categories last updated 2021-02-22
33
items:
44
- display_name: Email Marketing
55
slug: email-marketing

src/_data/catalog/destinations.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# destination data last updated 2021-02-16
2+
# destination data last updated 2021-02-22
33
items:
44
- display_name: ActiveCampaign
55
slug: activecampaign
@@ -6500,8 +6500,7 @@ items:
65006500
url: connections/destinations/catalog/dreamdata-io
65016501
status: PUBLIC_BETA
65026502
logo:
6503-
url: >-
6504-
https://public-segment-devcenter-production.s3.amazonaws.com/75c94dfe-cda8-4544-be2d-8e67bb3e8d5f.svg
6503+
url: 'https://cdn.filepicker.io/api/file/Pof3qjPuRQeuverx9Jog'
65056504
mark:
65066505
url: >-
65076506
https://public-segment-devcenter-production.s3.amazonaws.com/72592d03-7475-4a82-ab80-bbd5e8f68d9e.svg
@@ -13500,6 +13499,13 @@ items:
1350013499
required: false
1350113500
description: Map your Segment properties to the Marketo Activity Fields
1350213501
settings:
13502+
- name: primaryKey
13503+
display_name: Set as Primary Key
13504+
type: BOOLEAN
13505+
deprecated: false
13506+
required: false
13507+
description: Mark this property as the Primary field in Marketo.
13508+
settings: []
1350313509
- name: segmentProperty
1350413510
display_name: Segment Property Name
1350513511
type: STRING
@@ -13535,13 +13541,6 @@ items:
1353513541
- date
1353613542
description: Enter the Marketo Field type.
1353713543
settings: []
13538-
- name: primaryKey
13539-
display_name: Set as Primary Key
13540-
type: BOOLEAN
13541-
deprecated: false
13542-
required: false
13543-
description: Mark this property as the Primary field in Marketo.
13544-
settings: []
1354513544
- name: event
1354613545
display_name: Segment Event Name
1354713546
type: STRING
@@ -23127,7 +23126,7 @@ items:
2312723126
slug: userlist
2312823127
name: catalog/destinations/userlist
2312923128
description: >-
23130-
Userlist.io is a simple behavior-based email automation tool for SaaS
23129+
Userlist is a simple behavior-based email automation tool for SaaS
2313123130
companies. See what your users do, and send them relevant behavior-driven
2313223131
communication.
2313323132
hidden: false

src/_data/catalog/source_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# source cateogries last updated 2021-02-12
2+
# source cateogries last updated 2021-02-22
33
items:
44
- display_name: Server
55
slug: server

src/_data/catalog/sources.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT
2-
# sources last updated 2021-02-12
2+
# sources last updated 2021-02-22
33
items:
44
- display_name: .NET
55
slug: net

src/connections/destinations/catalog/userlist/index.md

Lines changed: 89 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,115 @@
22
rewrite: true
33
title: Userlist Destination
44
---
5-
[Userlist.io](https://userlist.io/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) allows you to send behavior-based messages to your SaaS users. It's great for onboarding users as well as nurturing them throughout their journey.
65

7-
This destination is maintained by Userlist.io. For any issues with the destination, [contact the Userlist Support team](mailto:[email protected]).
6+
[Userlist](https://userlist.com/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) allows you to send behavior-based messages to your SaaS users. It's great for onboarding users as well as nurturing them throughout their journey.
87

9-
{% include content/beta-note.md %}
8+
This destination is maintained by Userlist. For any issues with the destination, [contact the Userlist Support team](mailto:[email protected]).
109

10+
{% include content/beta-note.md %}
1111

1212
## Getting Started
1313

1414
{% include content/connection-modes.md %}
1515

16-
1. From the Segment web app, click **Catalog**.
17-
2. Search for "Userlist" in the Catalog, select it, and choose which of your sources to connect the destination to.
18-
3. Enter the "Push API Key" into your Segment Settings UI which you can find from your [Userlist.io Push API settings](https://app.userlist.io/settings/push).
16+
1. From the Segment web app, click **Catalog**.
17+
2. Search for "Userlist" in the Catalog, select it, and choose which of your sources to connect the destination to.
18+
3. In the Userlist Segment destination settings, enter your Userlist "Push API Key". You can find this key in your [Userlist Push API settings](https://app.userlist.com/settings/push).
1919

20-
_**NOTE:** The Userlist.io Destination does not support tracking of anonymous users, so make sure to call `identify` before calling `track`. If you do call `track` on unidentified users, you will receive a 400 error which you can disregard if it was intentional._
20+
> info""
21+
> **NOTE:** The Userlist Destination does not support tracking of anonymous users, so make sure to call `identify` before calling `track` or `group`. If you do call `track` or `group` on unidentified users, you will receive a 400 error which you can disregard if it was intentional.
2122
2223
## Identify
2324

2425
If you're not familiar with the Segment Specs, take a look to understand what the [Identify method](https://segment.com/docs/connections/spec/identify/) does. An example call would look like:
2526

26-
analytics.identify('userId123', {
27-
28-
name: 'John Doe',
29-
role: 'Owner',
30-
createdAt: '2019-03-21T12:12:54.735+01:00'
31-
});
27+
```javascript
28+
analytics.identify('userId123', {
29+
30+
name: 'John Doe',
31+
role: 'Owner',
32+
createdAt: '2019-03-21T12:12:54.735+01:00'
33+
});
34+
```
3235

33-
Identify calls will be sent to Userlist.io as user records. If the `userId` is already known, it'll update the user record, otherwise it'll create a new one.
36+
Identify calls will be sent to Userlist as user records. If the `userId` is already known, it'll update the user record, otherwise it'll create a new one.
3437

3538
Here's how Segment fields map to Userlist users:
3639

37-
| Segment field | Userlist field | Description
38-
|-------------|---------------|-----------
39-
| `userId` | `identifier` | The unique identifier for this user. |
40-
| `traits` | `properties` | Additional properties describing the user. |
41-
| `traits.email` | `email` | The user's email address. |
42-
| `traits.createdAt` | `signed_up_at` | The time when the user was created. |
43-
40+
| Segment field | Userlist field | Description |
41+
| ------------------ | -------------- | ------------------------------------------ |
42+
| `userId` | `identifier` | The unique identifier for this user. |
43+
| `traits` | `properties` | Additional properties describing the user. |
44+
| `traits.email` | `email` | The user's email address. |
45+
| `traits.createdAt` | `signed_up_at` | The time when the user was created. |
4446

4547
## Track
4648

4749
If you're not familiar with the Segment Specs, take a look to understand what the [Track method](https://segment.com/docs/connections/spec/track/) does. An example call would look like:
4850

49-
analytics.track('Project created', {
50-
projectName: 'Party Planning'
51-
});
52-
53-
Track calls will be sent to Userlist.io as a new event. You may send additional properties to describe the event in more detail. Both the event name and additional properties will be stored with the event and normalized to snake case (`project_created` and `project_name`) automatically within Userlist.io.
51+
```javascript
52+
analytics.track('Project created', {
53+
projectName: 'Party Planning'
54+
});
55+
```
56+
57+
Track calls will be sent to Userlist as a new event. You may send additional properties to describe the event in more detail. Both the event name and additional properties will be stored with the event and normalized to snake case (`project_created` and `project_name`) automatically within Userlist.
58+
59+
To associate an event with both a user and a company, please include the company's identifier as `context.groupId` on the Track call:
60+
61+
```javascript
62+
analytics.track(
63+
'Project created',
64+
{
65+
projectName: 'Party Planning'
66+
},
67+
{
68+
context: {
69+
groupId: 'companyId123'
70+
}
71+
}
72+
);
73+
```
74+
75+
## Group
76+
77+
If you're not familiar with the Segment Specs, take a look to understand what the [Group method](https://segment.com/docs/connections/spec/group/) does. An example call would look like:
78+
79+
```javascript
80+
analytics.group('companyId123', {
81+
name: 'Segment'
82+
});
83+
```
84+
85+
| Segment field | Userlist field | Description |
86+
| ------------------ | -------------- | ------------------------------------------ |
87+
| `groupId` | `identifier` | The unique identifier for this company. |
88+
| `traits` | `properties` | Additional properties describing the user. |
89+
| `traits.name` | `name` | The company's name. |
90+
| `traits.createdAt` | `signed_up_at` | The time when the user was created. |
91+
92+
Group calls will be sent to Userlist as company records. If the `groupId` is already known, it'll update the company record, otherwise it'll create a new one.
93+
94+
Userlist supports custom properties to describe the relationship between users and groups (such as the user's role in a company). You can pass relationship properties in a Group call by using Userlist specific extensions.
95+
96+
```javascript
97+
analytics.group(
98+
'companyId123',
99+
{
100+
name: 'Segment'
101+
},
102+
{
103+
integrations: {
104+
Userlist: {
105+
extensions: {
106+
relationship: {
107+
properties: {
108+
role: 'owner'
109+
}
110+
}
111+
}
112+
}
113+
}
114+
}
115+
);
116+
```

templates/destinations.example.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16089,10 +16089,10 @@ destinations:
1608916089
settings: []
1609016090
- name: catalog/destinations/userlist
1609116091
display_name: Userlist
16092-
description: Userlist.io is a simple behavior-based email automation tool for SaaS
16092+
description: Userlist is a simple behavior-based email automation tool for SaaS
1609316093
companies. See what your users do, and send them relevant behavior-driven communication.
1609416094
type: STREAMING
16095-
website: http://userlist.io
16095+
website: http://userlist.com
1609616096
status: PUBLIC_BETA
1609716097
logos:
1609816098
logo: https://public-segment-devcenter-production.s3.amazonaws.com/4aa3cdd4-c5fe-4158-a196-ebd4bcfaaa7a.svg

0 commit comments

Comments
 (0)