window object called
There is an events API available that can be used to communicate with the third-parties to have a stable connection between the Crobox Platform and the integrating party. This could be used to integrate with third-party analytics or:
Use this method to register a new event-listener on the event system.
Name of the event that needs to be listened to.
Functionality that needs to be executed when the event fires, as arguments it received the extra arguments that are added when an event is fired
Use this method to de-register an existing event-listener on the event system. Note: for this, you do need to have a reference to the existing callback.
Name of the event that needs to be stopped listening to
Functionality that was previously registered
Use this method to fire a new event in the event system.
Name of the event that you want to emit a new event for
Extra argument that are passed will be add as arguments to the callback function that are registered on the event.