EventData
|
Type |
Interface |
|
Extends | |
|
Import path |
|
Data for custom events.
Signature
Properties
|
Name |
Type |
Description |
Value |
|---|---|---|---|
|
|
|
Required. The type of the event. To send a custom event using Recommendation: Include the name of the site in the unique value, for example, Reserved event names:
To send a standard event using We recommend that you send standard events using their dedicated functions instead of the |
|
|
|
Optional. Any custom data to collect about an event in addition to the other attributes provided for the event data. |
| |
|
|
|
Optional. Important Requires a Sitecore Search subscription. Sitecore Search data about the event. Use only in the following, standard events:
If set, the event and all its data will be available in Sitecore Search. Construct according to the Sitecore Search Events API reference and data model. |
N/A |
Examples
Here's a basic event data object for a custom event named "myretailsite:CLICKED_PROMO":
Here's an example event data object for a SC_SEARCH_WIDGET_VIEW event with search data:
Some code examples, images, and UI labels may still use XM Cloud while engineering assets are being updated.
Here's an example event data object for a SC_SEARCH_WIDGET_CLICK event with search data. This object describes a click event on an item:
Here's an example event data object for a SC_SEARCH_WIDGET_CLICK event with search data. This object describes a click event on a facet:
Here's an example event data object for a SC_SEARCH_WIDGET_CLICK event with search data. This object describes a click event on a suggestion: