Rich-text Reply

Can you get the experiment ID and the variation ID from within the exp/variation you are coding in?

santhony7 02-23-17

Can you get the experiment ID and the variation ID from within the exp/variation you are coding in?

[ Edited ]

Inside teh JS pane, I was hoping that I could just use something like this.experiement and this.variation but no luck. I know I can just look up in the URL and see the values but it would be easier to maintain a chunk of code that I use if I could do something like this.

 

Can't delete a question huh?

Anthony Smith
tom-hanlon 03-28-17
 

Re: Can you get the experiment ID and the variation ID from within the exp/variation you are coding

Hey Anthony,

Not sure if your question still stands but check out `optimizely.variationIdsMap` for Optimizely Classic or `optimizely.get('data')` for Optimizely X.

Tom
__
Optimizing Sales/Growth for eCommerce Clients through Multivariate & A/B Testing, Personalization & Analytics @ Clearhead: The Digital Optimization Company
Connect with me on Linkedin