Add Lead Source to your website
This page gets Lead Source capturing leads from the forms on your website. It’s one snippet, pasted once. It works on every page automatically. Most owners do this in under five minutes.
Time required: about 5 minutes. Who can do this: anyone who can edit your website (or your web person).
Get your snippet
Section titled “Get your snippet”- In Lead Source, open Sites.
- On Your websites, find your site and select Copy code. (If you haven’t added the site yet, use Add a site and the setup guide will show the snippet at the Install step.)
Your snippet is unique to each website: if you have more than one site, each has its own code.
Paste it into your site
Section titled “Paste it into your site”Paste the snippet into your site’s head section. Most platforms have a “Header code” or “Custom HTML” field. On the Install step, pick your platform (WordPress, Squarespace, Wix, Webflow, Shopify, Ghost, HubSpot, or Other) and Lead Source shows the exact steps for it.

The snippet is deliberately left in readable, unminified form: some caching plugins re-wrap compressed code and break it, so don’t minify it or let an optimizer rewrite it.
Then clear your page cache. Cached pages won’t pick up the new code until the cache is refreshed. This is the single most common reason a fresh install “doesn’t work.”
Check it worked
Section titled “Check it worked”- Back in Lead Source, on your site’s row, select Test installation.
- You’re looking for either “Lead Source is live on {your site}” (we found the snippet on your homepage) or “Verified, receiving data from {your site}” (we’re already getting visits: tracking is live no matter how you installed it, including via a tag manager).
- Visit your own website, then refresh your Lead Source dashboard. Within a minute or two you’ll see “We’re listening on {your site}.” with a green Connected status.
Expected result: the dashboard shows We’re listening, and from now on every form submission on your site is captured automatically. You never touch the snippet again. Submit a test form and your first lead appears within about 30 seconds (walkthrough).
Common problems
Section titled “Common problems”- “We didn’t find the snippet on your homepage.” Usually the page hasn’t been republished, a cache is serving the old version, or the snippet went onto a different page than the homepage. Republish, clear the cache, re-test.
- “Lead Source is loaded on the page, but with a different site key.” You’ve pasted the snippet from one of your other websites. Each site has its own code. Copy the one shown for this site.
- “We couldn’t reach your site.” Check the domain is spelled correctly and the site is online. If it’s behind a login or a coming-soon page, the test can’t see it, but tracking can still work. Use the “receiving data” check by visiting the site yourself.
- The test passes but no leads arrive. That’s a different problem with its own fixes: Fix a form that is not being captured.
Worth doing: capture Safari visitors too
Section titled “Worth doing: capture Safari visitors too”Safari on iPhone and Mac limits standard tracking, so some visits, and leads, can be lost. Connecting your own tracking address fixes it (and gets past ad blockers) in about five minutes: Use your own tracking address.
What this changes, and what we collect
Section titled “What this changes, and what we collect”The snippet loads a small script in the background. It doesn’t change how your site looks or behaves, or slow it down. Lead Source then records page visits and form submissions (password fields are never captured). Remove it any time by deleting the snippet; capture stops and your existing leads stay. Details: privacy notice.