How to get the current variation the user should see with API in a single page app
I am exploring the possibility of adding optimizely to our angular single page app. What I am trying to achieve is the following:
- Be able to run a test after a state change. Currently, I am activating the test using the manual activation code.
- Get the information (from Optimizely) about which variation the current visitor should see.
- Show the variation to the user.
Currently, I am having trouble finding which variation the current visitor should see. I want to use Optimizely's random allocation of traffic to know which variation I should show and then change the page accordingly.
The app uses:
- AngularJS 1.5
Solved! Go to Solution.
have you tried accessing:
"the essence of the creative act is to see the familiar as strange." (anonymous)