The settings are set via the widget code that you place on your website:
<script>
window.replainSettings = {
id: '<chat ID>',
// chat settings
**showChat**: <boolean>
**openChatAfterPageLoad**: <boolean>,
**includePages**: <array>,
**excludePages**: <array>,
};
(function(u){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src=u;
var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);
})('<https://widget.replain.cc/dist/client.js>');
</script>
Show/Hide chat
Boolean
<script>
window.replainSettings = {
id: '<chat ID>',
**showChat**: false,
};
(function(u){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src=u;
var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);
})('<https://widget.replain.cc/dist/client.js>');
</script>
Open chat right after page loading
Boolean
<script>
window.replainSettings = {
id: '<chat ID>',
**openChatAfterPageLoad**: true,
};
(function(u){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src=u;
var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);
})('<https://widget.replain.cc/dist/client.js>');
</script>
Show chat only on certain pages