LiveZilla Widget API allows you to apply configurations or change visual aspects on-site via Javascript calls.
Please make sure that the LiveZilla (version 7.1.0.1 and up) chat button code is integrated in the page where you want to access the API.
Data Privacy
Cookie Opt-In
If you have cookies configured to be "Opt-In", this call activates the usage of cookies.
LiveZilla.OptInCookies();
Cookie Opt-Out
If you have cookies configured to be "Opt-Out", this call removes all cookies and ensures that no further cookies will be set.
LiveZilla.OptOutCookies();
Visitor Monitoring / Tracking Opt-Out
Visitor monitoring will be deactivated for the visitor forever.
LiveZilla.OptOutTracking();
Data Pass-Thru
Change / Set Visitor Details
Use this function to change visitor details like name or email by passing an data object. Please note
this FAQ entry.
LiveZilla.SetData({overwrite:true,111:'Tom',112:'tom@email.domain'});
Widget UI Controls
Please make sure that you activate "API Mode" when creating your Chat Button Code in the LiveZilla Link Generator
Show Widget
OverlayChatWidgetV2.Show();
Hide Widget
OverlayChatWidgetV2.Hide();
Toggle Widget Service
OverlayChatWidgetV2.SetMode(chat|ticket|phone|knowledgebase);