Description
A new enquiry lands in your inbox. Did it come from your Google Ads, a Facebook post, Google search, ChatGPT or a newsletter? Without that information, it is hard to know which marketing works.
Tagend Lead Source answers that for every lead. It remembers how each visitor found your website, then adds the source to the form notification email and to a simple report in WordPress. There are no hidden fields to set up and nothing to configure: install it, and your next lead email shows where the lead came from.
What every lead email shows
- Channel: Paid search, Paid social, Organic search, AI search, Social, Email, Referral, Other campaign or Direct.
- Source and medium, for example google / cpc or facebook / paid_social.
- Campaign, keyword and ad from your UTM tags (utm_campaign, utm_term, utm_content).
- Ad click ID from Google Ads (gclid, gbraid, wbraid), Microsoft Ads (msclkid), Meta (fbclid), TikTok (ttclid) and LinkedIn (li_fat_id).
- Landing page, the first page the visitor saw.
- Referring page, the website that sent them.
- First visit, so you also see how they found you the very first time.
- Form page, the page the form was sent from.
AI search tracking
Visitors from ChatGPT, Perplexity, Gemini, Claude, Copilot and other AI assistants are labelled “AI search”, so you can see how many of your leads now come from AI answers instead of lumping them in with ordinary referrals.
Works with your form plugin
- Contact Form 7
- WPForms (Lite and Pro)
- Gravity Forms
- Elementor Pro forms
- Fluent Forms
The lead source is added to the bottom of the notification email you receive. Emails sent to the person who filled in the form are left out. You can also place it yourself with a tag: [_tagend_lead_source] in Contact Form 7, {tagend_lead_source} in WPForms and Gravity Forms.
Simple lead source report
Under Lead Source in your WordPress menu you see your leads by channel, your top sources and campaigns, and your latest leads, for the last 7, 30, 90 or 365 days. Switch between crediting the latest source or the first visit, and download everything as a CSV.
Built with privacy in mind
- No names, email addresses, phone numbers or messages are stored by this plugin, only where the lead came from.
- Two small first-party cookies, no external services and no calls home. Your data stays on your website.
- Optional consent mode: only remember the source after the visitor accepts statistics cookies, through the WP Consent API.
- Choose how long lead sources are kept. Old records are deleted automatically.
- Suggested text for your privacy policy is added to WordPress’s privacy policy guide.
Tagend Lead Source is made by Tagend, a performance marketing agency. Our free UTM builder helps you tag your links so this plugin can read them.
Installation
- Install and activate the plugin from Plugins → Add New.
- That’s it. The next form someone sends will include the lead source in your notification email.
- To see the report or change settings, click Lead Source in the WordPress admin menu.
To test it, open your website in a private browser window with ?utm_source=test&utm_medium=email added to the address, then send a form.
FAQ
Do I need to add hidden fields to my forms?
No. The plugin reads the source when the form is sent and adds it to the email and the report by itself.
Which source does it show: the first visit or the last one?
Both. The email leads with the latest source that sent the visitor (an ad, a search, a link), and also shows how they first found you. A visit where someone typed your address or used a bookmark doesn’t replace an earlier source, because it doesn’t tell you anything new. In the report you can credit leads to either one.
How does it know a visitor came from ChatGPT or another AI assistant?
From the referring website and from the utm_source tag some AI assistants add to links, such as utm_source=chatgpt.com. Some AI apps don’t pass any referrer, and those visits show up as Direct.
Why does a lead show “Not recorded”?
The visitor’s browser blocked cookies, consent mode is on and they didn’t accept statistics cookies, or the page was loaded in a way that didn’t run the plugin’s small script.
Does it work with page caching?
Yes. The source is saved by a small script in the visitor’s browser, so cached pages work normally.
Does it slow my site down?
No. The front-end script is about 1 KB when compressed, loads in the footer and has no dependencies. It doesn’t load anything from other websites.
Is it GDPR compliant?
The plugin stores no personal contact details, and you can turn on consent mode so nothing is remembered until the visitor accepts statistics cookies. Whether you need consent depends on your country and how you use the data, so check with your own adviser.
Can I send the lead source to my CRM or ad platforms?
Not in this version. Developers can use the tgls_lead_recorded action, which fires with the saved lead source after every form submission, and the tgls_attribution filter.
Screenshots
Changelog
1.0.0
- First release.



