Lead source tracking for WPForms.
WPForms stores every entry, right down to the geolocation. The one thing it does not store is which campaign sent them.
Works with all WPForms features
Two ways to run it on WPForms.
Install the free official plugin and keep every lead inside your own WordPress admin, or drop in one hosted script and send leads to your Lead Source dashboard. Same capture, the difference is where your data lives.
The official plugin
- Captures the source on every WPForms submission, stored in your WordPress admin
- Two-click install from the directory, no account needed
- Sits alongside your existing WPForms entries and notifications, nothing to reconfigure
The one-line script
- One JavaScript line in your <head>, no plugin and no PHP
- Leads land in your Lead Source dashboard, independent of WordPress
- Survives a rebuild, host change or full migration
WPForms is the friendly form builder. It was never the source of truth for where leads come from.
WPForms is the form plugin most people reach for first, and for good reason. Entries are stored, notifications are clean, and the Geolocation addon will even tell you roughly where the submitter was. None of that answers which ad, post, or campaign actually sent them.
The entry, neatly stored
- Every field value, saved as a Form Entry
- Approximate location via the Geolocation addon
- Notifications, confirmations, and entry exports
- Conditional logic, multi-page steps, payments
Where that lead came from
- The campaign behind the click
- UTM parameters captured at landing, not lost by submit time
- The pages they read before submitting
- A source record that survives a theme or plugin change
The Smart Tags route, and why it quietly loses the source.
WPForms can store a UTM if you add a hidden field and populate it with a Smart Tag or a query-string value. It reads the URL the moment the form loads, which is exactly when the source has often already gone.
The manual way
- 01Add hidden fields to every form for source, medium, campaign, term, and content.
- 02Populate each with a query-string Smart Tag, matching the parameter name exactly, on every form you build.
- 03Smart Tags read the URL at load. A visitor who lands with UTMs then clicks to your contact page submits a clean URL, so add a cookie-persistence script.
- 04Repeat for every new form, and keep it all working through WPForms and theme updates.
With Lead Source
- 01Add Lead Source once, the free plugin or one script tag, and every WPForms form on the site is covered.
- 02The source is captured at landing and held across the whole visit, so it is still attached when the form is submitted three pages later.
- 03The campaign name is written out in plain language rather than left as a raw UTM string for you to parse.
- 04New form next month? Already tracked. No hidden fields, no Smart Tags, no per-form setup.
WPForms is excellent at collecting the answer. Capturing where the person came from before they reach the form is a different job, done once at the site level.
One script tag. That’s the whole thing.
Prefer not to run a plugin? Sign up, copy the snippet from your dashboard, and paste it into your WordPress header. Every WPForms form on the site gets detected automatically, including AJAX submissions and popup embeds. The block below shows what the snippet looks like, with placeholder text where your unique site ID will be.
<!-- illustrative. Paste your real snippet from app.leadsource.co --> <script src="https://leadsource.co/s/[your-site-id].js" async></script>
The real snippet is generated for your account when you sign up. Copy it from the install page in your dashboard. Under 50ms execution. Async, so it doesn’t block your page. No dependencies.
Three steps. Most sites are done in five minutes.
Pick your path
Install the free Lead Source plugin from the WordPress.org directory, or grab your one-line snippet from the dashboard if you would rather not run a plugin. Either covers every WPForms form on the site.
Activate, or paste the snippet
With the plugin, click Activate and run the short setup wizard. With the script, paste it anywhere inside your <head> using WPCode, Insert Headers and Footers, or your theme.
Submit a test through any WPForms form
Open a page with a WPForms form on it. Fill it in. Submit. Within a minute or two, the lead appears with the source, the campaign, and every page visited before submitting.
?utm_source=test to the URL before you submit. That’ll be the source on the lead.Questions, answered.
Do I use the plugin or the script for WPForms?
Either works and both capture the same thing. Install the free Lead Source plugin from the WordPress.org directory if you want every lead stored inside your own WordPress admin with no account. Use the one-line hosted script if you would rather keep leads in your Lead Source dashboard, independent of WordPress. Pick based on where you want the data to live.
Is there an official WPForms plugin on WordPress.org?
Yes. The free Lead Source plugin is on the WordPress.org directory. Search Plugins, Add New for "Lead Source", install and activate, and it captures the source on every WPForms submission. There is nothing to configure on individual forms.
Do I need WPForms Pro, or does the Lite version work?
Both work. Lead Source detects the WPForms submission event in the browser, so it does not depend on entry storage, addons, or a paid tier. WPForms Lite, Pro, and Elite are all fine.
Will it interfere with WPForms entries or notifications?
No. Lead Source observes the submission and records the source alongside it. WPForms keeps storing entries, sending notifications, and running confirmations and addons exactly as before. Nothing is intercepted or rewritten.
Does it capture UTM parameters on AJAX-submitted WPForms?
Yes. AJAX submission is the common case and is handled natively. The UTM parameters are captured at landing and held across the visit, so they are still attached at the moment WPForms fires its submission event, even on a clean URL.
Track your WPForms leads. Free to start.
The free plugin or one script captures the source, UTM parameters, and page journey on every WPForms submission, with the first attributed lead in your inbox within minutes.
Start freeFree to start ยท no card