LiveChat Triggers
LiveChat provides five callbacks that can be tracked as Infinity goals:
LiveChat Event | Description |
---|---|
On before load | Callback function invoked when LC_API object is loaded and ready to use, before the chat window is rendered (not supported with the pop-up chat window). |
On after load | Callback function invoked when LC_API object is loaded and ready to use, right after the chat window is rendered (not supported with the pop-up chat window). |
On chat window opened | Callback function invoked when the chat window is opened (not supported with the pop-up chat window). |
On chat window minimised | Callback function invoked when the chat window is minimised (not supported with the pop-up chat window). |
On chat window hidden | Callback function invoked when the chat window is hidden (not supported with the pop-up chat window). |
To track these LiveChat events as goal, the your web development team would have to add additional scripting to the LiveChat tracking code.
Below shows the additional code that they will need to add.
On Before Load
var LC_API = LC_API || {};
LC_API.on_before_load = function()
{
_ictt.push(['_customTrigger', 'LIVECHAT_BEFORELOAD']);
};
On After Load
var LC_API = LC_API || {};
LC_API.on_after_load = function()
{
_ictt.push(['_customTrigger', 'LIVECHAT_AFTERLOAD']);
};
On Chat Window Opened
var LC_API = LC_API || {};
LC_API.on_chat_window_opened = function()
{
_ictt.push(['_customTrigger', 'LIVECHAT_WINDOWOPEN']);
};
On Chat Window Minimised
var LC_API = LC_API || {};
LC_API.on_chat_window_minimized = function()
{
_ictt.push(['_customTrigger', 'LIVECHAT_WINDOWMIN']);
};
On Chat Window Hidden
var LC_API = LC_API || {};
LC_API.on_chat_window_hidden = function()
{
_ictt.push(['_customTrigger', 'LIVECHAT_WINDOWHIDE']);
};