Created
July 31, 2022 00:43
-
-
Save EverettBerry/d3a096654d576161770d5506d52a748a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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