# Install on Webflow

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

Add SourceTag's tracking script to your Webflow site via the custom code settings. No Webflow apps or integrations 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 Webflow

1. In your Webflow project, go to **Project Settings**
2. Click the **Custom Code** tab
3. In the **Head Code** section, paste the script tag
4. Click **Save Changes**

## Step 3: Publish

Publish your Webflow 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=webflow-test
```

Submit a Webflow form. Check the form notification in Webflow. The submission should include hidden fields with attribution data.

## Notes

- The script works with Webflow's native forms. You'll need to add hidden fields to your Webflow forms manually. See the [Webflow form fields guide](https://sourcetag.io/docs/fields-webflow) for step-by-step instructions.
- If you're using a third-party form tool embedded in Webflow (Typeform, HubSpot, etc.), the script will detect those too via MutationObserver.
- Browser cookies are limited to 7 days on Webflow (no server-side cookie option available for Webflow sites currently).
