1. @sitecore-cloudsdk/search/server

widgetFacetClick

Version:

Type

Function

Import path

@sitecore-cloudsdk/search/server

Sends a facet click event.

Signature

export async function widgetFacetClick(
  widgetFacetClickEventParams: WidgetFacetClickEventParams
): Promise<EPResponse | null>

Parameters

Name

Type

Description

widgetFacetClickEventParams

WidgetFacetClickEventParams

Data for facet click events.

Return value

Returns a promise.

Examples

Example 77. Running the widgetFacetClick function

Next.js

Note

To run this function, you have to first initialize the Cloud SDK.

See more examples and other data you can include in the event.

Here's an example of how to use the widgetFacetClick function:



If you have suggestions for improving this article, let us know!