Skip to content

Commit

Permalink
add anonymous invite events to readme (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
glosier authored Apr 27, 2022
1 parent 086adfd commit b9229ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,20 @@ cio.trackAnonymous(anonymous_id, {
});
```

#### Anonymous invite events

If you previously sent [invite events](https://customer.io/docs/anonymous-invite-emails/), you can achieve the same functionality by sending an anonymous event with an empty string for the anonymous identifier. To send anonymous invites, your event *must* include a `recipient` attribute.

```javascript
cio.trackAnonymous("", {
name: "invite",
data: {
name: "Alex",
recipient: "[email protected]",
},
});
```

#### Options

- **anonymous_id**: String or number (required)
Expand Down

0 comments on commit b9229ff

Please sign in to comment.