Rich-text Reply

Adding a parameter to Control

DucNguyen 09-23-14
Accepted Solution

Adding a parameter to Control

How do I force a parameter into the Control URL string? I know if I use a redirect that uses the Targeted URL, it will create an infinite redirect loop, right?

 

Example:

Targeted URL: http://www.example.com (simple match)

Control: http://www.example.com

Variation #1: redirects to http://www.example.com/var1?parameter=var1

Variation #2: redirects to http://www.example.com/var2?parameter=var2

 

We want to test all traffic to http://www.example.com but need to force &parameter=control to the url so that the correct phone number is dynamically pulled. I understand that if I redirected the Control to http://www.example.com/?parameter=control that it will create an infinite redirect loop since the redirect url matches.

 

I would also like to include all the live query parameters that came in to this experiment.

Amanda 09-23-14
 

Re: Adding a parameter to Control

Hey there,


To get around this scenario, I recommend adding a negative audience condition that says exclude visitors with the query parameter parameter=control. This will avoid the infinite loop and you'll be able to run your experiment as described above.

 

To keep all the live query string parameters, just make sure you keep this checkbox marked when you are creating the redirect in your experiment.

 

Screen Shot 2014-09-23 at 3.00.06 PM.png

Screen Shot 2014-09-23 at 3.01.29 PM.png

 

Let me know if you need any help setting this up!

Optimizely
DucNguyen 09-24-14
 

Re: Adding a parameter to Control

Thanks so much for your help, Amanda. This fixed it!
Amanda 09-24-14
 

Re: Adding a parameter to Control

Glad to hear it! Happy to help anytime Smiley Happy

Optimizely