Two leads sign up for a demo on the same day. One came from a LinkedIn ad, the other from a ChatGPT answer that mentioned your product. If your CRM lists both as “Direct”, you can’t tell which channel deserves next month’s budget.
Lead source tracking fixes that. It records where every lead came from, keeps that answer attached as the lead moves to a deal, and, paired with marketing attribution software, shows which sources turn into pipeline and revenue rather than just form fills.

This guide covers what a lead source is, the types worth tracking, eight tracking methods, a seven-step setup, how lead source tracking works in HubSpot, Google Analytics 4 and Salesforce, the metrics to report and the tools that help.
Key takeaways
- What it is: Lead source tracking records the channel, source and campaign that brought each lead in, and stores it in your CRM so sales and marketing report from the same data.
- Two sources per lead: Keep an original (first-touch) source that never changes and a latest source that updates, so you see both discovery and conversion.
- Methods: UTM parameters, hidden form fields, referrer and click IDs, first-party tracking, self-reported attribution, call tracking and offline codes work best together.
- Platforms: HubSpot sets Original and Latest Traffic Source on its own, GA4 needs lead events to fill its lead acquisition report, and Salesforce relies on a Lead Source picklist your admin controls.
- Metrics: Judge each source on pipeline, win rate and revenue, not lead volume alone.
- Hygiene: One naming convention, a locked picklist and a monthly audit keep source data trustworthy.
What is lead source tracking?
Lead source tracking is the process of capturing the origin of every lead, such as organic search, a paid ad, an email or an event, and storing it on the lead record. That stored value lets you count, compare and attribute leads and revenue by source.
A lead source answers one question: where did this lead come from? Tracking makes sure the answer is captured automatically, saved consistently and still attached when the lead becomes a customer.
Lead source vs medium vs campaign
These three values often get mixed up in reports. Keeping them in separate fields is the single most useful habit in lead source tracking.
| Field | What it describes | Example |
|---|---|---|
| Channel | The broad group used in reports | Paid social |
| Source | The specific site, platform or partner | |
| Medium | The type of traffic or placement | cpc |
| Campaign | The specific initiative | q1-webinar-promo |
In UTM parameters, source and medium map to utm_source and utm_medium. Your CRM’s lead source field usually holds the channel, with the source and campaign stored in their own fields.
Original source vs latest source
Leads rarely convert on their first visit. Someone may find you through a blog post in March, return from a newsletter in May and book a demo after a retargeting ad in June.
- Original source: The first source on record. It tells you which channels create demand, and it should never be overwritten.
- Latest source: The source of the most recent visit or conversion. It tells you which channels capture demand and close the loop.
Storing both lets you run first click attribution and last-click views from the same records, and gives multi-touch models a clean starting point.
Types of lead sources to track
Lead sources fall into a handful of groups. Track at the group level for reporting and keep the detail, such as the platform or partner name, in a second field.

| Lead source | Typical examples | How it’s usually captured |
|---|---|---|
| Organic search | Google, Bing | Referrer, search console data |
| Paid search | Google Ads, Microsoft Ads | UTMs, click IDs |
| Paid social | LinkedIn Ads, Meta Ads | UTMs, click IDs |
| Organic social | LinkedIn posts, X, communities | Referrer, UTMs on shared links |
| Newsletters, nurture, outbound | UTMs on every link | |
| Referral | Review sites, guest posts, directories | Referrer, partner UTMs |
| AI assistants | ChatGPT, Claude, Perplexity, Gemini | Referrer domain |
| Events | Webinars, trade shows, meetups | Attendee lists, event codes |
| Partners and affiliates | Resellers, co-marketing, affiliates | Partner links, referral codes |
| Outbound | Cold email, calls, sourcing leads from lists | Rep entry, sequence UTMs |
| Direct | Typed URL, bookmarks, untagged links | No referrer or tracking data |
Inbound, outbound and offline sources
Inbound sources are channels where the lead comes to you, such as search, content or ads. Outbound covers leads your team sources, for example prospect lists, cold email or LinkedIn outreach. Offline sources include events, phone calls, print and word of mouth.
Outbound and offline leads are the ones most often recorded as “Other” or left blank, because nothing in the browser captures them. Give each one its own picklist value and a clear owner for data entry.
Why “Direct” is usually a tracking gap
Direct traffic should be people typing your URL. In practice it also collects untagged email links, links opened in apps, some AI assistant answers and visits where the referrer was stripped. A large or growing Direct share usually signals missing tags rather than strong brand recall.
Why lead source tracking matters
Without source data, every budget conversation turns into opinion. With it, marketing and sales can see which channels bring leads that buy.
- Smarter budget allocation: Move spend toward sources with the best cost per opportunity, not the cheapest cost per lead.
- Lower acquisition cost: Cut channels that fill the top of the funnel with leads sales never accepts.
- Better attribution: Clean source fields are the input every attribution model depends on.
- Sales context: A rep who knows a lead came from a pricing comparison page can open the call differently from one who knows the lead attended a webinar.
- Shared reporting: Marketing and sales stop arguing about numbers when both pull source from the same CRM field.
Lead source tracking methods
No single method captures every lead. Browser-based methods handle most online traffic, while manual and offline methods fill the gaps that tracking scripts can’t see.

