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 |
|---|---|---|---|
|
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. | |
|
|
function |
This callback function handles the response. |
N/A |
|
|
string |
The format of the response. |
Set the value to |
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.