More variables have been added to the conversion tracking. They work the same way, by surrounding the variable with pipes. The ones added are for the room portion of the system:
All systems:
subTotal - Number - Total minus taxes and additional services
total - Number - Total amount of the booking
confirmationNumber - String - The confirmation number of the booking
package - String - The package name that was booked
hotelName - String - The client pretty name of the system where the reservation was booked
Room system:
arrivalDate - String (mm/dd/yyyy) - The arrival date
departureDate - String (mm/dd/yyyy) - The departure date
roomType - String - The name of the booked room
numberOfRooms - Number - Number of rooms booked
numberOfNights - Number - Number of night booked
**Updated Rooms System Available Variables:**
total
package
confirmationNumber
arrivalDate
departureDate
hotelName
roomType
numberOfRooms
numberOfNights
subTotal
city
state
zip_code
adults
children
Examaple conversion tracking Javascript that displays all variables in the console:
<script type="text/javascript">
try{
var trackingData = {};
var trackIt = function(td){
if (window.console && window.console.log){
console.log(td);
}
}
trackingData.subtotal=|subTotal|;
trackingData.total=|total|;
trackingData.package="|package|";
trackingData.orderId="|confirmationNumber|";
trackingData.startDate="|arrivalDate|";
trackingData.endDate="|departureDate|";
trackingData.hotel="|hotelName|";
trackingData.room="|roomType|";
trackingData.numRooms=|numberOfRooms|;
trackingData.numNights=|numberOfNights|;
trackIt(trackingData);
} catch(e){}
</script>
Developed by Shad Belcher
Comments
2 comments
New fields:
guestFirstName
guestLastName
buildingId
buildingName
country is |country|
email is |guestEmail|
Please sign in to leave a comment.