logEvent()

Logs a custom event to the widget’s analytics system. The event must include a string type and, optionally, an object data payload.

Signature


Parameters

customEvent.type string
The name of the custom event. Must be a string.
customEvent.data object (optional)
Additional data to attach to the event. Must be an object (not an array).

Returns

None

Example