Skip to content
  • There are no suggestions because the search field is empty.

Correct and improve traffic bucketing on uneven Split URL Experiments

 Fix Uneven Traffic Distribution in Split URL Experiments Using Regex in Convert

 THIS ARTICLE WILL HELP YOU:

Sometimes, you may see uneven visitor counts between the Original and Variation in a Split URL experiment.

An imbalance is not expected simply because the variation is reached through a redirect. Convert does not inherently count the Original earlier than the Variation in a way that should systematically produce fewer variation visitors.

If the imbalance persists, or Convert reports a Sample Ratio Mismatch (SRM), investigate the experiment rather than treating the difference as normal Split URL behavior. Possible causes include redirect failures, bots, differences in audience qualification, caching behavior, or differences between the two URLs.

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. The URL-pattern issue described below is one possible cause of an imbalance.

 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