Method Calls
addFlightSearch
this method call is only available to clients using the getting started with the monetate travel api addflightsearch method // addflightsearch method window\ monetateq = window\ monetateq || \[]; window\ monetateq push(\['addflightsearch', { // required 'depdate' \['20260315'], // march 15, 2026 'destination' \['cdg'], 'origin' \['lhr'], 'travelers' \[5], // optional 'adults' \[2], 'infants' \[1], 'minors' \[1], 'seniors' \[1], 'retdate' \['20260421'], // april 21, 2026 'serviceclass' \['standard', 'first'] }]); window\ monetateq push(\['trackdata']); the addflightsearch method passes information from your site to monetate when a user searches for a flight this method consists of four required attributes and six optional attributes required attributes these attributes are required with the addflightsearch method depdate — a string that includes the flight's departure date in yyyymmdd format destination — a string that includes the flight's destination (airport or city) origin — a string that includes the flight's point of origin (airport or city) travelers — an integer that includes the number of travelers on a flight optional attributes these attributes are optional for the addflightsearch method adults — an integer that includes the total number of adults booking a flight infants — an integer that includes the total number of infants booking a flight minors — an integer that includes the total number of minors booking a flight seniors — an integer that includes the total number of seniors booking a flight retdate — a string that includes the flight's return date in yyyymmdd format; not used for multiple flights serviceclass — a string that includes the service class for the seats on a flight searched (business, economy, first, etc )