Add the SourceTrack tracker to your Webflow site with one script tag in the site’s custom code. It records which channel and campaign brought each visitor, and it recognises Webflow’s own form markup.
What SourceTrack records
- Pageviews: each page a visitor views, including CMS collection pages, with the referrer and landing page.
- Campaign data: UTM parameters and ad click ids in the landing URL, such as
gclidandfbclid. - Webflow form submits: a form carrying Webflow’s
data-wf-formorw-formmarkup is labelled with the providerwebflow. The event holds the form’s id, name and action path. It does not include what the visitor typed. - Time on page and scroll depth, outbound link clicks and
tel:link clicks.
What SourceTrack does not do
- It does not read form field values from this snippet alone.
- It does not set up Webflow Ecommerce tracking. The tracker has general store signals (product page views, cart page views, add to cart) that are not built for Webflow, and order revenue comes from a connected payment source, not from the tracker.
- It sends nothing for visitors who send Do Not Track or Global Privacy Control.
Step-by-step setup
Step 1: Open Site Settings
In your Webflow project, open Site settings and go to the Custom code tab.
Step 2: Paste the tracker snippet
In the Head code section, paste:
<script async src="https://api.srctk.com/tracker.min.js" data-site-key="YOUR_SITE_KEY"></script>
Replace YOUR_SITE_KEY with your site key from SourceTrack.
Step 3: Save and publish
Click Save changes, then Publish the site. Site-wide custom code applies to every page, including CMS template pages, once published.
Check that it works
- Open your published site, not the Designer preview.
- Open your browser’s developer tools, go to Network and filter by
track. - Reload and confirm a request to
/api/trackcompletes. - Look for the visit in the Event Debugger in your SourceTrack dashboard.
See also the full Webflow setup guide and Troubleshooting.
Common problems and fixes
- Nothing is recorded. Webflow only deploys custom code when you publish. Publish again and check the live page source for
tracker.min.js. - The snippet is in the footer code. Put it in the head code so campaign data is read as the page loads.
- The form submit is recorded but not counted as a lead. Only forms that look like lead forms are counted. See the FAQ.
- Visits from your own browser are missing. Do Not Track and Global Privacy Control suppress tracking. Test in a window without them.
Frequently Asked Questions
Does this work with CMS collection pages?
Yes. The snippet in site-wide head code is on every page Webflow publishes, including CMS template pages.
Do I need to change my Webflow forms?
No change is needed for the submit event to be sent. To be counted as a lead, the form or page should look like a lead form (a name or page path with words such as contact, demo or quote), or you can mark the form with data-sourcetrack-lead-form="true". Search, login, newsletter and cart forms are excluded.
Does it capture the email a visitor types into a form?
Not from this snippet alone. The submit event holds only the form’s id, name and action path.