Rich-text Reply

Assign experimental split by visited url

nra 12-14-16
Accepted Solution

Assign experimental split by visited url

Rather than use a redirect setup in Optimizely, I'd like to use my ad platform to divide traffic between my control and experiment variants.

 

Can an Optimizely experiment be configured such that visitors who view (for example) http://www.test.com/control.html are assigned to the control group and those who view http://www.test.com/experiment.html are assigned to the experiment group?

nra
Level 2

rockymcg 12-19-16
 

Re: Assign experimental split by visited url

Hello,

We do have APIs available in both Optimizely Classic and Optimizely X that allow you to bucket the visitor. Here is the syntax for the API call in Classic, and here is the syntax for X. 

 

 

In your Experiment Javascript, or Shared Code, you can use a Javascript conditional statement to check the value of document.referrer— then use the bucketVisitor API to bucket the user based on the returned value.

 

I hope this helps!

 

Best,

Rocky

 

Optimizely
nra 12-19-16
 

Re: Assign experimental split by visited url

Thanks Rocky! That's *exactly* what I was looking for.
nra
Level 2