Framer's project settings have a Custom Code section. Add the Dinghy tag there as a site-wide script at the end of the body, publish, and the chat is on every page.
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 people also reach you at your Framer address, add that one too. The chat only works on sites on the list. Anywhere else the button still shows, but messages don't send.
Framer documents where and when custom code runs. You can use your published Framer address. Framer requires a paid plan to connect a custom domain.
Paste the tag
- Open your project in Framer and go to its settings.
- Open the Custom Code tab and add a script.
- Name it something you'll recognize, like "Dinghy chat".
- Set the position to the end of the body.
- Leave the page list empty, so it runs on the whole site.
- Set it to run once.
- Paste the tag and save.
- Publish the site.
Running the script once keeps the same chat as people move between pages.
Check that it works
Framer doesn't load custom code in the canvas 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. Troubleshooting has the usual causes.
Things to know
- If your plan has Advanced Hosting and you set a Content Security Policy header under Site Settings > Hosting > Headers, allow your Dinghy address in
script-src,connect-srcandimg-src. Dinghy doesn't needunsafe-inline. - The chat runs in its own Shadow DOM. Your Framer styles don't touch it, and it doesn't touch your site.
Next
- Change colors, the chat button and the words in Settings > Appearance. No code. The tag's
data-primaryanddata-accentwin over the setting. See Add the chat to your site. - To open the chat from your own button, use
data-launcher="hidden"andDinghy.open(). See Control it from your page.