Proactive rules
CTLive shows the widget as soon as the page is loaded or later based on some events using one of the following rules:
Name | Description | Example |
---|---|---|
engagementTimeout | Delay used to show the widget, expressed in ms | 20000 (20s) |
engagementOnClick | Widget shows up when user clicks on the area identified by the css selector specified | #ID .class |
engagementOnMove | Widget shows up when user move the mouse over the area identified by the css selector specified | #ID .class |
engagementFunction | Expected a JS function returning a Promise resolved with true when the widget is supposed to show up. This function is useful to create a proactivity rule based on custom business logic. E.G. when a user add into the cart an item with a value higher than 100$ | //Trigger the widget after 10sec return new Promise(function(resolve){ setTimeout(resolve,10000); }); Â |
engagementTimeout is not compatible with other rules. You need to set engagementTimeout to 0 to evaluate the others.
If you need to evaluate multiple rules at the same time you should use engagementFunctuion,
CheckMedia
CTLive, optionally, calls a CallCenter web service to get the availability of agent, in order to show widget only when at least an agent is available. That option is called checkMedia.
checkMedia is performed periodically, and only when the answer is positive, proactive rules are evaluated.