Duda
Add Rybbit analytics to your Duda site
Duda has a site-wide Header HTML panel in the site settings with two fields: Head HTML, printed inside <head> on every page, and Body End HTML, printed before </body>. The snippet goes into Head HTML, and the site must be republished for it to reach the live site.
Get your tracking snippet
In your Rybbit dashboard, open Site Settings → Tracking Script and copy your snippet. It looks like this:
<script src="https://app.rybbit.io/api/script.js?siteId=YOUR_SITE_ID" defer></script>YOUR_SITE_ID is the numeric ID of your site. If you self-host Rybbit, app.rybbit.io is the domain of your own instance.
Add the snippet to Duda
- In the editor's side panel, click More, then Settings.
- Click Header HTML.
- Paste the snippet into Head HTML and click Save.
- Republish the site. Saved header code shows in the editor and preview, but the live site is only updated on republish.
Head HTML accepts <script>, <link> and <meta> tags; anything else is stripped on save. The tracking snippet is a single <script> tag, so it is kept.
To limit tracking to one page instead, open that page's settings (gear icon), click SEO and paste the snippet into that page's Header HTML.
Verify installation
Open your live site in a new tab and click through a few pages. Within a few seconds the pageviews appear in the Rybbit dashboard.
If nothing shows up:
- View the page source and search for
script.js?siteId=to confirm the snippet is on the page. - Open the browser Network tab and check that
script.jsreturns200and thatPOSTrequests go to/api/track. - Disable ad blockers, or set up a proxy so the script loads from your own domain.
- See the script troubleshooting guide for other common causes.
Troubleshooting
- Snippet saved but not in the live page source: the site was not republished. Republish after every change to Header HTML.
- Code disappears after saving: Head HTML strips tags other than
<script>,<link>and<meta>. Paste only the script tag, without wrapping HTML or comments. - Consent management app in use: Duda loads Head HTML before consent banners can intercept it. If you need the tracker gated by consent, put the snippet in Body End HTML instead, where the consent app can control it.
Next steps
- Track custom events such as signups, purchases and button clicks.
- Identify users to connect sessions to accounts.
- Proxy the script through your own domain to bypass ad blockers.
- Script attributes let you skip or mask URLs and tag events.