Let the website widget open automatically

You can draw more attention to your website widget by having it open automatically. You can easily customize this in the code.

Modify website widget code

To find the code in the platform follow these steps:

  1. Go to Settings ⚙️
  2. Choose Add/edit channels
  3. Go to website widget and choose the one you want to place
  4. Click on view code
  5. Change this code in your website to: "window.Watermelon.toggled = false" to "window.Watermelon.toggled = true".

The complete code looks like this:

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


Then you place the custom code in the body text of your website. Below is an example of how customizing the code works in Wordpress:


Need more help to place the code on your website? Click here!

Note: This code will cause the website widget to open on the first visit.