SEARCH event
The SEARCH event captures the user's action of searching for a product. You must send the SEARCH event to Sitecore CDP when the search results page loads.
To send a SEARCH event, use the following required attributes:
Attribute |
Type |
Description |
Example |
---|---|---|---|
|
string (uppercase) |
The touchpoint where the user interacts with your brand. |
|
|
string (uppercase) |
The type of the event that takes place when the user interacts with your brand. |
|
|
string (uppercase ISO 639-1) |
The language the user is using your app in. |
|
|
string (uppercase ISO 4217) |
The alphabetic currency code of the currency the user is using in your app. |
|
|
string |
The name of the webpage where the interaction with your brand takes place. This is a custom value of your choice. |
|
|
string |
The name of the point of sale where the interaction with your brand takes place. |
|
|
string |
The browser ID. |
|
|
string |
The product name the guest searched for. |
|
|
string (uppercase) |
The product type the guest searched for. |
|
To send a SEARCH event for a flight search, use the following attributes:
Attribute |
Type |
Description |
Example |
Required/optional |
---|---|---|---|---|
|
string (uppercase) |
The touchpoint where the user interacts with your brand. |
|
Required |
|
string (uppercase) |
The type of the event that takes place when the user interacts with your brand. |
|
Required |
|
string (uppercase ISO 639-1) |
The language the user is using your app in. |
|
Required |
|
string (uppercase ISO 4217) |
The alphabetic currency code of the currency the user is using in your app. |
|
Required |
|
string |
The name of the webpage where the interaction with your brand takes place. This is a custom value of your choice. |
|
Required |
|
string |
The name of the point of sale where the interaction with your brand takes place. |
|
Required |
|
string |
The browser ID. |
|
Required |
|
string |
The product name the guest searched for. |
|
Required |
|
string (uppercase) |
The product type the guest searched for. |
|
Required |
|
string (uppercase) |
The flight type the guest searched for. |
|
Required |
|
string (uppercase) |
The IATA code (airport or city) of the origin the guest searched for. |
|
Required |
|
string (uppercase) |
The IATA code (airport or city) of the destination the guest searched for. |
|
Required |
|
string (ISO 8601) Format: |
The local departure date and time of the flight the guest searched for. |
|
Required |
|
string (ISO 8601) Format: |
The local return date and time of the flight the guest searched for. |
|
Required |
|
integer Minimum |
The number of adults of the flight the guest searched for. |
|
Required |
|
integer Minimum |
The number of children of the flight the guest searched for. |
|
Required |
|
integer Minimum |
The number of infants of the flight the guest searched for. |
|
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 |
{
"channel": "MOBILE_APP",
"type": "SEARCH",
"language": "EN",
"currency": "EUR",
"page": "search page",
"pos": "myretailsite/ireland",
"browser_id": "a38b230c-11eb-4cf9-8d5d-274e9f344925",
"product_name": "airSupport",
"product_type": "RUNNERS"
}
{
"channel": "MOBILE_APP",
"type": "SEARCH",
"language": "EN",
"currency": "EUR",
"page": "search page",
"pos": "spinair.com/france",
"browser_id": "a38b230c-11eb-4cf9-8d5d-274e9f344925",
"product_name": "DUB-LHR",
"product_type": "FLIGHT",
"flight_type": "RT",
"origin": "DUB",
"destination": "LHR",
"start": "2025-01-30T00:00",
"end": "2025-02-01T00:00",
"adults": 2,
"children": 1,
"infants": 0,
"fare_class": "Economy",
"fare_family": "Economy Plus"
}