Webflow has a box for code that goes before </body> on every page. Paste the Dinghy tag there and publish.
Get your tag
It's in the Dinghy operator app, under Settings > Install:
<script src="https://chat.example.com/widget/loader.js" data-key="wk_your_public_key" async></script>
Add your site to Allowed sites
In Dinghy, open Settings > Install and add your domain under Allowed sites, like https://www.example.com. If you want the chat on your webflow.io staging address too, add https://your-site.webflow.io as well.
Paste the tag
- In Webflow, open your site's settings.
- Go to the Custom code tab.
- Paste the tag in the Footer code box. Webflow puts that code before
</body>on every page. - Save.
- Publish the site.
Webflow requires an active Site plan or a Core, Growth, Agency or Freelancer Workspace plan for custom code.
Check that it works
Custom code doesn't run in the Designer preview, so test the published site. Open it in a private window, click the chat button and send a test message. It shows up in your Dinghy inbox.
No button? Check you published after saving, then open the browser's developer console. If loader.js failed, the address in the tag is wrong or a Content Security Policy blocks it. If the button shows but every message says "Not sent", add the exact address you're on to Allowed sites, www included.
Open the chat from your own button
Add data-launcher="hidden" to the tag to hide Dinghy's button. Then link your button to #chat and add this script in the Footer code, after the tag:
<script>
document.addEventListener("click", (e) => {
if (!e.target.closest('a[href="#chat"]')) return;
e.preventDefault();
// Before the chat's script has loaded, the call waits in its queue.
if (window.Dinghy?.open) Dinghy.open();
else (window.Dinghy ??= { q: [] }).q?.push(["open"]);
});
</script>
See Add the chat to your site for Dinghy.open().