| Method | What it captures | Main limitation |
|---|---|---|
| UTM parameters | Source, medium, campaign of tagged links | Only works on links you tag |
| Hidden form fields | UTMs, referrer and landing page at conversion | Values lost if not stored between pages |
| Referrer data | The site that sent the visit | Stripped by some apps and browsers |
| Click IDs | Ad click identifiers such as gclid | Platform-specific, needs CRM mapping |
| First-party tracking | Every session tied to one visitor | Needs a script or server-side setup |
| Self-reported attribution | What the lead says influenced them | Recall bias, open-text cleanup |
| Call tracking | Source of phone leads | Extra numbers and cost |
| Offline codes | Event, print and partner leads | Relies on people using the code |
UTM parameters
UTM parameters are tags added to a URL, such as utm_source=linkedin and utm_medium=paid-social. Analytics tools read them when someone clicks, so every ad, email and partner link should carry them. Use lowercase and a shared builder so “LinkedIn” and “linkedin” don’t become two sources.
Hidden form fields
Hidden fields carry UTM values, the referrer and the landing page into your CRM when a lead submits a form. A small script reads the values on the landing page and stores them in a first-party cookie.
The form then fills the hidden fields, even if the lead browsed five pages first.
Referrer data and click IDs
When no UTMs are present, the referring domain still tells you a lot, for example google.com, chatgpt.com or a partner’s blog. Ad platforms also append click identifiers, such as the gclid from Google Ads.
You can store these IDs to match leads back to campaigns and send conversions back to the platform.
First-party tracking and identity
First-party tracking ties every visit from the same person into one journey, so the original source survives when the lead returns days later from another channel. Server side tracking helps here, because it keeps capturing visits that browser blockers would otherwise hide.
Self-reported attribution
A “How did you hear about us?” field captures what tracking can’t, such as podcasts, word of mouth or a friend’s recommendation. Self-reported attribution works best alongside software attribution. Compare the two rather than forcing them to match, since each sees a different part of the journey.
Call tracking
If leads phone you, give each channel its own tracking number. Call tracking tools log the number dialed and, for website visitors, the session behind the call. That turns phone leads from “Other” into a real source.
Offline codes, QR codes and vanity URLs
Events, print and direct mail need their own handles. Use a short vanity URL or QR code with UTMs for each placement, a promo code per event or partner, and an imported attendee list tagged with the event name.
Manual entry by sales
Some leads only exist because a rep found them, such as a referral from a customer or a contact met at a conference. Let reps pick a value from the same locked picklist, and require it before a lead can be saved.
How to set up lead source tracking in 7 steps
A working setup takes a few days, not months. The steps below follow the order most teams find easiest.
1. Define your lead source taxonomy
List your channels and the allowed values for each field: channel, source, medium and campaign. Write down a naming convention, such as all lowercase with hyphens, and share it with everyone who builds links.
2. Create the CRM fields
Add or confirm fields for original source, latest source, source detail, campaign, landing page and click ID. Make the source fields picklists, not free text, and lock the original source once it is set.
3. Tag every campaign link
Add UTMs to ads, emails, social posts, partner links and QR codes. Use one shared builder or template so values match the taxonomy. Auditing for critical UTM mistakes, such as tagging internal links, saves hours of cleanup later.
4. Capture source data on every form
Add hidden fields for UTMs, referrer, landing page and click ID to every form, including demo, trial, contact and content download forms. Store the values in a first-party cookie so they survive page changes and subdomains.
5. Add a self-reported field
Place one optional “How did you hear about us?” question on demo and contact forms. Offer a dropdown with an “Other” text box, and store the raw answer next to a cleaned category.
6. Connect analytics, CRM and revenue
Sync source data from your analytics or attribution tool into the CRM, and carry it onto opportunities when leads convert. A solid marketing attribution CRM integration is what lets you report revenue, not just leads, by source.
7. Report and audit every month
Build a monthly report of leads, opportunities and revenue by source. Check for blanks, “Other”, unexpected Direct spikes and new values that break the naming convention, then fix the cause.
Lead source tracking in HubSpot
HubSpot lead source tracking is automatic for contacts who visit a site running the HubSpot tracking code. Two property groups hold the data.
- Original Traffic Source: How the contact first found you, with two drill-down properties for detail such as the search engine or the utm_campaign.
- Latest Traffic Source: The source of the most recent session, with its own drill-downs and a Latest Traffic Source Date.
HubSpot’s source values are Organic search, Paid search, Email marketing, Organic social, Paid social, Referrals, AI referrals, Other campaigns, Direct traffic and Offline sources. AI referrals covers visits from assistants such as ChatGPT, Claude and Perplexity, according to HubSpot’s knowledge base (checked November 2026).
Tips for HubSpot users
A few settings make HubSpot’s source data far more reliable. Most problems come from imports, form setup and ad blockers rather than the properties themselves.
- Use hidden fields for UTMs: HubSpot forms can pass utm_campaign and similar values into custom properties for reporting beyond the drill-downs.
- Use Record Source for imports: HubSpot recommends the Record Source property to see how a record was created, such as by import, API or manual entry.
- Watch Offline sources: Imported or manually created contacts land here. Add a campaign or event property so they aren’t a black box.
- Expect blocker gaps: Ad blockers can stop HubSpot’s tracking cookie, which leaves some contacts without session-based sources.
If you report on revenue in HubSpot, our guide to HubSpot revenue attribution explains how to tie these sources to closed deals.
Google Analytics lead source tracking
Google Analytics 4 tracks traffic sources for every session, but it only reports leads if you send lead events. Two report types answer different questions.
- User acquisition: Uses First user source, medium and campaign to show how new users first found you. These values stay with the user on later visits.
- Traffic acquisition: Uses Session source, medium and campaign to show what brought each visit, including returning ones.
GA4’s default channel group now includes an AI Assistant channel for visits from tools such as ChatGPT, Gemini and Copilot, while Google’s own AI Overviews stay in Organic Search.
Set up lead events in GA4
To see leads by source, send the generate_lead event when a form is submitted and mark it as a key event. GA4 also recommends qualify_lead and close_convert_lead events, which fill the Lead acquisition report under Business objectives.
GA4 can’t see what happens in your CRM unless you send it, and it doesn’t store names or emails. For GA4 marketing attribution beyond the first conversion, most teams pair it with a CRM or an attribution tool.
CRM lead source fields and Salesforce
Every CRM has a lead source field, and most teams fill it inconsistently. The fix is the same in any CRM: a short, locked picklist and clear rules on who sets it and when.
In Salesforce, Lead Source is a standard picklist on leads, contacts and opportunities. Administrators set the values. Default lists vary by org, and many teams replace them with values that match their channel taxonomy.
When a lead converts, Salesforce carries the Lead Source to the contact and to an opportunity created during conversion.
CRM lead source best practices
These rules apply whether you use Salesforce, HubSpot, Pipedrive or another CRM. They keep reports stable as your team and channels grow.
- Keep the picklist short: Ten to twelve channel values are enough. Put platform and campaign detail in separate fields.
- Separate original and latest: Write original source once and lock it. Let latest source update.
- Fill it automatically where you can: Map hidden-field values into the CRM rather than asking reps to guess.
- Make it required for manual records: Leads created by sales or imports must pick a value before saving.
- Map it onto opportunities: Revenue reports need the source on the deal, not only on the lead.
Gain deeper insights with
360° view of your customers
Lead source tracking metrics and formulas
Lead counts alone reward cheap, low-quality sources. These metrics show which sources produce customers.
| Metric | Formula | What it tells you |
|---|---|---|
| Leads by source | Count of new leads per source | Where volume comes from |
| Lead-to-opportunity rate | Opportunities ÷ leads × 100 | Which sources sales accepts |
| Win rate by source | Won deals ÷ opportunities × 100 | Which sources close |
| Cost per lead | Channel spend ÷ leads | Top-of-funnel efficiency |
| Cost per opportunity | Channel spend ÷ opportunities | Real acquisition efficiency |
| Pipeline by source | Sum of open opportunity value per source | Future revenue by channel |
| Revenue by source | Sum of closed-won value per source | Which channels pay off |
| Sales cycle by source | Average days from lead to close | How long each source takes |
Review these monthly for each source, and quarterly for trends. Long sales cycles need a tracking window to match, otherwise early touches drop out before deals close.
A worked example of lead source tracking
The example below is hypothetical and simplified. It shows why cost per lead and revenue by source can point in opposite directions.
A B2B software company spends $6,000 a month on paid social and $3,000 on paid search. Paid social brings 200 leads at $30 each, and paid search brings 60 leads at $50 each.
Paid social turns 10 leads into opportunities and closes 2 deals worth $8,000. Paid search turns 15 leads into opportunities and closes 5 deals worth $22,500. Paid search costs more per lead but $200 per opportunity against $600, and returns far more revenue per dollar.
Best lead source tracking software
The right tool depends on where your leads come from and where your team works. Most companies combine a CRM with an analytics or lead attribution software layer.
| Tool | Best for | How it tracks lead source |
|---|---|---|
| Usermaven | Teams that want source, journey and revenue attribution in one place | Captures UTMs, referrers and sessions, ties them to contacts and revenue |
| HubSpot | Teams already using HubSpot CRM | Sets Original and Latest Traffic Source automatically |
| Salesforce | Sales-led teams on Salesforce | Lead Source picklist on leads, contacts and opportunities |
| Google Analytics 4 | Free website-level source reporting | First user and session source, lead events |
| Ruler Analytics | Teams with calls and forms tied to CRM revenue | Matches web sessions to calls, forms and closed deals |
| CallRail | Businesses that get leads by phone | Tracking numbers per source and per visitor |
| Dreamdata | B2B teams focused on account-level journeys | Account-based multi-touch attribution |
How to choose a lead source tracking tool
Start with where your lead source data breaks today. If UTMs vanish before forms, you need first-party capture. If sources are clean but nobody knows which ones close, you need revenue attribution.
- Capture: Does it record UTMs, referrers and click IDs automatically, including when UTMs are missing?
- Persistence: Does it keep the original source across sessions, devices and subdomains?
- CRM sync: Can it write source data into your CRM and read deals back?
- Attribution: Does it support first-touch, last-touch and multi touch attribution models?
- Privacy: Does it support cookieless or server-side tracking and consent rules?
Common lead source tracking mistakes
Most lead source problems come from a few repeat mistakes. Each one is easy to fix once you know where to look.
- Overwriting the original source: A form or integration that updates the first-touch field erases the channel that created demand.
- Free-text source fields: “Linkedin”, “LinkedIn Ads” and “li” become three sources in your reports.
- Untagged links: Manual tracking links with typos or missing parameters push traffic into Direct or Referral.
- Tagging internal links: UTMs on your own site reset the session source and hide the real one.
- Ignoring offline and outbound leads: Events, calls and rep-sourced leads end up as “Other”.
- Judging sources on volume: Cheap leads that never become opportunities look good only in lead counts.
How Usermaven helps with lead source tracking
Usermaven is marketing attribution software that tracks behavior across your website and product, then connects it to the channels, campaigns and revenue behind each lead. It works alongside your CRM rather than replacing it.

