Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 2c5c885

Browse files
authored
Merge pull request #2508 from magento-devdocs/search-events-overview
Search events overview
2 parents 6d06fc5 + c1b9bcc commit 2c5c885

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/_data/toc/live-search.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ pages:
4242
url: /live-search/product-search.html
4343
versionless: true
4444

45+
- label: Events
46+
url: /live-search/events.html
47+
versionless: true
48+
4549
- label: Release Notes
4650
url: /live-search/release-notes.html
4751
versionless: true

src/live-search/events.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
group: live-search
3+
title: Events
4+
ee_only: True
5+
---
6+
7+
The [_Storefront Events SDK_](https://devdocs.magento.com/shared-services/storefront-events-sdk.html) provides access to a common data layer, with event publishing and subscription services. The [_Storefront Event Collector_](https://devdocs.magento.com/shared-services/storefront-event-collector.html) package listens for events and includes the following search-related functions:
8+
9+
|Function|Description|
10+
|---|---|
11+
|`searchProductClick`|Triggered when a shopper clicks a product in the "search as you type" popover or on the search results page. |
12+
|`searchRequestSent`|Triggered by the following events in the "search as you type" popover:<br />- Type or press Enter<br />- Click _View All_<br /><br />Triggered by the following events on search results pages:<br />- Select a filter<br />- Change the sort order (_Sort By_)<br />- Change the sort direction (ascending or descending)<br />- Change the number of results per page (_Show # per page_)<br />- Navigate to the next page<br />- Navigate to the previous page<br />- Navigate to a different page|
13+
|`searchResponseReceived`|Triggered when Live Search returns results for the "search as you type" popover or search results page.|
14+
|`searchResultsView`|Triggered when results appear in the "search as you type" popover or search results page.|
15+
|`searchSuggestionClick`|Triggered when a shopper clicks a product suggestion in the "search as you type" popover.|

src/shared-services/storefront-event-collector.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ The collector then begins listening for the following events. When any of these
4343
- `recsResponseReceived`
4444
- `recsUnitRender`
4545
- `recsUnitView`
46-
- `searchCategoryClick`
4746
- `searchProductClick`
4847
- `searchRequestSent`
4948
- `searchResponseReceived`

0 commit comments

Comments
 (0)