Options can be inserted in the <form>
tags like this:
<form method="get" action="https://scripts.hoteliers.com/api/v1/book-form" target="_blank" class="hoteliers-book-form"> <input type="hidden" name="hotel" value="{hotel}"> <!-- INSERT OPTIONS HERE --> <button type="submit" class="hoteliers-book-form__button">Book now</button> </form> |
<input type="hidden" name="promotion_code" value="mycode1234"> |
Codes cannot be validated on your website. Invalid codes don’t show any errors to the visitor currently either.
You can directly link to a specific room or package. This is useful if your visitor is on a detail page of a specific room.
For rooms:
<input type="hidden" name="room_id" value="{room_id}"> |
For Packages:
<input type="hidden" name="package_id" value="{package_id}"> |
You can only link to 1 room or 1 package |
Arrival and departure dates can be added. Both dates must be YYYY-mm-dd
format.
<input type="hidden" name="arrival" value="2020-08-20"> <input type="hidden" name="departure" value="2020-08-21"> |
Please note The Booking Engine does support input by date pickers. However, we do not support technical questions on the date picker as this is not part of the standard Booking Engine button. |
Number of nights can be added.
<input type="hidden" name="nights" value="2"> |
Please note When |
We currently support the _ga
variable, no other Google Analytics variables. Cross domain tracking is enabled. Simply add this script to your page. Make sure Google Analytics is loaded before.
<script src="https://scripts.hoteliers.com/js/book-button-ga.js"></script> |
This will attach the Google variable to the URL. To the URL like this: ?_ga={code}
See Chain Engine Button.