.setProactiveAutoCloseDelay()
// Autoclose the proactive invitation after 5 minutes of inactivity
var minutes = 5;
SnapEngage.setProactiveAutocloseDelay(minutes);
Adjust the time before the proactive invitation disappears. The default proactive autoclose delay is 2 minutes.
By default, the proactive chat window is set to close after 2 minutes of inactivity, that is: if a visitor does not respond for a couple minutes, we generally assume that they are not interested in chatting. If you never want the proactive invitation to disappear, set the parameter to 0
.
Parameters
Parameter | Type | Description |
---|---|---|
minutes | Integer | Number (in minutes) until auto-close. This can be a whole number or decimal (eg. 0.5 can be used for a delay of 30 seconds). |