Last active
December 14, 2018 21:18
-
-
Save asunwoo/75b4360635c1972ea8c78fea970b40a8 to your computer and use it in GitHub Desktop.
full_stack_attributes.js
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
var variation = optimizelyClient.activate("my_experiment", userId, { | |
industry: "b2b" | |
}); | |
And: | |
optimizelyClient.track("my_event", userId, { | |
industry: "b2b" | |
}); | |
Or, if you’re using Segment to track your KPIs (which you should be): | |
analytics.track({ | |
userId:userId, | |
event: 'my_event', | |
context: { | |
traits:{ | |
"industry": "b2b" | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment