Navigation click events
The navigation click event tracks when the site visitor clicks a navigation item in your app, typically on a search results page. For example, when the site visitor clicks a navigation button to move to a different page of search results.
You can send navigation click events by using the widgetNavigationClick function and passing it the navigation click event data object.
The navigation click event data object
The navigation click event data object represents all the required and optional data about the event.
This is the object where you provide data about the event. All this data is sent to Sitecore Search, so make sure to provide the correct data depending on your organization's requirements. Construct the object in the following way:
Examples
During development, use your web browser's developer tools to check the payload containing all the event data that is sent to Sitecore.
Example 12. Sending a navigation click event
Here's an example event data object for a navigation click event. The object contains all the required and some optional event data. You can send this event by passing the object to the widgetNavigationClick function:
For this navigation click event data object, the following payload is sent to Sitecore: