/BLOG

en

How to Track Lead Sources From First Click to Closed Revenue

Frank Aceves · · 14 min read

Here's a mistake I've watched smart business owners make with real money. They're sure Meta is what brings in their clients, so they keep feeding it. Then we connect the CRM, cross it with the actual conversations, and it turns out most of the people who signed found them on Google. Sometimes it's the other way around: Google gets all the credit for the last click, and Meta was the one that put them on the person's radar weeks earlier.

Either way, the decision was made blind. If you can't see where a lead came from and whether that lead became revenue, you don't know where your effort and your money are going. You're guessing with a budget.

This is the setup I use to stop guessing, in order, from the first click to the closed sale. If you're still choosing tools, start with my comparison of lead attribution tools by budget. This article is about wiring them together so the data holds up.

Key takeaways

  • Write your source definitions and UTM rules before you tag a single link.
  • Capture click IDs (gclid, fbclid) and UTMs in hidden fields, keep them in first-party storage, and lock the original source in a CRM field that can't be overwritten.
  • In GA4, fire generate_lead only on confirmed submissions. GA4 now offers two attribution models: data-driven and last click.
  • Send CRM stages back to Meta (Conversions API for CRM) and Google (enhanced conversions for leads), and give WhatsApp, DMs and calls their own identifiers.
  • Reconcile every platform against the CRM monthly. When they disagree, the CRM wins.

Step 1: Decide what a "source" is before you tag anything

Start with one page that sales and marketing both sign off on. It answers three questions.

What counts as a channel. Organic search, paid search, paid social, organic social, email, referral, direct, offline (events, calls, walk-ins, print). Keep the list short.

What doesn't count as a channel. Your website form, your WhatsApp button and your chatbot are not sources. They're doors. A person can arrive at your WhatsApp from a Meta ad, from your Google Business Profile or from a link a friend sent. If your CRM says "source: WhatsApp," you've recorded the door and lost the street.

What a qualified lead is. One sentence your sales team agrees with. Without it, you'll know which channel brought leads and not which one brought customers.

Then set a hierarchy (channel, platform, campaign, ad set, ad) and ban vague labels like "social media" or "event." Name the platform and the event.

Step 2: A UTM convention your team will actually follow

UTMs are the labels on the click. The rules that keep them clean are boring on purpose:

ParameterWhat it holdsExample
utm_sourceThe platform or senderfacebook, google, newsletter
utm_mediumThe type of channelpaid_social, cpc, email, organic_social
utm_campaignThe specific initiativesellers_valuation_nov
utm_contentThe ad or creativevideo_founder_v2
utm_termThe keyword (search)home valuation guadalajara

All lowercase. Underscores, no spaces. No free text: people pick from a shared list. And nobody builds a UTM by hand. Use a builder sheet with dropdowns so "Facebook," "facebook" and "fb" never become three different sources.

On Google Ads, turn on auto-tagging so every click carries a gclid. On Meta, use the URL parameters field with dynamic values, so campaign, ad set and ad names fill in automatically.

What keeps showing up in accounts: the paid links are tagged and nothing else is. Email is usually the worst offender, then organic social, SMS, QR codes and the PDF your sales team has been sending for three years. All of it lands in GA4 as "Direct," and when those people convert, Direct takes the credit. Direct isn't a channel. It's the bucket for traffic GA4 couldn't identify. You can't recover the untagged history, but you can tag the next email before it goes out.

Step 3: Catch the click ID and the UTMs, and keep them

The label only matters if it reaches your CRM attached to a name and a phone number. The chain has five links:

  1. The visitor lands with UTMs and a click ID in the URL (gclid from Google, fbclid from Meta).
  2. A script saves those values in first-party storage the moment they arrive. Session storage only survives the current visit; a first-party cookie or local storage survives the visitor coming back two days later.
  3. Your form has hidden fields: utm_source, utm_medium, utm_campaign, utm_content, utm_term, gclid, fbclid, landing_page, referrer.
  4. On submit, the stored values fill those fields.
  5. The form sends everything to the CRM together with name, email and phone.

Storage is where most setups break. Someone clicks the ad, reads two more pages, and the parameters are gone from the URL by the time they reach the form. Without storage, that lead shows up as Direct.

Capture first touch and latest touch separately. Original source is written once, the first time a visitor arrives with a recognizable source, and never changes. Latest source updates only when a new tagged visit arrives. A returning visitor with no UTMs keeps what's stored instead of resetting to Direct. Always save the referrer and landing page as a fallback: a lead with no UTMs can still be identified as organic or referral.

Accept the limits: blockers, cleared storage, switching devices and declined cookies will still leave gaps. Depending on where your audience lives, storing these values may require consent, so check that before you deploy.

