Install Yaplet on a Duda site

Updated October 22, 2026

Duda has a site-wide setting for adding your own code to every page, and that is all the Yaplet widget needs. You paste the Yaplet code into the Body End HTML field, republish your site, and the chat button appears on your site. You don't need a developer.

Duda's help lists custom code as available on the Team plan and higher. If a web agency or designer runs your site on Duda, the plan is theirs, and they also decide which settings you can open and whether you can republish. Menu names below are written exactly as Duda's own help shows them.

1. Copy your Yaplet code

In the Yaplet dashboard's left menu, go to Brand → (your brand) → Chat widget → Install. If the tab asks where your website runs, choose Other website. Copy the code with the copy button on the code block.

If the code you copied starts with !function (Yaplet, it has no <script> tags around it yet. Duda's field takes HTML, so you add those tags in step 3.

2. Open the Header HTML settings

Open your site in the Duda editor. In the side panel, click More, then Settings, and click Header HTML.

3. Paste the code into Body End HTML

You see two fields: Head HTML and Body End HTML. Use Body End HTML: it adds the code at the end of every page, and Duda recommends it whenever you use a cookie consent app, because a consent app can't hold back code placed in the head.

Paste the Yaplet code. The code must start with a <script> line and end with a </script> line. If what you copied starts with !function (Yaplet instead, type <script> on a new line before it and </script> on a new line after it. The finished code looks like this:

<script>
(your Yaplet code)
</script>

Click Save.

4. Republish your site

In the editor's top bar, click the Republish button (it says Publish if your site isn't live yet). Your changes only go live after this.

5. Check your site

Open your live site in a new browser tab and reload the page. The Yaplet chat button appears in the bottom-right corner. Click it to check that the chat opens.

For a full checklist, see Verify your installation.

If the chat doesn't appear

  • The site wasn't republished. Saving the code is not enough. Click Republish in the editor.
  • You can't find Settings, Header HTML or the Republish button. Your agency or designer sets your permissions for each site. Ask them to give you access, or to add the code for you.
  • The code disappeared after saving. You probably pasted it into Head HTML, which removes code it doesn't accept. Paste it into Body End HTML instead.
  • The <script> tags are missing. Check that <script> is on the line before the code and </script> on the line after it, then save and republish.
  • The code is there but still doesn't run. Duda's page speed optimization can affect custom code. Duda's help says its support team can turn it off for your site.
  • You still see the old page. Your browser may show a cached copy. Reload the page, or open it in a private window.

What's next

To see what the code does and where your widget ID is, read Install Yaplet.

Did this article answer your question?