JavaScript API - Logging
Logging
Send predefined or custom logs to the Chatvisor platform which can be tracked and visualized.
Predefined events
Predefined events are automatically logged when different events occur. For example when the Optin popup is activated, the COBROWSE_ACCEPT
/COBROWSE_DECLINE
events are tracked. It is also possible to track these predefined events manually by execution of the JavaScript API function.
CV.logFixed('<category>', '<type>');
Category | Type | Description |
---|---|---|
COBROWSE | COBROWSE_START | When the CoBrowsing session is started. |
COBROWSE | COBROWSE_STOP | When the CoBrowsing session is stopped. |
COBROWSE | COBROWSE_ACCEPT | When the visitor accepts the CoBrowsing session (when the visitor clicks the Accept button in the Optin Popup). |
COBROWSE | COBROWSE_DECLINE | When the visitor declines the CoBrowsing session (when the visitor clicks the Decline button in the Optin Popup). |
Custom events
It is also possible to track custom events. Therefore you can simply define our own category
and its value
.
CV.log('<category>', '<value>');