- For visitors on your website – the widget appears for anyone browsing your site. Conversations will be saved in the browser via a cookie.
- For both visitors and logged-in users – the widget is available across your website and inside your platform or app. The widget will show information like customer names and previous conversations across devices.
Installing the widget for visitors on your website
Getting your Chat Widget snippet
Let’s first get your chat widget snippet, before we can place it onto your website. Follow the steps below:1
Open Apps
Navigate to Apps in the menu on the left-hand side of your Watermelon dashboard.

2
Open Chat Widget
Go to the section Channels, click on Chat Widget and select the widget you want to place on your website.

3
Go to placement
In the widget settings, open the Placement tab.

4
Copy your widget code
Under Code, you’ll find your installation snippet. Click the copy icon in the top-right corner to copy the code to your clipboard.

Install yourself
Click Copy code and paste it before the</head> tag on every page you want the Widget to appear on your app and website.
After adding the code, open your app and website and the Widget will appear.
You can also use one of our guides to install the widget in a CMS:
- Install in CMS
- Wordpress
- Wix
- Lightspeed
- Google tag manager
- Shopify
- Joomla
- Squarespace
- Framer
- Webflow
- BigCommerce
- Weebly
You can easily install the widget in your CMS, you can find the guide by scrolling through the tabs. We provide a guide for the following CMS systems:
- Wordpress
- Wix
- Lightspeed
- Google Tag Manager
- Shopify
- Joomla
- Squarespace
- Framer
- Webflow
- BigCommerce
- Weebly
Ask your developer to help (optional)
If you’d prefer someone else from your team to take care of the installation, you can add them to Watermelon so they have direct access to the code. Alternatively, you can share the code and this documentation guide with a developer, they’ll be able to handle it from there.Installing the widget for both visitors and logged-in users
You can install the widget directly using our NPM package, which works with any framework. The package includes a script to embed the widget into your application. Add Watermelon to your application using the following command in your terminal:Shut down your user sessions on user logout
This step should take place either right before or after the logout call — the order doesn’t matter. Two postMessage calls are required:- The first one hides the widget from the top-level iframe.
- The second one tells the iframe app to clear everything from local storage and reset its state, such as conversation ID and contact ID.

