Adobe Commerce only. Learn more.

Events

The Storefront Events SDK provides access to a common data layer, with event publishing and subscription services. The Storefront Event Collector package listens for events and includes the following search-related functions:

Function Description
searchProductClick Triggered when a shopper clicks a product in the “search as you type” popover or on the search results page.
searchRequestSent Triggered by the following events in the “search as you type” popover:
- Type or press Enter
- Click View All

Triggered by the following events on search results pages:
- Select a filter
- Change the sort order (Sort By)
- Change the sort direction (ascending or descending)
- Change the number of results per page (Show # per page)
- Navigate to the next page
- Navigate to the previous page
- Navigate to a different page
searchResponseReceived Triggered when Live Search returns results for the “search as you type” popover or search results page.
searchResultsView Triggered when results appear in the “search as you type” popover or search results page.
searchSuggestionClick Triggered when a shopper clicks a product suggestion in the “search as you type” popover.