Transfer Query Parameters from Original to a Variation that also has Query Parameters


If you want to do a Split Test where your original URL may have query parameters that you want to be passed onto the variation, and your variation already has its own query parameter that you want to retain, you have to set this up a little differently than you normally would. Otherwise, what you would end up with is a variation URL that looks like this: (note the second ? which is incorrect)

The above would be incorrect, as what you really want is this: (note the & which appends the second parameter)

Example Configuration


Page URL Matches exactly 

Note that selecting "Page URL" means that it will work whether the URL that should trigger the experiment contains query parameters or not. You only need to use Page URL (w/Query) if you want to match *specific* query parameters. Also, "Matches exactly" may not be right for your situation, this is only an example.


Query String does not contain query=param

Note - this excludes the query parameters that already exist in your variation.  Replace query=param with your specific parameter.

Edit Split Url Variations

Original Url[^\?]+)?\?{0,1}(.*)$


Support Regular Expressions - checked on

Transfer Original URL Variables to the Variation URL - checked on

Show variation RegEx - checked on

Variation URL$2


keywords: attribution


Need assistance? Start a conversation with our Support Team.

Reliably Convert More Site Visitors, Even If Everything Else is Changing in Your Business.

✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features