Home > Tag Archives: JS API

How do I clear all SnapEngage cookies when my user logs out of my site?

About This Article

The purpose of this article is to provide a comprehensive overview of how to clear all SnapEngage cookies when my user logs out of your site.

Add a call for the following SnapEngage API function whenever you would like the cookies to be deleted.

SnapEngage.clearAllCookies();

Note- place your JS Api below the line of code that reads …

READ FULL ARTICLE

How do I open the chat window programmatically?

About This Article

This article explains how to programmatically open the chat window.

Overview

There are a few ways to start a chat using our Javascript API’s after you have the SnapEngage code installed on your website. Your usage may depend on exactly what you’re hoping to do, but in most cases we recommend using the following.

SnapEngage.openProactiveChat();

You can …

READ FULL ARTICLE

How do I programmatically disable the proactive chat for some users I know are already converted?

About This Article

The purpose of this article is to provide a comprehensive overview of how to programmatically disable the proactive chat for some users I know are already converted.

To disable proactive chat for converted visitors you can place the following line in the SnapEngage JavaScript code after the line:

// Place your SnapEngage JS API code below

SnapEngage.allowProactiveChat(false);
READ FULL ARTICLE

Set the email address for pre-chat form or start of chat

About This Article

The purpose of this article is to provide a comprehensive overview of how to pre set an email address for pre-chat forms or the start of a chat.

Have a returning visitors or customers coming to your site frequently? You can pre-set the email address of a known user or users using our JavaScript API. This will …

READ FULL ARTICLE