Overview
Swipe Pages is an AMP-first landing page builder designed for blazing-fast mobile performance and high conversion rates. Its multi-step forms, dynamic text replacement, and countdown timers make it popular for paid ad campaigns. However, AMP's strict JavaScript restrictions create a unique challenge for client-side form capture. LeadToSheet works on Swipe Pages' non-AMP (standard) pages out of the box and provides webhook-based fallbacks for AMP pages, ensuring every lead reaches your Google Sheet regardless of page type.
Implementation checklist
- 1
Add the LeadToSheet SDK via Swipe Pages custom code
In the Swipe Pages editor, go to Page Settings > Custom Code > Body End. Paste the SDK snippet. This works for standard (non-AMP) page versions. For AMP pages, skip to the webhook fallback described in troubleshooting.
Tip: Swipe Pages serves different versions for desktop (standard HTML) and mobile (AMP). The SDK runs on the standard version. Set up a webhook for AMP coverage.
Swipe Pages custom code
<script src="https://cdn.leadtosheet.com/sdk.min.js" data-client="YOUR_CLIENT_KEY"></script> - 2
Configure multi-step form field names
Click each field across all steps of your multi-step form in the Swipe Pages editor. Check the field name in the properties panel and use consistent, descriptive names. LeadToSheet captures the final submission payload after all steps are completed, merging all fields into a single spreadsheet row.
- 3
Test both standard and AMP page versions
Swipe Pages auto-generates an AMP version for mobile visitors. Test form submissions on both the desktop (standard) and mobile (AMP) versions. Verify that standard page submissions appear in Google Sheets via the SDK, and set up the webhook fallback for AMP submissions.
Customization ideas
Capture dynamic text replacement values
Swipe Pages supports dynamic text replacement (DTR) that swaps headline and body text based on URL parameters. Add hidden fields populated with the same DTR tokens so your Google Sheet shows which ad copy variation each lead saw when they converted.
Track multi-step form drop-off in Sheets
Add a hidden field at each step of your multi-step form that records the step number. While LeadToSheet only captures the final submission, you can use the step count field to verify completion and cross-reference with Swipe Pages analytics for drop-off analysis.
Tag countdown-timer-driven conversions
If your page uses Swipe Pages' countdown timer for urgency, add a hidden field that records whether the timer was active at submission time. This lets you measure in Google Sheets whether the countdown actually drives more conversions from specific ad campaigns.
Troubleshooting
AMP pages block custom JavaScript entirely
AMP (Accelerated Mobile Pages) prohibits custom JavaScript. The LeadToSheet SDK will not execute on Swipe Pages' AMP versions. To capture AMP form submissions, use Swipe Pages' webhook integration to forward form data to LeadToSheet's server-side webhook endpoint. This ensures mobile (AMP) visitors' submissions reach your Google Sheet.
Multi-step form submitting partial data
Swipe Pages multi-step forms should send all accumulated field data on the final step submission. If only the last step's fields appear in Sheets, verify in the Swipe Pages builder that each step's fields are included in the form submission payload (not just the visible step). Some configurations require enabling 'Include all steps in submission' in the form settings.
Dynamic text replacement values not in Sheets
DTR modifies the visible page text but does not automatically populate form fields. You must add hidden fields with DTR tokens (e.g., {{keyword}}) in the Swipe Pages form builder for those values to be included in the form submission and captured by LeadToSheet.
Frequently asked questions
- Does LeadToSheet work on Swipe Pages AMP landing pages?
- Not via the JavaScript SDK, since AMP prohibits custom JS. Use Swipe Pages' webhook integration to forward AMP form submissions to LeadToSheet's server-side endpoint. Standard (non-AMP) pages support the SDK fully.
- How does LeadToSheet handle Swipe Pages multi-step forms?
- LeadToSheet captures the final submission event after all steps are completed. All fields from every step are included in a single spreadsheet row. Step-by-step progression is not tracked unless you add hidden fields to record step data.
- Can I distinguish AMP vs. standard page submissions in Google Sheets?
- Yes. SDK-captured submissions (standard pages) include a LeadToSheet source identifier, while webhook-forwarded submissions (AMP pages) include a different source marker. You can filter or color-code rows in Sheets based on this field.
