How to click on link to open live chat
We've had quite a few questions on how to trigger a live chat with a link or button click. With some simple javascript, you can easily trigger your live chat with a link. Here's how you can do it with our custom javascript API and some settings.
First, there is a bit a javascript you can use to open the link with a button click. Here's a link to more about our Developer API.
<script type="text/javascript">SI_API.showPopup();</script>
To use this code from an href you can create a link as follows. So with this in mind, you can open the live chat with a link or href or also use a button image click to open the live chat.
<a href="#" onclick="SI_API.showPopup();">my live chat link</a>
Finally, there are some settings you can use to hide the chat tab we provide. This is handy if you want to activate the chat from a custom image or custom javascript event.
In your app settings, go to the targeting tab and set the following:
Action: Show Popup on Match
After Time On Page: Ignore
 This will hide the tab and the After Time on Page ignores any automatic popup.  You can keep the automatic popup if you like.  It works either way!
This will hide the tab and the After Time on Page ignores any automatic popup.  You can keep the automatic popup if you like.  It works either way!
