1. @sitecore-cloudsdk/search/server

widgetView

Version:

Type

Function

Import path

@sitecore-cloudsdk/search/server

Sends a widget view event.

Signature

export async function widgetView(
  widgetViewEventParams: WidgetViewEventParams
): Promise<void>

Parameters

Name

Type

Description

widgetViewEventParams

WidgetViewEventParams

Data for widget view events.

Return value

Returns a promise.

Examples

Example 75. Running the widgetView 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 widgetView function:



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