Subdomain manager

The subdomain manager allows chats sessions to be kept alive between different subdomains on a website.

Prerequisites

Before you begin, ensure you have access to your domain's DNS settings and can create SSL certificates.

Step 1: DNS Configuration

To enable chats across subdomains, you need to configure your DNS and establish a secure connection. Follow these steps:

Create a CNAME Record

1. Access DNS Settings:

- Log in to your domain registrar's dashboard where DNS records can be managed.

2. Create CNAME Record:

  • Host/Name: Select the corresponding subdomain (e.g., ebbot.yourdomain.com).

  • Target/Value: Enter ebbot.eu.

Step 2: Ebbot Settings

Add subdomain to the Ebbot subdomain manager:

  • Alias: Enter an alias for the subdomain entry. This does not affect the functionality itself.

  • Path: The full subdomain that you have configured excluding https:// or http://, where you intend to host the Ebbot widget. In this example it would be: ebbot.yourdomain.com

Step 3: Modify and Add the JavaScript Snippet to your website

Add the apiUrl parameter to the ebbot widget script

Please note that the below snippet is only an example. You can access your bots' snippet in the sidebar of ebbot app, under Chat widget > Settings

<script>
      window.Ebbot = {
        botId: 'yourbotid123',
        ovh: true,
        apiUrl: 'ebbot.yourdomain.com'        
      };
    </script>
    <script>!function(t){var e="init-js-widget";if(!t.getElementById(e)){var i=t.createElement("script");i.id=e,i.src="https://storage.gra.cloud.ovh.net/v1/AUTH_8f9eec18dd5a496ea2fae844626938b6/staging/ebbot-web/init.js?t="+Math.random(),t.querySelector("body").appendChild(i)}}(document);</script>

Done! Your chat sessions should now be kept alive between the selected subdomain and your main domain.

Last updated

Was this helpful?