Skip to content

Commit b2b5bb1

Browse files
gezgblackShamil Ataevmarkzegarellimarkzegarellisanscontext
authored
Courier Destination Docs (#1162)
* Courier Destination Docs * grammar and formatting cleanup * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * Update src/connections/destinations/catalog/courier/index.md Co-authored-by: LRubin <[email protected]> * last message edit * updated yml Co-authored-by: Shamil Ataev <[email protected]> Co-authored-by: markzegarelli <[email protected]> Co-authored-by: markzegarelli <[email protected]> Co-authored-by: LRubin <[email protected]>
1 parent bd99c97 commit b2b5bb1

File tree

2 files changed

+166
-21
lines changed

2 files changed

+166
-21
lines changed

src/_data/catalog/destinations.yml

Lines changed: 79 additions & 21 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 2020-10-21
2+
# destination data last updated 2020-10-22
33
items:
44
- display_name: ActiveCampaign
55
slug: activecampaign
@@ -5067,6 +5067,62 @@ items:
50675067
server: false
50685068
previous_names:
50695069
- Countly
5070+
- display_name: Courier
5071+
slug: courier
5072+
name: catalog/destinations/courier
5073+
description: >-
5074+
The Smartest Way to Design & Deliver Notifications. Design once, deliver to
5075+
any channel through one API.
5076+
hidden: false
5077+
url: connections/destinations/catalog/courier
5078+
status: PUBLIC_BETA
5079+
logo:
5080+
url: >-
5081+
https://public-segment-devcenter-production.s3.amazonaws.com/422ec86a-be9f-4050-811d-4b2322f5d6b5.svg
5082+
mark:
5083+
url: >-
5084+
https://public-segment-devcenter-production.s3.amazonaws.com/e0952f57-7d60-45b8-813f-fedff98dcb3f.svg
5085+
categories:
5086+
- Email Marketing
5087+
- Livechat
5088+
- Marketing Automation
5089+
- SMS & Push Notifications
5090+
components: []
5091+
platforms:
5092+
browser: true
5093+
server: true
5094+
mobile: true
5095+
browserUnbundlingSupported: false
5096+
browserUnbundlingPublic: false
5097+
methods:
5098+
alias: true
5099+
group: true
5100+
identify: true
5101+
page_view: false
5102+
track: true
5103+
settings:
5104+
- name: apiKey
5105+
display_name: API Key
5106+
type: STRING
5107+
deprecated: false
5108+
required: true
5109+
string_validators:
5110+
regexp: '^.{8,}$'
5111+
description: >-
5112+
Locate your Courier Auth Token by visiting any notification's settings
5113+
dialogue and copy / paste it here
5114+
settings: []
5115+
connection_modes:
5116+
device:
5117+
web: false
5118+
mobile: false
5119+
server: false
5120+
cloud:
5121+
web: false
5122+
mobile: false
5123+
server: false
5124+
previous_names:
5125+
- Courier
50705126
- display_name: Crazy Egg
50715127
slug: crazy-egg
50725128
name: catalog/destinations/crazy-egg
@@ -13098,6 +13154,26 @@ items:
1309813154
required: false
1309913155
description: Map your Segment properties to the Marketo Activity Fields
1310013156
settings:
13157+
- name: marketoAttributeType
13158+
display_name: Marketo Field Type
13159+
type: SELECT
13160+
deprecated: false
13161+
required: true
13162+
select_validators:
13163+
select_options:
13164+
- string
13165+
- boolean
13166+
- number
13167+
- date
13168+
description: Enter the Marketo Field type.
13169+
settings: []
13170+
- name: primaryKey
13171+
display_name: Set as Primary Key
13172+
type: BOOLEAN
13173+
deprecated: false
13174+
required: false
13175+
description: Mark this property as the Primary field in Marketo.
13176+
settings: []
1310113177
- name: segmentProperty
1310213178
display_name: Segment Property Name
1310313179
type: STRING
@@ -13120,26 +13196,6 @@ items:
1312013196
Enter the Marketo Field name. Make sure to copy and paste the exact
1312113197
API Name for your field as it appears in Marketo.
1312213198
settings: []
13123-
- name: marketoAttributeType
13124-
display_name: Marketo Field Type
13125-
type: SELECT
13126-
deprecated: false
13127-
required: true
13128-
select_validators:
13129-
select_options:
13130-
- string
13131-
- boolean
13132-
- number
13133-
- date
13134-
description: Enter the Marketo Field type.
13135-
settings: []
13136-
- name: primaryKey
13137-
display_name: Set as Primary Key
13138-
type: BOOLEAN
13139-
deprecated: false
13140-
required: false
13141-
description: Mark this property as the Primary field in Marketo.
13142-
settings: []
1314313199
- name: event
1314413200
display_name: Segment Event Name
1314513201
type: STRING
@@ -13637,6 +13693,8 @@ items:
1363713693
description: >-
1363813694
Enable this setting to send your events to Mixpanel's [EU
1363913695
endpoint](https://developer.mixpanel.com/docs/implement-mixpanel#section-implementing-mixpanel-in-the-european-union-eu).
13696+
In Mixpanel, be sure to enable Data Residency under Project Settings > Set
13697+
up Mixpanel > Data Residency.
1364013698
settings: []
1364113699
- name: eventIncrements
1364213700
display_name: Events to increment in People
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
rewrite: true
3+
title: Courier Destination
4+
---
5+
6+
[Courier](https://courier.com?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) provides a way to design and deliver notifications. Design once with a rich visual editor and deliver to any channel through one API request.
7+
8+
This destination is maintained by Courier. For any issues with the destination, [contact the Courier support team](mailto:[email protected]).
9+
10+
{% include content/beta-note.md %}
11+
12+
## Getting Started
13+
14+
{% include content/connection-modes.md %}
15+
16+
1. From the Destinations catalog page in the Segment App, click **Add Destination**.
17+
2. Search for “Courier” in the Destinations Catalog, and select the “Courier” destination.
18+
3. Choose which Source should send data to the “Courier” destination.
19+
4. Go to the [Courier Settings Page](https://courier.com/settings), find and copy the “Auth Token”.
20+
5. Enter the “Auth Token” in the “Courier” destination settings field “API Key” in Segment.
21+
22+
## Identify
23+
24+
If you aren’t familiar with the Segment Spec, read through the [Identify method documentation](https://segment.com/docs/connections/spec/identify/) to learn about what it does. An example call would look like:
25+
26+
```js
27+
analytics.identify('userId123', {
28+
email: carrier.pigeon@example.com'
29+
});
30+
```
31+
32+
Segment sends Identify calls to Courier as an `identify` event.
33+
34+
### User Profiles
35+
36+
Identify calls made from Segment automatically create profiles for users in Courier. `Traits` included in the Segment Identify call automatically merge into a user's Courier Profile over time.
37+
38+
The example below shows a few basic properties you might want to track if you send notifications to users in one or more channels:
39+
40+
```js
41+
analytics.identify('userId123', {
42+
43+
sms: '+1-123-555-7890',
44+
tokens: {
45+
slackToken: '****************',
46+
microsoftTeamsToken: '****************',
47+
whatsAppToken: '****************'
48+
},
49+
...
50+
});
51+
```
52+
53+
For more information on how Courier handles profiles, see the [Courier Profile documentation](https://docs.courier.com/reference/profiles-api?utm_source=segmentio&utm_medium=docs&utm_campaign=partners.
54+
55+
## Track
56+
57+
If you aren't familiar with the Segment Spec, read through the [Track method documentation](https://segment.com/docs/connections/spec/track/) to learn about what it does. An example call would look like:
58+
59+
```js
60+
analytics.track('Login Button Clicked')
61+
```
62+
63+
Segment sends Track calls to Courier as a `track` event.
64+
65+
### Inbound Events and Properties
66+
67+
Segment Track events are inbound events that might trigger a notification when Courier receives them. To begin, events appear in [Courier's Data Logs](https://www.trycourier.app/data/messages?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) after you configure the Courier destination.
68+
69+
All Inbound Events coming from Segment Track calls appear with a `Segment-TrackEvent` prefix in Courier to help distinguish them from other inbound events.
70+
71+
Courier extracts data from the Segment Track `properties` object, and conditionally triggers a request to the [Courier Send API](https://docs.courier.com/reference/send-api?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) - only if that event is already [mapped](https://help.courier.com/en/articles/4202416-how-to-create-and-map-event-triggers-for-your-notifications).
72+
73+
* Segment passes all `properties` from the Track call to the `Send API` as elements in the `data` json objects. You can use these data points as variables in the Notification Template or as input on conditional routing logic.
74+
* Courier uses the `userId` or `anonymousId` to look up and include the associated `User Profile` with the inbound event. (See the note in the [Identify section](#identify) above.)
75+
76+
```js
77+
analytics.track('Login Button Clicked', {
78+
orderNumber: 12345678980,
79+
estimatedDelivery: '2020-06-10T18:41:29.093Z',
80+
...
81+
})
82+
> note "Note:"
83+
> Courier does not send notifications until you publish a Notification Template and map incoming Segment Track events to that published Notification Template. If you send data to Courier before you complete those steps, incoming events are marked with a status of `Unmapped`.
84+
85+
### Mapping Inbound Events to Notification Templates
86+
87+
Once you are comfortable with the Notification Template(s) and are ready to send Notifications, you can map these inbound events to start sending. You can do this directly from the [Event Log in Courier](https://www.trycourier.app/data/messages?status=unmapped) or in the `Events` settings page.

0 commit comments

Comments
 (0)