Send a SEARCH event to Sitecore CDP

Abstract

Provides a JSON example of how to send a SEARCH event to Sitecore CDP (Data model 2.1).

The SEARCH event captures the user's action of searching for a product. The SEARCH event must be passed to Sitecore CDP when the search results page loads.

To send a SEARCH event to Sitecore CDP, use the following attributes:

Attribute

Description

Type

Example(s)

Required/optional

channel

The channel captured on each page the guest visited.

string (uppercase)

"WEB", "MOBILE_WEB", "MOBILE_APP"

Required

type

The type of event.

string (uppercase)

"SEARCH"

Required

language

The language captured on each page the guest visited.

string (2 letter ISO 639 language code)

"EN", "FR", "DE"

Required

currency

The type of currency.

string (3 letter ISO 4217)

"EUR", "USD", "GBP"

Required

page

The name of the webpage the guest visited.

string

"home page", "search page"

Required

pos

The point of sale (storefront) captured on each page the guest visited.

string (predefined by client)

"myretailsite.com"

Required

browser_id

The ID of a browser generated by Sitecore CDP.

string (UUID)

"56860bff-94ba-4d84-aa37-2b5a83d5411b"

Required

product_name

The product name the guest searched for.

string

"airSupport"

Required

product_type

The product type the guest searched for.

string (uppercase)

"runners"

Required

The following JSON example contains a SEARCH event:

{
    "channel": "WEB",
    "type": "SEARCH",
    "language": "EN",
    "currency": "EUR",
    "page": "search result page",
    "pos": "myretailsite.com",
    "browser_id": "56860bff-94ba-4d84-aa37-2b5a83d5411b",
    "product_name": "airSupport",
    "product_type": "runners"
}