Appearance
Travel + Hospitality
Travel
Fanplayr’s tracking, segmentation, targeting and analytics capabilities are well suited for sites focused on travel products and services. While the base integration documents deal specifically with standard product eCommerce sites, the following scripts are meant to be used by travel sites.
The attributes referred to in this documentation are indicative based on a generic travel site. These attributes are optional for your site and you could replace them with those that pertain to your site.
For the integration scripts to use, please use the instructions at Page Tracking.
For travel specific tracking, please use the instructions at the Custom Data section. The sample custom data object to use is listed below.
INFO
Data marked with a * is required to use the Travel Dashboard template.
javascript
custom_data: {
travelType: "", // Travel Type ("oneWay" or "roundTrip")
numAdults: 0, // No. Of Adults
numChildren: 0, // No. Of Children
numInfants: 0, // No. Of Infants
numPax: 0, // * Total No. Of People
fromCity: "", // From City
fromCountry: "", // From Country
fromAirport: "", // * From Airport ie "SFO"
departureDate: "", // Departure Date in format (YYYY-MM-DD)
departureHour: 0, // Departure Time: Hour (in 24 hour format)
departureMinutes: 0, // Departure Time: Minute
departureDay: 0, // * The Departure day of the week. 0 through 6 where 0 is Sunday.
daysToDeparture: 0, // * Number of days from today to Departure
departureClass: "", // * Departure Class of travel ie "First Class" or "coach"
departureFlight: "", // Departure Flight Number
departureCost: 0, // Cost for the departure flight (if separate)
toCity: "", // To City
toCountry: "", // To Country
toAirport: "", // * To Airport ie "SFO"
arrivalDate: "", // Arrival Date in the format (YYYY-MM-DD)
arrivalHour: 0, // Arrival Time: Hour (in 24 hour format)
arrivalMinutes: 0, // Arrival Time: Minutes
daysToArrival: 0, // Number of days from today to Arrival
returnDate: "", // Return Date in format (YYYY-MM-DD)
returnClass: "", // * Return Class of travel of travel ie "First Class" or "coach"
returnFlight: "", // Return Flight Number
returnDay: 0 // * The Return day of the week. 0 through 6 where 0 is Sunday.
returnCost: 0, // Cost for the return flight (if separate)
durationOfTravel: 0, // * Duration of Travel in number of days
totalPrice: 0, // Total Price of the travel
fare: 0, // Fare
fees: 0, // Fees
route: "" // Typically "<FROM>-<TO>" ie "SFO-JFK" but could be anything such as "mediterranean_cruise".
}
Hospitality
Fanplayr’s tracking, segmentation, targeting and analytics capabilities are well suited for sites focused on travel products and services. While the base integration documents deal specifically with standard product eCommerce sites, the following scripts are meant to be used by hotel booking sites.
The attributes referred to in this documentation are indicative based on a generic hotel site. These attributes are optional for your site and you could replace them with those that pertain to your site.
For the integration scripts to use, please use the instructions at Page Tracking.
For hotel specific tracking, please use the instructions at the Custom Data section. The sample custom data object to use is listed below.
INFO
Data marked with a * is required to use the Hospitality Dashboard template.
javascript
custom_data: {
numAdults: 0, // No. Of Adults
numChildren: 0, // No. Of Children
numPax: 0, // * Total No. Of People
numRooms: 0, // * Total number of rooms
extraBeds: 0, // Number of extra beds requested
roomType: "", // * Room Type
destination: "", // * Destination
checkinDate: "", // Check-in Date in format YYYY-MM-DD
checkoutDate: "", // Check-out Date in format YYYY-MM-DD
checkinMonth: 0, // The month number of the Check-in date where 0 is January
checkoutMonth: 0, // The month number of the Check-out date where 0 is January
numDaysToCheckin: 0, // The number of days from today to Check-in
durationOfStay: 0, // * Duration of Stay in days
services: "", // Additional services
earlyCheckin: "", // Requested early check-in ?
lateCheckout: "", // Requested late check-out ?
rackRate: 0, // The rack rate for the rooms
roomRate: 0, // The quoted rate for the rooms
resortFees: 0, // Any resort fees that are in addition
fees: 0, // Any additional fees
services: "" // Additional Services
departureDay: 0, // * The Departure day of the week. 0 through 6 where 0 is Sunday.
returnDay: 0, // * The Return day of the week. 0 through 6 where 0 is Sunday.
}