The chat is conflicting with other widgets

Subscribe to chat events

Sometimes it's useful to do something when the chat widget is open or closed. You can use the example below to do that. Notice that the code below uses window.setInterval - that is because the chat JS code is loaded asynchronously and we don't know if it's loaded or not so we have to check periodically:

var gorgiasChatInterval = window.setInterval(function () { if (Smooch) { window.clearInterval(gorgiasChatInterval); // this line breaks out of the loop - make sure it's not deleted. // you can also use widget:open here's the complete list of events: https://github.com/gorgias/smooch-js#events Smooch.on('widget:closed', function() { // your code should go here }); } }, 100);

Adding an “open the chat” link

If you want to add a link on your page to open the chat when clicked, use the code below:

<a onclick="Smooch.open();">Start a chat with our team</a>

Add Custom CSS

If you wish to additionally customize chat widget you can add your code according to the instructions below: