Introduction
Deploying new code in production can slow down your site if not properly tested, making performance unpredictable. A/B test bundles is challenging when traffic is unevenly split, leading to skewed results.
Requestly helps by allowing you to test different bundles in production seamlessly, ensuring you can compare performance without impacting user experience.
A/B test on production
The Query Param
Rule in Requestly allows you to adjust query parameters to route traffic to different versions for A/B testing. This helps you evaluate the performance of each bundle in a controlled environment, keeping your live production data unaffected.
- Options: You can
add
,remove
, ormodify
a query parameter in a network request. The dropdown lets you pick whether you want to add a new parameter, modify an existing one, remove one, or remove all. - Param Name: This is the name of the
query parameter
. In the example, the parameter is calledversion.
- Source Condition: This is where you decide which requests to modify. In the example, any request that contains
example.com
in the URL will be affected. - Param Value: This is the new value you want to give the parameter. In the example,Â
Version
is set toA
, which means France. - Test URL Condition: You can check if the rules you’ve set up work correctly by testing them on specific URLs.
- Filter Out Condition: You can apply
filters
to limit which requests are affected, making sure only the ones you want are modified.
Or create your own Rule
by following the steps below
Here’s how to set up a Query Param Rule to A/B test bundles on production:
- Open Requestly:Open Requestly app.
- Create a New Rule: Click on
New Rule
and selectQuery Param Rule
. - Enter the URL Pattern: Specify the URL pattern.
- Set Query Parameters for Testing:
Add
ormodify
query parameters to direct traffic to the different bundle versions. - Save the Rule: Click
Save
to create the rule.
Interactive Guide
Check this interactive and easy explanation of how to create Query param.
Conclusion
Try this query param rule to A/B test and evaluate the performance, ensuring accurate results without impacting live data. Requestly is trusted by over 200k developers and 1000+ companies for its effective management of network requests.
Explore More: