Skip to content
Lead Source Help Help & Support

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).

  1. In Lead Source, open Sites.
  2. 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 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 Add a site wizard on the Install step. A platform picker shows WordPress, Squarespace, Wix, Webflow, Shopify, Ghost, HubSpot, and Other; WordPress is selected, with its install steps and a Copy code button for the tracking snippet below.

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.”

  1. Back in Lead Source, on your site’s row, select Test installation.
  2. 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).
  3. 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).

  • “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.

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.

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.