SEARCH event
The event object for a SEARCH event must include all the required attributes for event objects plus the following attributes:
Attribute |
Type |
Description |
Example |
Required/optional |
---|---|---|---|---|
|
string |
The product type the guest searched for. This is a custom value of your choice, but note that the value |
|
Required |
|
string |
The product name the guest searched for. |
|
Required |
If you set the value of product_type
to "FLIGHT"
, the event object for a SEARCH event must also include the following attributes:
Attribute |
Type |
Description |
Example |
Required/optional |
---|---|---|---|---|
|
string enum (two-letter, uppercase) |
The flight type the guest searched for. |
Must be one of:
|
Required |
|
string (three-letter, uppercase) |
The IATA code of the origin the guest searched for. |
|
Required |
|
string (three-letter, uppercase) |
The IATA code of the destination the guest searched for. |
|
Required |
|
string (ISO 8601) without the time zone. Format: YYYY-MM-DD’T’hh:mm |
The local departure date and time of the flight that the guest searched for. |
|
Required |
|
string (ISO 8601) without the time zone. Format: YYYY-MM-DD’T’hh:mm |
The local return date and time of the flight that the guest searched for. |
|
Required |
|
integer |
The number of adults of the flight the guest searched for. The minimum value is |
|
Required |
|
integer |
The number of children of the flight the guest searched for. The minimum value is |
|
Required |
|
integer |
The number of infants of the flight the guest searched for. The minimum value is |
|
Required |
|
string (title case) |
The class of flight the guest searched for. |
|
Required |
|
string (title case recommended) |
The fare family of the flight the guest searched for. |
|
Optional |
Examples
This example describes an event object for a SEARCH event in an integration that uses the Boxever JavaScript Library. The browser_id
is set to the value that the Boxever.getID()
function returns.
This example describes an event object for a SEARCH event in an integration that uses the Boxever JavaScript Library. The browser_id
is set to the value that the Boxever.getID()
function returns. This event object describes a search for a flight.