Connect every lead to the channels and campaigns behind it
Usermaven captures UTM parameters, referrers and every session automatically, then credits conversions and revenue to channels, campaigns and ads. Its attribution window of up to 365 days suits long B2B sales cycles, where a lead may first visit months before a deal closes.
It connects with ad platforms such as Google Ads, Meta Ads and LinkedIn Ads, and with HubSpot, Salesforce and Stripe for CRM and revenue data. That lets you report leads, pipeline and revenue by source in one place.
Server-side tracking recovers visits that browser blockers would otherwise hide, and identity resolution joins anonymous visits to known leads across devices, so the original source stays attached.
See the source and journey behind each lead
Contact profiles bring visitor, user and company activity into one view. Each profile shows the lead’s first touchpoint and channel, UTM values, sessions, pages viewed and an activity timeline, and anonymous visits merge into the profile once the lead signs up.

That gives sales the context behind every lead and makes sales lead tracking easier, because reps can see the source and the pages a lead read before they talk.
Segments group leads by acquisition source, behavior, company or custom attributes. For example, you can compare paid social leads who viewed pricing with organic search leads who did the same, and see which group converts.
Maven AI and Maven AI Agents
Maven AI is Usermaven’s built-in analytics assistant. Ask questions in plain language, such as which lead sources produced the most demo requests last month, and it builds the report or dashboard for you.
Maven AI Agents analyze your data automatically on a schedule you choose and share findings in Usermaven, by email or in Slack.
Usermaven MCP
Usermaven MCP connects your Usermaven data to AI tools such as ChatGPT, Claude and Cursor. You can ask them about lead sources, attribution, funnels and journeys, and have them create funnels, segments, dashboards and reports with your approval. It is included in all plans.
Final thoughts
Lead source tracking works when every lead gets a source automatically, keeps its original source for life and carries it through to the deal. Tag every link, capture source data on every form, lock your picklist and judge sources on revenue, not volume.
To see which channels and campaigns turn your leads into revenue, book a demo and explore Usermaven’s contact profiles, journeys and attribution reports.
Website analytics tool for modern marketers & agencies
FAQs about lead source tracking
What is lead source tracking?
Lead source tracking is the process of capturing where each lead came from, such as organic search, a paid ad, an email or an event, and storing it on the lead record in your CRM. It lets you compare leads, pipeline and revenue by channel.
What are the best lead source tracking methods?
The most reliable setup combines UTM parameters on every link, hidden form fields that pass UTMs and referrers into the CRM, first-party tracking that keeps the original source, and a self-reported “How did you hear about us?” field for word of mouth and offline channels.
Can you track lead source without UTM parameters?
Yes. Referrer data, click IDs such as gclid, first-party session tracking and self-reported answers all identify sources without UTMs. UTMs still give the most precise campaign detail, so use them on every link you control.
What is the difference between original source and latest source?
Original source is the first channel that brought a lead to you, and it should never change. Latest source is the channel behind the most recent visit or conversion. Original source shows what creates demand, while latest source shows what converts it.
Why doesn’t Google Analytics show accurate lead sources?
GA4 loses visits blocked by ad blockers or consent choices, groups untagged links into Direct, and doesn’t see what happens in your CRM. It also only reports leads if you send lead events such as generate_lead. Pairing it with a CRM or attribution tool fills those gaps.
What is the difference between lead sourcing and lead generation?
Lead sourcing usually means finding prospects yourself, for example from lists, databases or LinkedIn research, for outbound outreach. Lead generation is the broader work of attracting and capturing interested people through marketing. Both need a lead source value so you can compare their results.
Updated

Written by
Adeel Khan
Growth Marketing Expert
Adeel Khan is a full-stack SaaS marketer with 10+ years of experience in content marketing, paid advertising, analytics, and conversion rate optimization. He shares practical insights and strategies drawn from hands-on experience, helping B2B SaaS marketers improve performance and make better marketing decisions.
All articles by Adeel →

