Open CXhub automatically

When your customers visit your website, you can choose to have the CXhub interface open automatically. This can encourage your customers to ask a question or start having a conversation with your service/sales team (or your chatbot).

Edit CXhub code

Follow these steps to have CXhub open automatically:
1. Go to Settings.
2. Choose Add/Edit Channels.
3. Go to CXhub and choose your website's URL.
4. Click on See code and copy the code.
5. Change "window.Watermelon.toggled = false" in "window.Watermelon.toggled = true".

The complete code looks like this, for example:
<script type="text/javascript">
    window.Watermelon = window.Watermelon || {};
    window.Watermelon.key = "pxxxu2d9xxx8s2tZnxxxtxxxWatTKphOxxxIKxxxhvbfoxxx7vtZxxxZixxb";
    window.Watermelon.toggled = true;
    (function(d,s) {
        s = d.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = "https://wm-livechat-2-prod-dot-watermelonmessenger.appspot.com/assets/js/wm_plugin.js";
        d.getElementsByTagName('script')[0].appendChild(s);
    }(document));
</script>
Schermafbeelding 2019-09-12 om 15.53.44.png 208.59 KB

6. Place the code on your website!

Need more help placing the CXhub code on your website? Click here!


Gerelateerde artikelen

Was this article useful?