Add the widget to your website
Open Leads, then Embed, copy the embed snippet and paste it just before the closing </body> tag on every page where you want the widget. Add your site's domain to the widget first, then publish and check that the chat bubble appears.
On this page
Install the widget
Step 1: Open Leads, then Embed.
The page is titled Deploy.
Step 2: Pick the widget you want to install from the Widget list.
Step 3: Make sure your site's domain appears under Connected Domains.
If it shows No domains configured yet., add the domain under Allowed domains on the Widget Setup page and save.
Step 4: Under Embed Snippet, select Copy.
Step 5: Paste the snippet just before the closing
</body>tag on every page you want the widget on.Step 6: Publish your site changes.
Step 7: Load a page and confirm the chat bubble appears.
What the snippet contains
The snippet is a single <script> tag. It carries your organization's ID, the widget's site key and an integrity value that lets the browser confirm the script has not been altered. Paste it exactly as copied. Do not edit the attributes.
Where to paste it, by platform
| Platform | Where Clema says to paste the snippet | Help article |
|---|---|---|
| Plain HTML | Directly before </body> in your template. | |
| WordPress | Appearance, then Theme File Editor, then footer.php (before </body>), or an "Insert Headers and Footers" plugin. | WordPress |
| Webflow | Site Settings, then Custom Code, then Footer Code. | Webflow |
| Squarespace | Settings, then Advanced, then Code Injection, then Footer. | Squarespace |
| Wix | Settings, then Custom Code, then Add Code, placed on all pages in the Body - end section. | Wix |
Troubleshooting
- The chat bubble does not appear.
- Check that the page's domain is listed under Connected Domains, that the snippet is before
</body>on that page, and that your site changes are published. - The bubble appears on some pages but not others.
- The snippet has to be on every page. Use a site-wide footer setting instead of pasting it page by page.
- The widget stopped working after someone rotated the site key.
- Rotating the key invalidates the old one immediately. Copy the snippet again from the Embed page and replace the old one on your site.
Common questions
- Do I need a developer to install the widget?
- Not usually. If you can paste code into your site's footer setting, you can install it. A developer helps if your site has no such setting.
- Can I put the widget on only some pages?
- Yes. The widget appears on pages that include the snippet, so add it only to the templates or pages where you want it.
- Is the Site Key secret?
- It identifies your widget and is visible in your page source, so it is not a password. If it is copied somewhere it should not be, rotate it and update the snippet.
- Do I have to reinstall after changing widget settings?
- No. Settings saved in Widget Setup apply to the installed widget.