Installing the Tracking Snippet
Add the Lead to Sheet snippet to your website to start capturing form submissions automatically.
Find your snippet
Your tracking snippet is shown during onboarding right after you enter your business details. You can also find it anytime on your Forms & Leads page or your Account page.
- 1
Go to your Forms & Leads page
Log in to Lead to Sheet and navigate to "Forms & Leads" in the sidebar.
- 2
Find the SDK Integration card
At the top of the page, you'll see a card labeled "SDK Integration" with your snippet code.
- 3
Copy the snippet
Click the "Copy" button to copy the snippet to your clipboard.
Add the snippet to your website
Paste the snippet into the <head> section of your website’s HTML. It needs to be on every page where you have forms you want to track.
WordPress
Go to Appearance → Theme Editor → header.php, and paste the snippet just before the closing </head> tag. Alternatively, use a plugin like "Insert Headers and Footers" to add the snippet without editing theme files.
Shopify
Go to Online Store → Themes → Edit Code → theme.liquid, and paste the snippet inside the <head> section.
Webflow
Go to Project Settings → Custom Code → Head Code, and paste the snippet there. Click Save Changes and publish your site.
Squarespace
Go to Settings → Advanced → Code Injection → Header, and paste the snippet there.
Wix
Go to Settings → Custom Code → Add Code. Paste the snippet, choose "Head" as the placement, and apply it to "All pages".
Any other website
If you have direct access to your HTML files, paste the snippet into the <head> section of your pages. If your site uses a template or layout file, add it there so it appears on all pages automatically.
Tip
If you’re not sure how to add the snippet, send it to your web developer or site administrator. They’ll know exactly where to put it.
Verify the installation
After adding the snippet, you can verify it’s working correctly.
- 1
Use the built-in checker
During onboarding, click the "Check Installation" button. Lead to Sheet will visit your website and look for the snippet in your page’s code.
- 2
Submit a test form
Go to your website and fill out one of your forms with test data. Within a few seconds, you should see the submission appear on your Forms & Leads page and in your Google Sheet.
Important
If your website uses caching (like Cloudflare, WP Super Cache, or a CDN), you may need to clear the cache before the snippet becomes active. Try clearing your cache and checking again.
