Marketers use A/B testing to create personalized experiences that resonate. By methodically testing the effectiveness of messaging, calls to action, and landing pages, marketers can generate real-world data to help them maximize conversions and create delightful user experiences. However, this often requires help from developers, who may not always be immediately available to assist.
With Amplitude's URL redirect testing feature, you can design, deploy, and analyze A/B tests that involve or require redirecting visitors to another URL, without extensive developer involvement. It's a fast and easy way to assess the effectiveness of redirects for achieving goals like increasing conversions or improving the user experience.
URL redirect testing works well if you're building different versions of your page or site on a CMS like WordPress. In these cases, your different URLs and their associated pages are the variants that Amplitude Experiment tracks.
You can use URL redirect testing with both standard A/B tests and multi-armed bandits.
To use URL redirect testing, you must implement the Web Experiment script on your site. Add the script to the <head> section of your site. Install the Amplitude Analytics SDK on your site for event tracking.
To set up a URL redirect test:
In Amplitude Experiment, navigate to the Experiments page and click Create Experiment and then click Web.
In the New Experiment modal, name your experiment.
Enter the URL of a page this experiment targets and select the appropriate project from the drop-down. This URL is used to create your first Page. Web Experiment must be instrumented on this URL for the experiment to work.
If the script is present on the page you specified, Experiment opens the page in the Visual Editor as a new variant in your experiment.
Click the Treatment three-dot menu item and, select Edit and then, under Action, select URL Redirect.
In the URL Redirect panel, add each URL you want to test as a separate variant and click Apply.
Click Apply and Exit to leave the editing view.
Configure which Pages your experiment should target. You can create new Pages or reuse existing saved Pages.
Target the users you want to include in this experiment. Go to audience targeting for more information. Note that Web Experiment audience targeting works differently than Feature Experimentation.
Define your experiment's Metrics.
Specify any additional options in the Advanced tab.
Click Save and Close to finish creating your Web Experiment.
Before running your web experiment, test and preview each variant.
To test your web experiment:
Test each variant at least one time, testing on more than one page if your experiment targets multiple pages.
If your changes aren't visible, you may need to wait up to 60 seconds for caches to refresh. If the changes don't appear correctly after that time, check your configuration for possible issues.
Visual experimentation and Amplitude's low-code implementation apply the following limits on experiment configuration:
For more information about URL redirects in Web Experiment, see Web Experiment actions.
May 28th, 2024
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2026 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.