Before launch, test it end to end:

  • Submit from a tagged link and confirm every hidden field arrives in the CRM.
  • Come back later with no UTMs and confirm original source didn't change.
  • Arrive through a second tagged link and confirm only latest source updated.
  • Submit from an untagged link and confirm referrer and landing page were captured.

Step 4: Build CRM fields that protect the source

GA4 shows you behavior by channel. The CRM holds the truth for each person. You need both, and the CRM needs fields built for this job:

  • Original source (read-only after creation) and latest source.
  • Raw values exactly as captured, plus a normalized channel your reports use.
  • Campaign, ad set and ad, landing page and referrer.
  • Click IDs: gclid and fbclid, and the Meta lead ID for instant form leads. You'll need these in Step 6.
  • Self-reported source (Step 8), in its own field.
  • Exception code, such as MISSING_UTM, so gaps are visible instead of silent.

Keep source separate from lifecycle stage. A lead moving from "new" to "closed" must never change how it was acquired. Map these fields from lead to contact to deal, so closed revenue still points to a channel. And watch duplicates: use phone as a second identifier next to email, fill empty fields, and never overwrite original source.

Step 5: Set up GA4 to count leads, not pageviews

In GA4, the lead event is generate_lead, one of Google's recommended events. Push it to the data layer only after a successful submission, fire it through Google Tag Manager, check it in GA4 DebugView, and mark it as a key event (what GA4 used to call a conversion). Never fire it on the button click or on a thank-you page people can reach without submitting. That's how accounts report leads that never existed.

If your CRM can send events back, Google also has recommended events for the rest of the funnel, such as qualify_lead and close_convert_lead. That turns GA4 from "who filled the form" into "who became a customer."

On attribution, a lot of guides are out of date. GA4 no longer offers first click, linear, time decay or position-based. Google retired them in 2023. Today you choose between data-driven and last click. To see the journey, use the conversion paths report. And store first touch and latest touch in your CRM, because that's where you'll compare them against revenue.

Two habits that save accounts. First, check the share of Direct in the Traffic acquisition report. If it's a big chunk and you run email, social and SMS, your tagging is broken somewhere. It's a thermometer: it tells you something's wrong, not what. Second, audit GA4 and GTM together, regularly. GA4 records the data; GTM fires the tags that feed it. Forgotten containers, duplicate tags and a conversion that quietly stopped firing after a site update are normal findings. More tags usually make the data worse.

I also put Microsoft Clarity on every landing page. It's free, and its recordings and heatmaps show what the numbers can't: people rage-clicking a button that doesn't work, or never scrolling to the form. GA4 tells you a page converts badly. Clarity often tells you why.

Step 6: Close the loop with the ad platforms

Most businesses skip this step, and it's the one that changes what the algorithms optimize for. If Meta and Google only hear "lead," they'll keep finding you the cheapest form fills. If they hear "this one qualified" and "this one closed," they look for more people like those.

Meta. Run the Pixel plus the Conversions API on your site, and send the fbclid (Meta stores it in the _fbc cookie) with your server events. For lead-form leads, use the Conversions API for CRM: your CRM sends each lead's stage back with the lead ID, and you can switch the performance goal to Conversion Leads. Meta's conditions: native instant forms, a target stage that converts between 1% and 40% of leads, uploads at least daily, and that stage happening within 28 days of the lead. Meta estimates three to four weeks to see the full effect.

Google. Keep the gclid on every lead and send qualified leads and sales back as offline conversions. Google positions enhanced conversions for leads as the upgrade to classic offline conversion import: it adds hashed email or phone, so more conversions match. Keep importing gclids anyway, and run the new action alongside the old one for a few weeks before switching the old one off. Google has moved these uploads to its Data Manager, so build on that path and check the current steps before you start.

Once the CRM feeds qualified leads back, make that your primary conversion and demote raw form fills to secondary. You'll see fewer "conversions" in the platform, and more of them will pay you. I wrote more about why the cheapest lead is often the most expensive one in this cost per lead playbook.

Step 7: Track the leads that never touch a form

For a lot of my clients, much of the business happens in WhatsApp, Instagram DMs and phone calls. If those aren't tagged, your reports describe a business that doesn't exist.

Click-to-WhatsApp ads. When someone messages you from a Meta ad, the WhatsApp Business Platform webhook can include a referral with a click ID (ctwa_clid) and the ad it came from. Store it on the contact. Later, when that chat becomes a qualified lead or a sale, you can send the event back through Meta's Conversions API for business messaging. If the referral is missing, treat the chat as organic.

WhatsApp links outside ads. Give each placement its own prefilled message or code: one for the website button, one for the Instagram bio, one for the Google Business Profile. The first message tells you the door and the street.

