Spotler Help CentreGatorMailEmail DesignHow To...How to redirect a landing page to another document or web page by using Javascript

How to redirect a landing page to another document or web page by using Javascript

This Article will walk you through a step-by-step guide on how to redirect a landing page to a document.

If you would like to trigger a notification email based on a recipient clicking to a web page or a document link rather than a landing page, you can add a re-direct script as per the article below.
You will be instantly informed when key pages are hit, such as contact/demo pages, downloadable price list and technical documents etc.

 

 

Step 1)

Step 1)

Let's start by adding a New landing page.

Step 2)

Step 2)

Within the landing page editor, click on the 'Insert landing page' display script button, this appears on the right-hand side button list.

Step 3)

Step 3)

Enter the following Java Scriptcode in the update landing page Javascript area:

<script language="javascript">

setTimeout(function() {

   window.location.href = "INSERT DOCUMENT URL"}, 1000);

</script>

Step 4)

Step 4)

Replace the 'Insert Document' link URL with the Document URL. If the document is hosted in CommuniGator (Which we recommend doing), you will need to send yourself a test first to receive the URL.

Once you have entered the document link click 'Save,' and then click 'Close.' This will then redirect to that document when the landing page link is hit in the creative email.