1. Interfaces

ContextData

Version:
TypeInterface
Import path@sitecore-cloudsdk/search/browser

Details about the site visitor's search request, such as locale, location, device, and web browser information. Sitecore Search uses this data for personalizing search results.

Signature

export interface ContextData {
  locale?: LocaleData;
  page?: PageData;
  user?: UserData;
  store?: StoreData;
  campaign?: CampaignData;
  geo?: GeoData;
  browser?: BrowserData;
}

Properties

NameTypeDescription
localeLocaleDataOptional.

The country and language the webpage is being viewed in.
pagePageDataOptional.

The URI the site visitor came to the current webpage from.
userUserDataOptional.

Data about the site visitor.
storeStoreDataOptional.

Data about the online store where the site visitor made the search request. Typically used in Buy Online Pickup In Store retail strategies.
campaignCampaignDataOptional.

The UTM parameters in the URL of the webpage.
geoGeoDataOptional.

Geographical data about the search request.
browserBrowserDataOptional.

Data about the site visitor's web browser.
If you have suggestions for improving this article, let us know!