Skip to content

Commit bb89385

Browse files
Merge pull request #5588 from segmentio/vero-table-fix
Vero destination revamp
2 parents e4d25ac + d2db492 commit bb89385

File tree

1 file changed

+21
-40
lines changed
  • src/connections/destinations/catalog/vero

1 file changed

+21
-40
lines changed

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

Lines changed: 21 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,47 @@
22
title: Vero Destination
33
id: 54521fdc25e721e32a72ef03
44
---
5-
Our Vero destination code is all open-source on GitHub if you want to check it out: [JavaScript](https://github.com/segmentio/analytics.js-integrations/tree/master/integrations/vero), [Server](https://github.com/segmentio/integration-vero).
5+
The Vero destination code is all open-source on GitHub if you want to check it out: [JavaScript](https://github.com/segmentio/analytics.js-integrations/tree/master/integrations/vero){:target="_blank"}, [Server](https://github.com/segmentio/integration-vero){:target="_blank"}.
66

77
## Getting Started
88

99
Vero helps you send targeted emails to customers based on their behavior.
1010

1111
When you enable Vero in the Segment web app, your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading Vero's `m.js` onto your page. This means you should remove Vero's snippet from your page.
12-
+ Since Vero only records custom events and custom user data, no events or users will appear in Vero until you start using the API outlined below.
13-
14-
Vero is supported on the client-side, server-side and mobile.
15-
16-
- - -
1712

13+
Vero only records custom events and custom user data so no events or users will appear in Vero until you start using the API outlined below.
1814

1915
## Identify
2016

21-
2217
### Client Side
2318

24-
When you call [`identify`](/docs/connections/spec/identify/) on analytics.js, we augment `traits` to have `traits.id` set to the `userId`, and then call Vero's `user` with the augmented traits object. You should provide both a `traits.email` and a `userId` for Vero to work best.
19+
When you call [Identify](/docs/connections/spec/identify/) on analytics.js, Segment augments `traits` to have `traits.id` set to the `userId`, and then call Vero's `user` with the augmented traits object. You should provide both a `traits.email` and a `userId` for Vero to work best.
2520

2621
If no `email` is attached, the user is created in Vero but cannot be emailed. If you send omit the `userId`, Vero will use the email as the ID, which is is not recommended. Check out the [Vero docs](https://help.getvero.com/workflows/articles/creating-and-matching-vero-customer-ids/){:target="_blank"} for more information.
2722

28-
A `userId` is a required value for all types of calls. Be sure you call `identify` with a `userId` for subsequent `track` calls to populate into Vero correctly. For server side calls, you will have to manually pass in the `userId` at the top level.
23+
A `userId` is a required value for all types of calls. Be sure you call Identify with a `userId` for subsequent `track` calls to populate into Vero correctly. For server side calls, you will have to manually pass in the `userId` at the top level.
2924

3025
### Server Side
3126

32-
When you call [`identify`](/docs/connections/spec/identify/) from one of our server-side languages, we'll call Vero's REST API and update the traits for the customer with that `userId`. If your `userId` is an email, we'll also set the trait `email` as your `userId` in the update call.
33-
27+
When you call [Identify](/docs/connections/spec/identify/) from one of Segment's server-side languages, Segment calls Vero's REST API and update the traits for the customer with that `userId`. If your `userId` is an email, Segment sets the trait `email` as your `userId` in the update call.
3428

3529
## Track
3630

37-
When you call [`track`](/docs/connections/spec/track/), we'll send the event to Vero with the event `name` and `properties` you provide. Events will be matched to the current user.
31+
When you call [Track](/docs/connections/spec/track/), Segment sends the event to Vero with the event `name` and `properties` you provide. Events will be matched to the current user.
3832

39-
You can also unsubscribe users by sending a `track` event, passing in the user's ID as a `property`, like so:
33+
You can also unsubscribe users by sending a Track event, passing in the user's ID as a `property`, like so:
4034

4135
```javascript
4236
analytics.track('Unsubscribe', {
4337
id: '12345'
4438
});
4539
```
4640

47-
Note: If you'd like to explicitly specify a user's email with track events that is not an event metadata, you can send that under `context.traits.email`!
41+
Note: If you'd like to explicitly specify a user's email with track events that is not an event metadata, you can send that under `context.traits.email`.
4842

4943
## Sending Data from Vero
5044

51-
Vero supports sending [email events](/docs/connections/spec/email) to other tools on the Segment platform. These events will be sent as `track` calls to the other destinations you've turned on.
45+
Vero supports sending [email events](/docs/connections/spec/email) to other tools on the Segment platform. These events will be sent as Track calls to the other destinations you've turned on.
5246

5347
To enable this feature,
5448

@@ -59,20 +53,19 @@ To enable this feature,
5953

6054
![Send email events from Vero](images/1aWDVSGw9d.png)
6155

62-
6356
## Group
6457

65-
When you call [`group`](/docs/connections/spec/group/), the `traits` included in the call will be set to the current user's **Group** property in Vero.
58+
When you call [Group](/docs/connections/spec/group/), the `traits` included in the call will be set to the current user's **Group** property in Vero.
6659

6760
## Alias
6861

69-
Our [`alias`](/docs/connections/spec/alias/) method can be used from your server to "re-identify" an existing user identity to a new one.
62+
Segment's [Alias](/docs/connections/spec/alias/) method can be used from your server to "re-identify" an existing user identity to a new one.
7063

7164
Most of the time this happens when you identify a visitor by their email address after they opt in, then later re-identify with a database ID when they become registered users.
7265

73-
To connect the two identities you'll need to [`alias`](/docs/connections/spec/alias/) their current identity to their new one.
66+
To connect the two identities you'll need to [Alias](/docs/connections/spec/alias/) their current identity to their new one.
7467

75-
Here's a python example of using [`alias`](/docs/connections/spec/alias/) to update the identity from an email address to a database ID:
68+
Here's a python example of using [Alias](/docs/connections/spec/alias/) to update the identity from an email address to a database ID:
7669

7770
```python
7871
analytics.alias('[email protected]', '8765309')
@@ -82,29 +75,17 @@ analytics.alias('[email protected]', '8765309')
8275

8376
### Tags
8477

85-
The destination is capable of both adding and removing tags in Vero for a given user. Because `tags` is not a common property of events, this functionality is invoked using an [destination specific option](/docs/connections/sources/catalog/libraries/website/javascript/#selecting-destinations-with-the-integrations-object).
78+
The destination is capable of both adding and removing tags in Vero for a given user. Because `tags` is not a common property of events, this functionality is invoked using an [destination specific option](/docs/connections/sources/catalog/libraries/website/javascript/#managing-data-flow-with-the-integrations-object).
8679

8780
To start using this feature, pass an object called `tags` with the following properties:
8881

89-
<table>
90-
<tr>
91-
<td>`id` optional</td>
92-
<td>String</td>
93-
   <td>The user Id to associate tags with. If this is not specified, the destination will simply use the userId from the event itself.</td>
94-
</tr>
95-
<tr>
96-
<td>`action` required</td>
97-
<td>String</td>
98-
<td>Must be either 'add' or 'remove'. Indicates whether you would like to add or remove the tags for the given user.</td>
99-
</tr>
100-
<tr>
101-
<td>`values` required</td>
102-
<td>Array</td>
103-
<td>An array of strings representing the tags to either add or remove.<td>
104-
</tr>
105-
</table>
106-
107-
Here is an example using our Node.js library:
82+
| Field | | Type | Description |
83+
| -------- | ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------- |
84+
| `id` | _optional_ | String | The user Id to associate tags with. If this is not specified, the destination will simply use the userId from the event itself. |
85+
| `action` | _required_ | String | Must be either 'add' or 'remove'. Indicates whether you would like to add or remove the tags for the given user. |
86+
| `values` | _required_ | Array | An array of strings representing the tags to either add or remove. |
87+
88+
Here is an example using Segment's Node.js library:
10889

10990
```javascript
11091
analytics.identify('324LKJF', {

0 commit comments

Comments
 (0)