Embedded Forms: Seamless Integration for Landing Pages
Embed our JavaScript lead capture forms directly into your landing pages, contact pages, and service pages. Superior analytics tracking and user experience compared to iframe alternatives.

JavaScript Forms vs Traditional Iframe Forms
Our JavaScript embedded forms provide superior performance, analytics tracking, and user experience compared to traditional iframe solutions.
Perfect for These Landing Page Scenarios
PPC Landing Pages
Capture Google Ads and Facebook leads with full attribution tracking. Every click ID and UTM parameter is automatically captured and synced to your CRM.
- Google Ads gclid tracking
- Facebook fbclid capture
- Complete conversion funnel analytics
- Cost-per-lead optimization data
Service Pages
Embed forms directly on HVAC, plumbing, electrical, and landscaping service pages. Visitors can request quotes without leaving the page they're reading.
- Context-aware lead qualification
- Service-specific AI prompts
- Higher conversion rates
- Reduced bounce rates
Contact Pages
Replace traditional contact forms with SMS-powered lead qualification. Get more information from prospects while providing instant engagement.
- Immediate response via SMS
- Higher completion rates
- Mobile-first experience
- 24/7 lead qualification
Email Campaign Landing Pages
Create dedicated landing pages for email campaigns with embedded forms that track the complete customer journey from email click to qualified lead.
- Email-to-lead attribution
- Campaign performance tracking
- A/B testing capabilities
- Multi-touch attribution
Simple Implementation in 3 Steps
Copy the JavaScript Code
Get your unique JavaScript embed code from your LeadTruffle dashboard. Each form can be customized with different AI prompts and styling.
Paste Into Your Page
Add the JavaScript code to your landing page, contact page, or any webpage where you want to capture leads. Works with all major website builders.
Leads Start Converting
Visitors submit their information and immediately receive AI-powered SMS qualification. You get fully qualified leads with complete source attribution.
This is a real, working embedded form. Try submitting it to see how the AI qualification process works!
β Shows actual user experience
β Demonstrates mobile responsiveness
Advanced Analytics Integration
Our JavaScript forms integrate seamlessly with your existing analytics stack, providing complete visibility into your lead generation funnel.
Automatically Tracked Events:
leadtruffle__embed__form_displayed
Fired when the embedded form becomes visible to the user
leadtruffle__embed__form_submitted
Fired when a user successfully submits the embedded form
Complete Attribution Data:
UTM Parameters
Source, medium, campaign, term, and content automatically captured
Platform Click IDs
Google Ads, Facebook, TikTok, Snapchat, and Microsoft Ads click tracking
Google Analytics IDs
GA4 client ID and session ID for complete user journey tracking

Works With All Major Website Builders
Our JavaScript embed code works seamlessly with every major website platform and content management system.
WordPress
Add to any page using the HTML block or custom field. Works with all themes and page builders like Elementor and Divi.
Webflow
Embed using the HTML Embed component. Perfect for custom landing pages and lead generation campaigns.
Squarespace
Use the Code Block to add the form to any page. Ideal for service businesses using Squarespace templates.
Wix
Add using the HTML iFrame/Embed app. Great for small businesses using Wix ADI or Editor.
Shopify
Embed in pages using liquid templates or page content. Perfect for home service businesses selling products.
Custom HTML
Works with any custom website, React, Vue, Angular, or static site generator. Full API access available.
Customize Forms to Match Your Brand
Create forms that look and feel like a native part of your website with extensive customization options.
Ready to Embed High-Converting Lead Forms?
Get JavaScript forms that integrate seamlessly with your website and provide complete analytics tracking. Perfect for landing pages, service pages, and contact forms.
β 14-day free trial β’ β Works with all website builders β’ β Complete analytics included