Add Lead Source to your website
Adding Lead Source is a one-time job. Once it’s in place, every form submission on your site is captured automatically — you never touch it again.
The line you add
Section titled “The line you add”In your Lead Source account, open Settings → Sites and copy your snippet. It looks like this:
<script async src="https://track.yourdomain.com/ft.js" data-site="YOUR_SITE_KEY"></script>Paste it just before the closing </body> tag on your website, on every
page that has a form. That’s it.
Platform-by-platform
Section titled “Platform-by-platform”Paste the snippet before </body> in your page template. If your
site is several separate HTML files, add it to each one that has a
form (or to a shared footer include).
Two easy options:
- Theme footer: Appearance → Theme File Editor →
footer.php, paste before</body>. - A header/footer plugin: any “insert headers and footers” plugin — paste the snippet into the footer box.
Works with Contact Form 7, Gravity Forms, and other common form plugins with no extra steps.
Project Settings → Custom Code → Footer Code, paste the snippet, save, and publish. Webflow’s native forms are captured automatically.
Settings → Advanced → Code Injection → Footer, paste the snippet, save. Native Squarespace forms are captured.
Most site builders have a “custom code” or “footer scripts” box — that’s where the snippet goes. If yours embeds forms from another service (for example a form shown inside a frame), see Troubleshooting for the extra step some of those need.
How to know it worked
Section titled “How to know it worked”-
Add the snippet and publish your site.
-
Open your Lead Source account. On your setup checklist you’ll see a “We can see your site” confirmation appear within a minute or two of someone (including you) loading a page.
-
Submit a test through one of your forms and watch it appear in your leads. Full walk-through: See your first lead.
Nothing showing up? Head to Troubleshooting →.