Redirect experiments

  • Updated
  • Optimizely Web Experimentation
  • Optimizely Edge Delivery
  • Optimizely Personalization

In some cases, you may want to redirect users to an existing URL instead of creating a variation in the new Visual Editor. For instance, you could test two pre-built landing pages against each other. In Optimizely Web Experimentation, this is called a redirect experiment, where one or more of your variations directs visitors to the URL of the landing page instead of the original experience.

Optimizely preserves any existing variation code you have generated when you choose this option. Any JavaScript or CSS changes you have made execute before the redirect occurs.

To redirect visitors to a different URL:

  1. Click Create > Redirect.

  2. Select URL or Code for your redirect. If you select URL, enter the URL or relative path for the redirect. If you select Code, define a function that returns a URL string where you want to redirect visitors.
  3. Click Save.

To learn more, see Create and test redirect variations.