Setting up a redirect test is quite simple. Redirection allows you to use an existing page as a variation.
The advantage of this option is being able to test a page without having to make your changes to it in the AB Tasty editor. Sometimes the changes are cumbersome and it takes time to implement them in the editor. In that case, it is simpler to develop an alternative version of your page, and host it on your server. It can then be used as a variation.
To set up a redirect, click on one of your variations and choose the "Redirect" option.
That will bring you to this window:
Check "Redirect the page" to paste your URL in the "Target URL" field.
If you wish to apply a redirect to several pages, you can use a regular expression. To do so, check “Use a Regular Expression” and add your expression.
Regular expressions help you target a certain type of page (products, categories, etc.). Let say you want to redirect all your site’s pages to a version V2 like so:
http://en.abtasty.com/menu -> http://en.abtasty.com/v2-menu
To acheive this, you should use a regular expression (= pattern) and a target URL that will indicate the targeted pages and the URL to which they will be redirected:
- Pattern: ^http://(.*?)\.abtasty.com/(.*)$
- Target URL: http://$1.abtasty.com/v2-$2
To learn how to use regular expressions, you can refer to http://www.regular-expressions.info/tutorial.html or do a search on the web to find another tutorial.
When you set up a redirect, you can check the "Landing Page Alert" box. This option allows you to pause the test when the redirected URL is no longer online. A robot continuously scans your landing pages in order to ensure that visitors can access the tests. If the page is offline, the test is paused and an email is sent to you. You can reactivate the test at any time when your landing page is available again.
If you checked the " Landing Page Alert" option, an email will be automatically sent to you to let you know if the landing page is no longer accessible on your internet site and that the test has been paused.
If you would like to set up a split test and the target URLs contain optional parameters, you will have to use the option “regular expression” to set up your redirection.
Suppose that you want to redirect the page "http://www.example.com" to "http://www.example.com/variation". You also use Google Analytics tracking parameters to track your traffic acquisition sources. You therefore want the URL "http://www.example.com/?utm_medium=email&utm_source=newsletter" to redirect to "http://www.example.com/variation?utm_medium=email&utm_source=newsletter".
To achieve this, you must set up the test in the same way as we present below, ticking the box “Keep url parameters”.