Skip to content

Instantly share code, notes, and snippets.

@asunwoo
Last active December 14, 2018 21:18
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 asunwoo/75b4360635c1972ea8c78fea970b40a8 to your computer and use it in GitHub Desktop.
Save asunwoo/75b4360635c1972ea8c78fea970b40a8 to your computer and use it in GitHub Desktop.
full_stack_attributes.js
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