event
Version:
|
Type |
Function |
|
Import path |
|
Sends a custom event with custom data.
Note
The event function can also send a standard event, such as IDENTITY, ORDER_CHECKOUT or SC_SEARCH events if the correct payload is provided.
Signature
Parameters
Return value
Returns a promise or null.
Examples
Example 35. Running the event 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 event function to send a custom event named "myretailsite:CLICKED_PROMO":