Correct and improve traffic bucketing on uneven Split URL Experiments

THIS ARTICLE WILL HELP YOU:

Sometimes, it occurs that you get uneven Split URL experiments where you see that the Original shows much more visitor traffic than the Variation does. Some of the traffic that was bucketed by the Locations and Audience conditions might not make it into the variation, because it does not match the Original URL Pattern, resulting in more traffic on the original. 

Solution

To solve this, the following regex formula matches every URL bucketed by the Locations and appends any parameters from the visitors' URL to the end of the Variation URL. This prevents uneven experiments caused by the default Transfer Query Parameters option.

It also transfers URL query parameters present on the URL in which was bucketed onto the experiment.

Change the Variations configuration to: 

Original URL:

([a-z]{1,2}tps?):\/\/((?:(?!(?:\/|#|\?|&)).)+)(?:(\/(?:(?:(?:(?!(?:#|\?|&)).)+\/))?))?(?:((?:(?!(?:\.|$|\?|#)).)+))?(?:(\.(?:(?!(?:\?|$|#)).)+))?(?:(\?(?:(?!(?:$|#)).)+))?(?:(#.+))?

Yes, include this strange-looking text. This is a regex expression that should match all the traffic that matches your experiment Locations and Audience conditions, even if it does not look anything like a URL. 

Variation 1:

https://myvariationurl$7$6

The modal should look like:

 

 

Important

Do not include your Original URL on the Original URL Pattern text box. Check the Support Regular Expressions option. Do not enable the Transfer Original URL variables to the variation URL. If you missed something, it will not work as expected.

 

Tips

If your Variation already also has a query parameter and you want to append another query parameter from the visitor's URL, the above will not work. See this article instead: https://convert.zendesk.com/hc/en-us/articles/360000940871-Transfer-Query-Parameters-from-Original-to-a-Variation-that-also-has-Query-Parameters

 

 
 

keyword: Catch all Regex