NAV
javascript

.allowProactiveChat()

var allow = true;
SnapEngage.allowProactiveChat(allow);

Should proactive chat invitations be allowed to fire? You can use this to disable (or re-enable) proactive chat wherever it might be necessary.

This option can also be easily configured in the Admin Dashboard. The API call exists primarily for special circumstances, where you want to enable or disable use of proactive chat on specific pages.

Parameters

Parameter Type Description
allow boolean If set to true, proactive chat invitations are enabled. If set to false, there will be no proactive chat invitations.