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
- Redirect customers to a specific page depending on their chosen language
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 (Google Analytics, Google Ads, 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">
window.setTimeout(function() {
if("{PRODUCTCODE}"=="1234") {
window.top.location="https://www.mywebsite.com/thank_you_1";
} else if("{PRODUCTCODE}"=="5678") {
window.top.location="https://www.mywebsite.com/thank_you_2";
} else {
window.top.location="https://www.anotherwebsite.com";
}
}, 5000);
</script>
Redirect customers to a specific page depending on their chosen language
If you want to take different actions/redirect to different pages based on the customer's selected language, using the {LANGUAGECODE} placeholder. For example:
<script type="text/javascript">
window.setTimeout(function() {
if("{LANGUAGECODE}"=="fr_FR") {
window.top.location="https://www.mywebsite.com/fr";
} else if("{LANGUAGECODE}"=="es_ES") {
window.top.location="https://www.mywebsite.com/es";
} else {
window.top.location="https://www.mywebsite.com";
}
}, 5000);
</script>
Notes
-
If you only need to integrate some custom conversion tracking code (other than Google Analytics/Ads), 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