Rich-text Reply

Getting Experiment and Variation Name via JS

jonchan 10-05-16

Getting Experiment and Variation Name via JS

I am trying to get the Experiment and Variation name in JavaScript, but I am getting a number or unidentified instead of a human friendly name. I have given my experiment the title "Homepage Test" in the GUI, and I have several variations within this experiment. Any idea how I can get human friendly names?

 

Experiment Name: optimizely.allExperiments[experimentId].name  //unidentified

Variation Name: optimizely.variationNamesMap[experimentId] //  Var 7588290391

Level 2

jonchan 10-05-16
 

Re: Getting Experiment and Variation Name via JS

https://community.optimizely.com/t5/Developers/Experiment-and-variation-names-via-API/m-p/16768#M137...

I had to disable the Privacy Setting "Mask descriptive names in project code and third-party integrations" to solve the issue.
Level 2