This documentation details the process of setting a custom visitor ID (visitorId) in the TrueEngage widget. This feature allows users to provide information about the visitor they recognize (e.g., upon login).
Visitor information can be added to a widget by passing it in a JavaScript object before embedding the widget on a web page. Passing a custom visitor ID allows you to maintain a consistent interaction history and chat resumes from different devices.
Initialize a global settings object for the widget if it does not already exist:
window._cceSettings = window._cceSettings || {};
Add your visitor ID to the property visitorId
in the _cceSettings
object.
window._cceSettings = {
visitorId: 'custom_visitor_id_4'
};
For further assistance or advanced customization options, please contact support.