# Install on Duda

Canonical: https://sourcetag.io/docs/install-duda

Add SourceTag's tracking script to your Duda site through the site-wide script settings. No third-party apps required.

## Step 1: Copy your script tag

In your SourceTag dashboard, go to your site's detail page and copy the script tag. It looks like:

```html
<script src="https://cdn.sourcetag.io/scripts/YOUR_SITE_ID/st.js"></script>
```

## Step 2: Add to Duda

1. In your Duda editor, go to **Site Settings**
2. Click **Head HTML** under the SEO & Settings section
3. Paste the script tag into the header scripts area
4. Click **Save**

## Step 3: Publish

Publish your Duda site. The tracking script is now active on every page.

## Step 4: Test

Visit your published site with UTM parameters:

```text
https://yoursite.com/?utm_source=test&utm_medium=cpc&utm_campaign=duda-test
```

Submit a form on your site and check wherever your form submissions are received. The submission should include hidden fields with attribution data.

## Notes

- The script works with Duda's built-in form widgets. You'll need to add hidden fields to your forms yourself - SourceTag only populates fields that already exist. See [Add Hidden Fields](https://sourcetag.io/docs/fields-html) for the field names.
- If you're embedding a third-party form tool, the script will detect those too via MutationObserver.
- Browser cookies are limited to 7 days on Duda (no server-side cookie option available for Duda sites currently).
