Documentation menuWebsite builders: Duda

Website builders

Add Loogika to Duda

You add Loogika to a Duda site by pasting the script tag into the Head HTML field of the site settings. Duda prints that field inside the head of every page. The live site gets the tag when you republish.

Last updated .

What do you need before you start?

Copy your script tag from the Tracking Script tab of Site Settings in the Loogika dashboard. Your own site ID, a 12-character string, replaces YOUR_SITE_ID in the tag you copy:

<script src="https://app.loogika.com/api/script.js?siteId=YOUR_SITE_ID" defer></script>

How do you add Loogika to a Duda site?

Duda has a Header HTML panel for the whole site. The panel holds two fields. Duda prints Head HTML in the head on all pages, and it prints Body End HTML just before the closing body tag.

  1. In the side panel of the editor, click More, then Settings.
  2. Click Header HTML.
  3. Put the tag in the Head HTML field, then click Save.
  4. Republish the site.

The Duda editor and the preview show header code as soon as you save it. The live site only changes on republish, so republish after every edit to Header HTML.

Which code does Head HTML accept?

Head HTML accepts <script>, <link> and <meta> tags. Duda removes anything else when you save. The Loogika tag is a single script tag, so Duda keeps it.

Paste only the script tag. Wrapping HTML or a comment around the tag gets stripped on save, and code can seem to disappear from the field for that reason.

Can you track one Duda page only?

Yes. Each page has its own Header HTML field, which limits tracking to that page. Open the settings of the page with the gear icon and click SEO. Paste the tag into the Header HTML field of that page.

How do you check that Loogika is installed?

Open the live Duda site in another tab and visit a few pages. The pageviews show up in the Loogika dashboard within a few seconds.

If the dashboard stays empty, open the page source and look for script.js?siteId=. A tag that was saved but is absent from the live source means the site was not republished. For other causes, see the script troubleshooting page.