Forcing a variation without using URL params
Is there any way to force a variation without using URL params?
Yes, you could take advantage of our API call to bucketVisitor, here.
After this you could refresh the page (redirect to the same page). The code would look something like this:
window['optimizely'] = window['optimizely'] || ; window['optimizely'].push(["bucketVisitor", experiment_id, variation_id]); var currentLocation = window.location.href; window.location.href = currentLocation;
I hope that helps you!