Overview
Unbounce is a leading landing page builder trusted by performance marketers for its drag-and-drop editor, A/B testing, and Smart Traffic AI routing. While Unbounce tracks conversion rates internally, it does not natively export form submissions with UTM parameters to a spreadsheet. LeadToSheet captures every lead alongside its source, medium, and campaign data in Google Sheets, giving your team a unified view across all landing page variants and ad channels.
Implementation checklist
- 1
Add the LeadToSheet SDK via Unbounce JavaScripts
Open your Unbounce page in the builder, click JavaScripts in the bottom-left panel, then select Add New JavaScript. Set placement to Before Body End Tag, paste the snippet, and save. The script loads asynchronously and will not impact your page speed or Smart Traffic scoring.
Tip: To apply the SDK to all pages in a campaign, add it at the page group level rather than per-page so new variants inherit it automatically.
Unbounce custom script
<script>(function(w,d,s,u,k,e){if(w.__formsync){return}w.__formsync={q:[],k:k,endpoint:e};var js=d.createElement(s);js.src=u;js.async=1;js.onload=function(){w.__formsync.init&&w.__formsync.init({ clientKey:k })};d.head.appendChild(js);})(window,document,'script','https://www.leadtosheet.com/sdk.min.js','YOUR_CLIENT_KEY','https://www.leadtosheet.com/api/ingest');</script> - 2
Confirm form field IDs in the Unbounce builder
Click each form field in the Unbounce editor and check the Field Name in the right panel. LeadToSheet uses these names as Google Sheet column headers. Rename defaults like 'lp-pom-text-119' to descriptive labels like 'company_name' or 'phone_number' before publishing.
Tip: Consistent field names across variants ensure all A/B test submissions land in the same Sheet columns.
- 3
Publish and test across Smart Traffic variants
Publish your page and submit a test entry through each active variant. Verify that every variant's submissions appear in the same Google Sheet with a column indicating which variant was served, using a visible read-only field for the variant ID. Hidden fields (input[type='hidden']) are excluded from capture.
Customization ideas
Track A/B test winners in real time
Add a visible read-only form field in Unbounce populated with the variant ID, or use the data-formsync-name attribute to tag the form. Hidden fields (input[type='hidden']) are excluded from capture.
Build a UTM-to-Sheets attribution pipeline
Unbounce supports dynamic text replacement for UTM parameters. UTM parameters are captured automatically by the SDK from the page URL. There is no need to add hidden fields for UTM data. Note: hidden fields (input[type='hidden']) are excluded from capture.
Unify popup, sticky bar, and page form leads
Unbounce popups and sticky bars use separate form elements from the main page form. LeadToSheet captures all three form types automatically. To organize leads by form type, configure worksheet tab routing in the LeadToSheet dashboard so popup leads land in a 'Popups' tab and page form leads land in a 'Landing Page' tab.
Troubleshooting
Smart Traffic variant forms not syncing
Smart Traffic dynamically serves different page variants, but the JavaScript block applies to the page container, not individual variants. If you added the script to only one variant, Smart Traffic rotations to other variants will not include the SDK. Add the script at the page level so it persists across all variant rotations.
Sticky bar form submissions missing from Sheets
Unbounce sticky bars load as separate overlays that may render after the main page DOM. The LeadToSheet SDK monitors for dynamically inserted forms, but ensure the script placement is set to Before Body End Tag so it initializes before the sticky bar appears. If issues persist, set the script to Head with async loading.
Confirmation dialog redirect interrupts sync
If your Unbounce form is configured to redirect to an external thank-you page on submission, the browser may navigate away before LeadToSheet completes the sync. Switch to Unbounce's form confirmation dialog (overlay) instead of a URL redirect, or add a short delay to the redirect using Unbounce's custom JavaScript.
Frequently asked questions
- Does LeadToSheet capture submissions from Unbounce Smart Traffic variants?
- Yes. The SDK loads at the page level and captures submissions from whichever variant Smart Traffic serves. Since each variant has a unique URL, LeadToSheet automatically captures the page URL with each submission, letting you distinguish between variants in your Google Sheet.
- Can I use LeadToSheet alongside Unbounce's native integrations like Zapier or webhooks?
- Absolutely. LeadToSheet runs in the browser independently of Unbounce's server-side integrations. Your Zapier zaps, webhook endpoints, and email notifications continue to work without conflict.
- Does the LeadToSheet script affect Unbounce page speed or conversion optimization?
- No. The SDK loads asynchronously and is under 10 KB. It does not block page rendering, interact with Unbounce's Smart Traffic algorithm, or affect Core Web Vitals scores.
