Description

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>

Available settings

showChat

Show/Hide chat

Setting Type

Boolean

Example

<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>

openChatAfterPageLoad

Open chat right after page loading

Setting Type

Boolean

Example

<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>

includePages

Show chat only on certain pages

Setting Type