Overlay Configuration Parameters
The Overlay configuration object accepts the following parameters:
Name | Type | Description | Default |
---|---|---|---|
endpoints | Object | Configuration of the API Endpoints. By default only the host and the version is configured. The instance name must be configured by overriding this property in the snippet. | { |
lang | String | Search results language (catalog data, links, top clicked, etc.). | 'en' |
displayLang | String | Search results display language (tags and labels) | 'en' |
defaultCurrency | String | Currency for the search results. | 'USD' |
scope | String | Device / App where the search is going to be performed. Ask the team if you have doubts or want any specific ones. | 'mobile', 'tablet', 'desktop' |
pageRows | Number | Number of results to be displayed per page. | 24 |
disableTracking | Boolean | Disable all tracking events. | false |
cookieUserId | String | Name of the cookie where the user id is stored. | '__eb_user_id' |
cookieSessionId | String | Name of the cookie where the session id is stored. | '__eb_session_id' |
defaultImage | String | URL of the default image to be inserted when a product image is not available. When not provided, our default image is used. | null |
debug | Boolean | Used to log debugging information to the console and enable Angular scopes inspecting. | false |
debugProductPage | Boolean | If true and debug is enabled, fake product_page.html is used instead product page. For debug purposes only. | undefined |
domTrigger | String | Selector of the search box. In case your site search uses multiple inputs, you can provide either a class or concatenate multiple selectors using a comma. | '.eb-trigger' |
domInput | String | Selector of the search box. In case your site search uses multiple inputs, you can provide either a class or concatenate multiple selectors using a comma. | '#eb-input' |
domHeader | String | Selector of the element under which you want to place the overlay in the desktop version. This keeps the header element visible while performing the search. If your site has multiple headers, feel free to provide as many as you want in this selector and we will pick the one that is visible. | undefined |
domA2CTrigger | String | Selector of the 'add to cart button' in the product page. If add to cart tracking in product page is enabled, a handler is attached to buttons that match with this selector. | '#eb-a2c' |
loadingAnimation | String | URL of your loading animation. When not provided, our default animation is used. | undefined |
urlHandler | Object | This parameter can be used to override the default URL query string parameter names. This should only be used when any of those parameters clashes with your URL usage. | { |
queryOrigin | Object | This parameter can be used to override the default values of the query origin sent in the track query event. | { |
actionCallbacks | Object | An object containing the custom functions for tracking actions callbacks. The name of the properties must be the action name. These functions have to be declared before the actionCallbacks: { OR actionCallbacks: { | undefined |