LeadSource

Description

Stop guessing which marketing channels are generating your leads.

LeadSource automatically captures UTM parameters and advertising platform click IDs from your visitors, persists them through the browsing session, and attaches the traffic source to every form submission — no configuration on your forms required.

Perfect for small businesses and agencies running ads across Google, Meta, LinkedIn, Microsoft, and TikTok who need simple, reliable lead attribution without complex analytics setups.

How It Works

  1. A visitor clicks your ad or link containing UTM parameters
  2. LeadSource captures and stores the traffic source data in a cookie
  3. When the visitor submits a form, the traffic source is automatically recorded
  4. View all your leads and their sources in a clean WordPress dashboard

Supported Form Plugins

Works automatically with the form plugin you already use — no shortcodes or form modifications needed:

  • Contact Form 7
  • WPForms
  • Gravity Forms
  • Ninja Forms
  • Formidable Forms
  • Fluent Forms
  • Elementor Pro Forms

What It Tracks

  • UTM Parameters — source, medium, campaign, term, and content
  • Ad Platform Click IDs — Google (gclid), Meta (fbclid), Microsoft (msclkid), LinkedIn (li_fat_id), TikTok (ttclid)
  • Auto-detected Traffic Source — labelled as Google Ads, Meta Ads, LinkedIn Ads, Microsoft Ads, TikTok Ads, Organic Search, Direct, or Referral
  • Landing Page URL — the first page the visitor arrived on
  • Referrer — where the visitor came from (with server-side fallback)

Dashboard & Reporting

  • Sortable, searchable entries table with a native WordPress look
  • Quick stats showing total submissions and top traffic sources
  • Colour-coded badges for each platform (Google, Meta, LinkedIn, etc.)
  • View full submission details in a modal popup
  • Export all entries to CSV with one click

Features

Everything is included — no paid plan required:

  • All UTM and click ID tracking
  • All 7 form plugin integrations
  • Admin dashboard with search, sort, and quick stats
  • CSV export
  • 5-step setup wizard with auto form detection
  • Unlimited stored entries
  • Per-submission email notifications
  • Daily, weekly, and monthly summary emails
  • IP address anonymisation

Privacy Friendly

  • IP addresses are automatically anonymised (last octet removed)
  • No data sent to external servers — everything stays in your WordPress database
  • Setup wizard includes recommended privacy policy language

Screenshots

  • Dashboard — View all form submissions with their traffic sources, sortable columns, and quick stats
  • Entry Detail — Click any entry to see full UTM parameters, click IDs, landing page, and referrer
  • Setup Wizard — 5-step guided setup with automatic form detection
  • Settings — Configure email notifications and tracked form plugins

Installation

  1. Upload the leadsource-pro folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Complete the 5-step setup wizard that appears automatically
  4. That’s it — traffic sources will be captured on your next form submission

The setup wizard will:

  • Auto-detect which form plugins you have installed
  • Let you choose your notification preferences
  • Configure your notification email address

FAQ

Do I need to modify my forms?

No. LeadSource hooks into your form plugin automatically. There are no shortcodes to add, no hidden fields to configure, and no form templates to edit.

Does it work if I don’t use UTM parameters?

Yes. The plugin also detects ad platform click IDs (gclid, fbclid, etc.) and automatically labels the traffic source. Even visitors arriving via organic search or direct traffic are categorised.

Will it slow down my site?

No. The frontend script is tiny vanilla JavaScript (no jQuery dependency) that runs once on page load to read URL parameters. There are no external API calls and no impact on page load speed.

Does it work with caching plugins?

Yes. The UTM capture runs in the visitor’s browser via JavaScript, so server-side caching does not interfere with tracking.

What is the conversion window?

The plugin uses «Same Session» attribution — the captured UTM data persists until the browser is closed. This is the most accurate setting and prevents cross-session over-counting.

Is my data sent anywhere?

No. All data is stored locally in your WordPress database. The plugin does not communicate with any external analytics or tracking service.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“LeadSource” is open source software. The following people have contributed to this plugin.

Contributors

Translate “LeadSource” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.3

  • All features now free — no licensing or paid plan required
  • Unlimited entry storage for all users
  • Email notifications and summary reports available on all installs
  • Rename text domain to leadsource

1.0.2

  • Fix additional fatal redeclaration errors when free and Pro versions are both active

1.0.1

  • Fix fatal error when free and Pro versions are active simultaneously

1.0.0

  • Initial release
  • UTM parameter and click ID tracking
  • Support for 7 form plugins
  • Admin dashboard with WP_List_Table
  • 5-step setup wizard
  • Email notifications
  • Summary emails — daily, weekly, monthly
  • IP anonymisation