# Install on Weebly

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

Add SourceTag's tracking script to your Weebly site through the header code 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 Weebly

1. In the Weebly editor, go to **Settings**
2. Click the **SEO** tab
3. Paste the script tag into the **Header Code** field
4. Click **Save**

## Step 3: Publish

Publish your Weebly 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=weebly-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 Weebly's built-in form elements. 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 using embedded third-party forms (Typeform, HubSpot, etc.), the script will detect those too via MutationObserver.
- Weebly is now part of Square. If you're managing your site through Square Online, the setup steps may differ slightly - look for the custom code or script injection option in the site settings.
- Browser cookies are limited to 7 days on Weebly (no server-side cookie option available for Weebly sites currently).
