Webflow Integration (Lead Tracking)
The SealMetrics Webflow integration tracks form submissions on your Webflow site, converting leads into measurable conversions. Perfect for landing pages, contact forms, and lead generation campaigns.
Download Webflow Script • Version 1.0.0
Requirements: Webflow paid plan (Custom Code access required)
Installation
- Log in to your Webflow Designer
- Open your project
- Click on Project Settings (gear icon in the left sidebar)
- Navigate to the Custom Code tab
- Scroll to the Head Code section
- Paste the SealMetrics tracking code
- Replace
YOUR_ACCOUNT_IDwith your SealMetrics Account ID - Click Save Changes
- Publish your site for changes to take effect
Events Tracked
Pageview
Automatically tracked on every page load across your site.
Data collected:
- Session tracking enabled
Lead Conversion
Fired when a visitor successfully submits a Webflow form.
Event type: Conversion
Data collected:
- Form name (from
data-nameattribute) - Page path (URL pathname)
- Page title (document title)
Information Stored
The Webflow module collects and sends the following information to SealMetrics:
Form Information
- Form Name: The name assigned to the form in Webflow (from
data-nameattribute) - Page Path: Current URL pathname where the form was submitted (optional)
- Page Title: Document title of the page (optional)
Privacy & Compliance
The module does NOT collect or store:
- Form field values
- User input or responses
- Email addresses or names
- Phone numbers
- Any personally identifiable information (PII)
Only the form name and page context are tracked. All form data remains private and is handled by Webflow.
Technical Features
Multiple Detection Methods
The module uses three layers of detection for maximum reliability:
- MutationObserver: Monitors DOM changes to detect when
.w-form-donesuccess message becomes visible - Submit Event Listener: Fallback for non-AJAX form submissions
- Fetch Interception: Monitors AJAX requests to Webflow's form endpoints
Form Support
- Native Webflow forms
- Both AJAX and standard form submissions
- Multi-step forms
- Custom-styled forms
Exclusions
- Commerce checkout forms (automatically excluded)
- Forms with
data-sealmetrics-excludeattribute
Customization
Configure the conversion label and tracking behavior:
- Default conversion label: "lead"
- Optional page path tracking
- Optional page title tracking
- Custom form selectors support
Configuration Options
The tracking script can be customized by editing the configuration object:
var CONFIG = {
accountId: 'YOUR_ACCOUNT_ID',
conversionLabel: 'lead', // Customize the conversion label
trackPagePath: true, // Include page URL path
trackPageTitle: true // Include page title
};
Use Cases
Lead Generation
Track form submissions on landing pages to measure campaign effectiveness:
- Contact forms
- Request a quote forms
- Newsletter signups
- Free trial registrations
Multi-Page Funnels
Track conversions across different pages:
- Landing page → Contact form
- Product page → Demo request
- Pricing page → Sign up form
Campaign Tracking
Measure the success of marketing campaigns:
- PPC landing pages
- Email campaign landing pages
- Social media campaign forms
Troubleshooting
Forms not tracking
- Check that the script is in the Head Code section (not Footer)
- Verify your Account ID is correctly entered
- Ensure the site is published after adding the code
- Open browser console (F12) and submit a test form
- Look for SealMetrics event messages
Some forms tracking, others not
- Check if the non-tracking form has
data-sealmetrics-excludeattribute - Verify the form has a
data-nameattribute in Webflow - Check for JavaScript errors in console
- Ensure the form shows the success message (
.w-form-done)
Duplicate conversions
- Check that tracking code is only added once (in Head Code, not in page-specific embeds)
- Verify no other SealMetrics scripts are present
- Test in incognito mode to rule out caching issues
Commerce forms triggering conversions
By default, commerce checkout forms are excluded. If they're still tracking:
- Add
data-sealmetrics-excludeto the form element - Or customize the exclusion rules in the configuration
Manual Tracking
You can manually trigger lead tracking from your custom JavaScript:
// Track a lead conversion manually
window.sealmetricsTrackLead('Custom Form Name');
This is useful for:
- Custom form implementations
- Third-party form widgets
- Multi-step form completions
- AJAX-based interactions
Best Practices
Form Naming
Give your forms descriptive names in Webflow:
- "Contact Form - Homepage"
- "Demo Request - Pricing Page"
- "Newsletter Signup - Footer"
This makes it easier to identify which forms are converting in your SealMetrics dashboard.
Testing
Before launching:
- Submit test forms on your published site
- Check that conversions appear in SealMetrics dashboard
- Test on multiple browsers and devices
- Verify mobile forms work correctly
Performance
The tracking script is:
- Asynchronous and non-blocking
- Minified for production use
- Lightweight with no dependencies
Compatibility
- All Webflow plans (Basic, CMS, Business, Enterprise)
- All Webflow templates and themes
- Webflow forms (not compatible with third-party form services)
- Modern browsers (Chrome, Firefox, Safari, Edge)
Support
For installation help or technical issues, contact support@sealmetrics.com