DMs. When we build an Instagram layer with ManyChat, every automation writes a row to a sheet or the CRM with the date, the channel, the keyword the person used and the automation that answered. A keyword like "GUIDE" on a specific reel tells you which piece of content started the conversation. More on bot setup in my WhatsApp chatbot guide.

Calls, referrals and print. Use a tracking number per channel, connected to the CRM, and count a call as a lead only above a minimum duration. If you record calls, follow the consent rules where your callers live. Make "Referred by" mandatory when the source is Referral, and put QR codes with UTMs or promo codes on anything printed.

Then do what I do every month: sit down with the actual conversations (WhatsApp threads, DMs, forms, call logs) and cross them against the CRM, Meta and the trackers. You'll find leads tagged to the wrong channel, chats that never reached the CRM, and the client who "came from Google" but says in the first message that they saw your video. No dashboard does this part for you.

Step 8: Ask "How did you hear about us?" and treat it as a second opinion

Add the question to your form or your first call, as a dropdown: Google search, Instagram or Facebook, YouTube, a friend or client, an event, a press mention, AI assistant (ChatGPT, Perplexity), other. Keep it in its own field, never in the source field.

Self-reported data is fuzzy: people credit the last thing they remember. But it catches what tracking can't see, like the podcast, the friend who sent your profile or the article ChatGPT cited. When the tracker says "Google brand search" and the person says "I saw you on Instagram," both are true. Instagram created the demand and Google captured it.

Step 9: Reconcile platforms against the CRM, and know each one's bias

Once a month, put four numbers side by side per channel: platform, GA4, CRM leads, and CRM qualified and closed. They won't match exactly. A gap you can explain is fine. A gap you can't explain is a bug, and until you find it, don't move budget on any of the four. Know how each one leans:

  • Meta tends to take credit generously, especially with view-through windows. I judge on 7-day click as the base, allow 1-day engaged view for video, and keep plain 1-day view out of the decision. When Meta says "great" and the CRM says "bad," I believe the CRM.
  • Google Ads shines on last click. Branded search looks like your best campaign because it catches people already looking for you, often because of something else.
  • GA4 undercounts, since consent choices, blockers and offline sales never reach it. Good for patterns, weak as a ledger.
  • The CRM is only as good as Steps 3 and 4. If original source can be overwritten, it's lying to you.

Compare channels on qualified leads, cost per qualified lead, close rate and revenue, never on raw lead count. A channel with half the leads and twice the customers is the better channel, and a lead count report will tell you to cut it.

Step 10: Incrementality, the next level

Attribution tells you who touched the sale. Incrementality asks whether the sale would have happened without the ad. Every platform wants the credit; the honest answer comes from turning something off on purpose and comparing. You don't need an enterprise tool to start:

  • Planned pause. Pick a channel, set the KPI and the dates in writing, pause for one or two weeks outside your busy season, and compare total leads from all sources, not just the ones attributed to that channel.
  • Watch branded search. If searches for your name rise when Meta spend goes up, you're seeing a halo that no click report will show.
  • Geographic holdout. If you operate in several cities, keep ads off in one comparable market and compare.

One warning: a single test is a snapshot of one moment, one budget and one creative. Repeat it before you rebuild your plan around it. And don't borrow someone else's multiplier for "how underreported" a channel is. Measure your own.

What to do this week

  1. Write your source definitions and UTM rules on one page.
  2. Tag the next email, PDF and organic post before they go out.
  3. Add hidden fields for UTMs, gclid, fbclid, landing page and referrer, with storage.
  4. Lock original source as read-only in the CRM.
  5. Fire generate_lead only on confirmed submissions and test it in DebugView.
  6. Give WhatsApp, DMs and calls their own identifiers.
  7. Book one hour a month to reconcile platforms, GA4 and the CRM against real conversations.

Closing the loop with the ad platforms (Step 6) and incrementality (Step 10) can wait a few weeks. The rest can't: every week without them is history you won't get back.

Where this comes from: the setup above is what my team and I build and fix on client accounts, plus what the measurement community has tested and shared publicly, plus a lot of reading platform documentation that changes more often than anyone would like. I put it in writing so you can decide where your next dollar goes with your own data in front of you.

If you want a second set of eyes on your tracking before your next budget decision, that's a conversation my team and I at Dime Frank are happy to have.

Frequently asked questions

Why do some tagged leads show up as Direct?

Usually because the UTMs weren't stored. The visitor clicked through more pages or came back later, and the parameters were gone from the URL. Save UTMs and click IDs in first-party storage on arrival, capture referrer and landing page as a fallback, and review Direct records monthly.

Is enhanced conversions for leads different from offline conversion import?

It builds on it. Offline conversion import matches CRM outcomes to ad clicks with the gclid. Enhanced conversions for leads adds hashed email or phone, so more conversions match. Google recommends keeping the gclid in your imports either way.