Boxever.eventCreate(event, callback, format)
The eventCreate() function sends an event to Sitecore Personalize. An event is all the data about a user's interaction with your application. Call this function as part of the anonymous function that you add to the _boxeverq array.
Parameters
| Parameter | Type | Description | Note |
|---|---|---|---|
event | object | All the event data. | Specify the browser ID in this object. Every event that you send to Sitecore Personalize must include the browser ID. |
callback | function | This callback function handles the response. | N/A |
format | string | The format of the response. | Set the value to "json". Other formats are not supported. |
Return value
undefined
Example
This example describes how to send a VIEW event to Sitecore Personalize. The _boxeverq array receives an anonymous function. The anonymous function contains a VIEW event object. The eventCreate() function receives the VIEW event object and sends the event data to Sitecore Personalize.
If you have suggestions for improving this article, let us know!