Marketers use A/B testing to compare messaging, calls to action, and landing pages so they can increase conversions and improve user experience. A/B testing often requires developer support, which isn't always available.

Amplitude's URL redirect testing feature lets you design, deploy, and analyze A/B tests that redirect visitors to another URL, without extensive developer involvement. URL redirect testing helps you measure whether a redirect improves conversion or user experience.

{% callout type="note" heading="" %}
The [Website Conversion Agent](/docs/amplitude-ai/website-conversion-agent) can analyze your pages, propose conversion optimization strategies, and create draft experiments for you automatically.
{% /callout %}

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](/docs/feature-experiment/workflow/multi-armed-bandit-experiments).

To use URL redirect testing, you must [implement](/docs/web-experiment/implementation) 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.

## Set up URL redirect testing

To set up a URL redirect test:

1. In Amplitude Experiment, navigate to the Experiments page and click **Create Experiment** and then click **Web**.
2. In the New Experiment modal, name your experiment.
3. Enter the URL of a page this experiment targets and select the appropriate project from the drop-down. Amplitude uses this URL to create your first [Page](/docs/web-experiment/pages). You must instrument Web Experiment 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](/docs/web-experiment/set-up-a-web-experiment#the-visual-editor) as a new variant in your experiment.

4. Click the Treatment **three-dot** menu item, select **Edit**, and then under Action select **URL Redirect**.
5. In the URL Redirect panel, add each URL you want to test as a separate variant and click **Apply**.
6. Click **Apply and Exit** to leave the editing view.
7. Configure which [Pages](/docs/web-experiment/pages) your experiment should target. You can create new Pages or reuse existing saved Pages.
8. Target the users you want to include in this experiment. Go to [audience targeting](/docs/web-experiment/targeting#audience-targeting) for more information. Note that Web Experiment audience targeting works differently than Feature Experimentation.
9. Define your experiment's [Metrics](/docs/feature-experiment/workflow/define-goals).
10. Specify any [additional options](/docs/feature-experiment/workflow/finalize-statistical-preferences) in the Advanced tab.
11. Click **Save and Close** to finish creating your Web Experiment.

## Preview and test

Before running your web experiment, test and preview each variant.

To test your web experiment:

1. Click **Test & Preview**. This puts your experiment in test instrumentation mode, but it doesn't begin the experiment. Only users who open the page with the preview link experience your changes.
2. In the modal, click **Preview** to open a new tab that applies the changes you made for that variant.
3. Click the chain link icon to copy the URL to share it with others.

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.

{% callout type="warning" heading="Ad blockers" %}
Ad blocking plugins or extensions may prevent you from testing and previewing your experiment.
{% /callout %}

## Configuration limits

Visual experimentation and Amplitude's low-code implementation apply the following limits on experiment configuration:

* **Evaluation mode**: Limited to *local* to optimize test performance and minimize latency impact to end-users.
* **Bucketing Unit**: Limited to *User* since evaluation mode is limited to *local*.
* **Keys**: Limited to *deviceID* since evaluation mode is limited to *local*.
* **Audience**: Limited to *all users*, since redirect logic triggers before tracking loads on the site.
* **Deployment**: Limited to the project API key to simplify setup requirements.

## Related resources

For more information about URL redirects in Web Experiment, refer to [Web Experiment actions](/docs/web-experiment/actions#url-redirect).
