Skip to content

Instantly share code, notes, and snippets.

@EverettBerry
Created July 31, 2022 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EverettBerry/d3a096654d576161770d5506d52a748a to your computer and use it in GitHub Desktop.
Save EverettBerry/d3a096654d576161770d5506d52a748a to your computer and use it in GitHub Desktop.
if (eventType === 'createAccount') {
customerio.identify(user.id, {
email: user.email,
created_at: moment().unix(),
event: 'createAccount'
})
} else if (!customerioBlacklist.includes(eventType)) {
customerio.track(user.id, {
name: eventType,
data: {
created_at: moment().unix()
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment