Qualifio allows you to automatically redirect your participants to a different web page after their participation in your campaign. So how do we do that? In this article, you'll learn about the Automatic redirect settings. Let's get started!
In this article:
Configuring the Automatic redirect
Automatic redirect is used in a situation where a participant has taken part in your campaign and when they reach the exit screen (or "thank you" screen) they are redirected to another page. For instance, you could include a link to your website to create awareness about a new service and boost website traffic.
To set up an automatic redirect, go to Campaigns (select a campaign) > Edit > Exit step > Automatic redirect. With this, you can
- provide a URL for the page you want to redirect to,
- set the time before the redirect happens: you can choose to have the participant stay on the exit screen for a short amount of time and then be redirected (or set it to 0 if you want the page to load the new URL immediately),
- and customise the "target" attribute:
- _top → tells the browser to open that link into the top-level browsing context, which means "the whole page" in a situation where you have an embedded campaign (iframe)
- _self → tells the browser to open that link within the same page
- _blank → tells the browser to open that link in a new window (or tab)
When the Automatic redirect is set up, the participants will be automatically redirected from the campaign's exit screen to the URL of your choice.
JavaScript redirects for multiple exit screens
For instance, imagine you're making a product recommendation test for your eCommerce products. When the test is finished, the answers to the questions orient participants to different results that are products or product categories. You could include links to your product pages to complement your marketing efforts and put the appropriate URL based on the participant's test result.
To configure automatic redirects with multiple exit screens, complete the following steps:
- Open the Qualifio campaign for editing and go to the Exit step.
- Enable automatic redirect for each of the exit screens by adding this code:
<script type="text/javascript">
function redirection() {
window.open('https://www.qualifio.com/campaign-formats/runner/', '_top');
}
setTimeout("redirection()", 1000);
</script>
The example above enables automatic redirect to the website of Qualifio. To specify the URL to which the participant should be redirected, you should, of course, change the URL and replace it with that of your choice. Replace 1000 with the time in milliseconds or 0 to make it happen immediately.