Once customers complete a booking, they are redirected to a standard confirmation page, where they can print the booking and view its details.
In this article:
- Set the redirection to a different confirmation page
- Can I delay the redirection?
- Redirect customers to a specific page depending on their purchase
Set the redirection to a different confirmation page
If you prefer to redirect customers to another web page:
1. Go to Marketing>Conversion tracking and analytics
2. Go to the Other tracking methods section
3. In the text box at the bottom [1], add the following text:
<script type="text/javascript">window.top.location="https://www.mywebsite.com";</script>
Important: this code redirects customers immediately, as soon as they reach the confirmation page. If you use conversion tracking/analytics tools, this may not give their conversion tracking code the time to run. If you use conversion tracking/analytics tools, we recommend delaying the redirection for at least 5 seconds - see below.
Can I delay the redirection?
Yes, you can force the redirection only after a certain delay, ex. 5 seconds, use this code instead:
<script type="text/javascript">
window.setTimeout(function() {
window.top.location="https://www.mywebsite.com";
}, 5000);
</script>
where the number is the delay in milliseconds. In this example, the delay would be 5 seconds (5000 milliseconds).
Delaying the redirection is essential if you use other conversion tracking methods (Adwords, Facebook pixel, etc), so that the tracking code included in the Bookeo confirmation page has time to run, before the redirection occurs.
Redirect customers to a specific page depending on their purchase
If you want to take different actions/redirect to different pages based on what the customer has purchased (booking, purchase of a prepaid package, purchase of a membership, etc), use the {PRODUCTCODE} field to take different actions. For example:
<script type="text/javascript">
if("{PRODUCTCODE}"=="1234") {
window.top.location="https://www.mywebsite.com";
} else {
window.top.location="https://www.anotherwebsite.com";
}
</script>
Note
-
If you only need to integrate some custom conversion tracking code (other than Google Analytics/Adwords), you may simply input that code in the Other tracking methods field. You do not need to set up a separate page in your web site to include the code. You can use any of the placeholders described in the page ({PRODUCTCODE}, {EMAIL}, etc) to fill in the appropriate values in your tracking code.
-
Some web browsers no longer allow redirection from an https page (Bookeo) to an http page. We recommend redirecting to an address that begins with https:// for maximum cross-browser compatibility
- Redirecting the confirmation page to a different address will likely break the correct tracking of analytics code included in Bookeo's confirmation page, including Google Analytics. This happens if the redirection occurs before the tracking code in the page has had the time to run.