1. @sitecore-cloudsdk/search/server

entityView

Version:

Type

Function

Import path

@sitecore-cloudsdk/search/server

Sends an entity view event.

Signature

export async function entityView(
  entityViewEventParams: EntityViewEventParams
): Promise<EPResponse | null>

Parameters

Name

Type

Description

entityViewEventParams

EntityViewEventParams

Data for entity page view events.

Return value

Returns a promise.

Examples

Example 80. Running the entityView 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 entityView function:



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