|
| 1 | +--- |
| 2 | +title: Startdeliver-v2 Destination |
| 3 | +id: 65ccc6147108efc0cf5c6fe1 |
| 4 | +beta: true |
| 5 | +--- |
| 6 | +[Startdeliver](https://startdeliver.com/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners){:target="_blank”} connects data from a variety of sources to provide a customer view optimized to Customer Success Managers. |
| 7 | + |
| 8 | +Startdeliver maintains this destination. For any issues with the destination, [contact their support team ](mailto:[email protected]). |
| 9 | + |
| 10 | + |
| 11 | +## Getting started |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +1. From the Destinations catalog page in the Segment App, click **Add Destination**. |
| 16 | +2. Search for **Startdeliver** in the Destinations Catalog, and select the **Startdeliver** destination. |
| 17 | +3. Choose which source should send data to the Startdeliver destination. |
| 18 | +4. Go to the [API keys](https://app.startdeliver.com/settings/apikeys){:target="_blank"} in your Startdeliver dashboard, generate an API key, make it active and grant it admin permissions. |
| 19 | +5. Enter the API Key in the Startdeliver destination settings in Segment. |
| 20 | +6. Create a User custom field you want to match a Segment event on [in your settings](https://app.startdeliver.com/settings/fields){:target="_blank"}. You will need a field's alias during the next step. |
| 21 | +7. Enter the Startdeliver user custom field to match on in the Startdeliver destination settings in Segment. |
| 22 | + |
| 23 | +You have to [identify](/docs/connections/spec/identify/) your user with a proper `userId` so that Startdeliver can match your Segments events with correct Startdeliver users. |
| 24 | + |
| 25 | +Startdeliver attaches any matched events to existing users. If no matched users are found, Startdeliver creates a new user. Startdeliver uses a custom field you specified during the seventh step of the Getting Started section to match a user. |
| 26 | + |
| 27 | +For example, you have a user in Startdeliver and you want to attach your Segment events to that user. |
| 28 | + |
| 29 | +To do this, create a User custom field, like `externalId`. Now you should update your Startdeliver user with a proper value, for example, `97980cfea0067` (this is your user's ID). Don't forget to set this custom field in 7th step of the "Getting Started" section. |
| 30 | + |
| 31 | +When this user goes to your app, you should [identify](/docs/connections/spec/identify/) them: |
| 32 | + |
| 33 | +```js |
| 34 | +analytics.identify('97980cfea0067') |
| 35 | +``` |
| 36 | + |
| 37 | +After this, you can send either Page or Track events: |
| 38 | + |
| 39 | +```js |
| 40 | +analytics.track('Login Button Clicked') |
| 41 | +``` |
| 42 | + |
| 43 | +This event is matched with a Startdeliver user that has ID `97980cfea0067` set in a custom field `externalId`. |
| 44 | + |
| 45 | +Segment events will appear on Customer and User views in Startdeliver. The views will be created instantly within Startdeliver. |
| 46 | + |
| 47 | +For more information, view the [Startdeliver documentation](https://app.startdeliver.com/dev/app/Segment){:target="_blank"}. |
| 48 | + |
| 49 | + |
| 50 | +## Page |
| 51 | + |
| 52 | +If you aren't familiar with the Segment Spec, take a look at the [Page method documentation](/docs/connections/spec/page/) to learn about what it does. An example call would look like: |
| 53 | + |
| 54 | +```js |
| 55 | +analytics.page('Home') |
| 56 | +``` |
| 57 | + |
| 58 | +Segment sends Page calls to Startdeliver as a `page` event. |
| 59 | + |
| 60 | +## Screen |
| 61 | + |
| 62 | +If you aren't familiar with the Segment Spec, take a look at the [Screen method documentation](/docs/connections/spec/screen/) to learn about what it does. An example call would look like: |
| 63 | + |
| 64 | +```js |
| 65 | +analytics.screen('Home') |
| 66 | +``` |
| 67 | + |
| 68 | +Segment sends Page calls to Startdeliver as a `page` event. |
| 69 | + |
| 70 | + |
| 71 | +## Track |
| 72 | + |
| 73 | +If you aren't familiar with the Segment Spec, take a look at the [Track method documentation](/docs/connections/spec/track/) to learn about what it does. An example call would look like: |
| 74 | + |
| 75 | +```js |
| 76 | +analytics.track('Login Button Clicked') |
| 77 | +``` |
| 78 | + |
| 79 | +Segment sends Track calls to Startdeliver as a `track` event. |
| 80 | + |
| 81 | +## Identify & Group |
| 82 | + |
| 83 | +To enable parsing of Identify and Group events in Startdeliver, you have to enable it in the [Segment app configuration in your Startdeliver-account](https://app.startdeliver.com/settings/app/segment){:target="_blank"}. |
| 84 | + |
| 85 | +For Startdeliver to manage Identify and Group events, you must configure the Matching and Mapping variables in Startdeliver settings in order to choose which fields should map to a User or a Customer respectively when these events are received. If a User or a Customer is found based on these parameters it will be updated or otherwise created in Startdeliver. |
| 86 | + |
| 87 | +The configuration is cached for 10 minutes, so any changes made in the configuration will take up to 10 minutes to update. |
| 88 | + |
| 89 | +`startdeliverMatchingField` should contain an object with a Field alias that you want to match your User towards in Startdeliver, as well as a target format type. |
| 90 | +`externalMatchingField` should be the field name from which the value will be matched towards the field above. |
| 91 | + |
| 92 | +This also applies to `startdeliverCustomerField` and `externalCustomerField` if you have any Customer data that you want to use to connect the user to a customer, as well as update or create a customer in Startdeliver. |
| 93 | + |
| 94 | +`userMapping` and `customerMapping` contains any field values that you want to append to your User or Customer respectively. This array of objects should contain a Target field-alias, source-field alias as well as a Target-type. |
| 95 | + |
| 96 | +```js |
| 97 | +{ |
| 98 | + startdeliverMatchingField: { |
| 99 | + field: 'customfieldMatchingId', |
| 100 | + type: 'text' |
| 101 | + }, |
| 102 | + externalMatchingField: { |
| 103 | + field: 'userId' |
| 104 | + }, |
| 105 | + startdeliverCustomerField: { |
| 106 | + field: 'customfieldCustomId', |
| 107 | + type: 'number' |
| 108 | + }, |
| 109 | + externalCustomerField: { |
| 110 | + field: 'traits.customerId' |
| 111 | + }, |
| 112 | + userMapping: [ |
| 113 | + { |
| 114 | + field: 'name', |
| 115 | + externalField: 'traits.trait2', |
| 116 | + type: 'text' |
| 117 | + }, |
| 118 | + { |
| 119 | + field: 'customfieldNumber', |
| 120 | + externalField: 'traits.trait1', |
| 121 | + type: 'number' |
| 122 | + }, |
| 123 | + { |
| 124 | + field: 'email', |
| 125 | + externalField: 'email', |
| 126 | + type: 'text' |
| 127 | + } |
| 128 | + ], |
| 129 | + customerMapping: [ |
| 130 | + { |
| 131 | + field: 'name', |
| 132 | + externalField: 'traits.customerName', |
| 133 | + type: 'text' |
| 134 | + } |
| 135 | + ] |
| 136 | +} |
| 137 | +``` |
0 commit comments