Method Calls

addHotelSearch

this method call is only available to clients using the getting started with the monetate travel api addhotelsearch method // addhotelsearch method window\ monetateq = window\ monetateq || \[]; window\ monetateq push(\['addhotelsearch', { // optional 'adults' \[2], 'airport' \['lhr'], 'checkin' \['20260212'], // february 12, 2026 'checkout' \['20260224'], // february 24, 2026 'children' \[1], 'city' \['london'], 'country' \['united kingdom'], 'guests' \[3], 'postalcode' \['ww1'], 'rooms' \[1], 'region' \['london'], 'type' \['single', 'double'] }]); window\ monetateq push(\['trackdata']); the addhotelsearch method passes information from your site to monetate when a customer searches for a hotel this method consists of 13 optional attributes adults — an integer that includes the total number of adults staying in a hotel room airport — a string that includes the three character airport code to search for adjacent airports airportcodecity — a string that includes the adjacent city for the airport included in airport checkin — a string that includes the check in date for the hotel stay in yyyymmdd format checkout — a string that includes the check out date for the hotel stay in yyyymmdd format children — an integer that includes the total number of children staying in a hotel room city — a string that includes the city where a hotel was searched for country — a string that includes the country where a hotel was searched for guests — an integer that includes the total number of adults and children staying in a hotel room postalcode — a string that includes the postal code where a hotel was searched for rooms — an integer that includes the total number of hotel rooms searched for region — a string that includes the state, province, or region where a hotel was searched for type — a string that includes the type of hotel room searched for although none of these attributes are required, you should include as many as possible to use hotel search targets