How to Get Accurate Lead Source Data Into Your CRM

Self reported source fields are wrong more often than they are right. Here is how to capture real attribution at the point of submission.

Ask a hundred customers how they found you and you will get a hundred confident answers, of which maybe forty are right.

People say Google when they mean they typed your name in after seeing an ad on Instagram. They say a friend recommended us when the friend recommendation happened three months before the search that actually brought them in.

Self reported attribution has real uses and it is not a substitute for capturing what actually happened.

Capture at the moment of submission

The only reliable attribution data is collected automatically at the point the form is submitted, from the visitor’s own session.

At minimum, capture and store:

  • Every click ID: gclid, gbraid, wbraid, msclkid, fbclid, ttclid, li_fat_id

  • UTM source, medium, campaign, content and term

  • The first landing page and the referrer

  • The timestamp of first visit

All of it, on every form, every time. It costs nothing to capture and is impossible to reconstruct afterwards.

First touch and last touch, both

This is the refinement that makes the data genuinely useful and almost nobody does it.

Store two sets of fields. First touch, written once on the visitor’s very first arrival and never overwritten. Last touch, updated on every subsequent visit.

Now you can see that a lead first arrived from a blog post found on organic search six weeks ago, and came back through a branded search ad yesterday.

Without this, a branded search ad takes credit for a lead that content actually generated. With it, you can see the whole shape.

The implementation is two cookies and a check for whether the first touch cookie already exists.

Handling the returning visitor problem

The most common bug in lead source capture. A visitor arrives from an ad, leaves, comes back directly a week later, and the direct visit overwrites the ad attribution.

Now your ad looks like it produced nothing and direct traffic looks like a miracle channel.

Rules that avoid this:

  1. Never overwrite a first touch value.

  2. For last touch, only overwrite when the new visit has an actual source. A direct visit with no referrer and no parameters should not overwrite anything.

  3. Set the cookie expiry long enough to cover your sales cycle, ideally set from the server so Safari does not cap it at seven days: extending cookie lifetime with server side tracking

Point two catches most of the damage and takes one line of logic.

Getting it into the CRM

Hidden fields on every form, populated from the cookie on page load.

Two practical warnings:

  • Populate the fields on page load, not on submit. Some form tools read values at render time.

  • If your form is in an iframe from a third party tool, the cookie may not be readable. Most such tools support passing values as URL parameters to the embedded form instead.

Embedded forms are the usual source of mysterious empty attribution fields: tracking embedded forms with GTM.

Keep the self reported question too

Not as your attribution data. As a different kind of information.

A how did you hear about us field captures things no tracking can: a podcast mention, a conference, a colleague’s recommendation, a physical sign. Those are real and completely invisible to any pixel.

So run both. Use the captured data for channel attribution and budget decisions. Use the self reported answer to discover influences you did not know existed.

When they disagree, the captured data is usually right about the mechanism and the self reported answer is often right about the reason.

Do not let sales reps fill it in

A lead source field that a human types into becomes a field full of Website, Web, web, WEBSITE, Online and Inbound.

Make the captured fields read only and system populated. If reps need to record something, give them a separate field for it.

This is a CRM hygiene point rather than a tracking one, and it is the difference between a field you can report on and one you cannot.

What it unlocks

Once every lead carries accurate source data and a click ID, three things become possible that were not before.

  1. Real cost per qualified lead by channel, rather than cost per form fill.

  2. Offline conversion import, sending outcomes back to the ad platforms.

  3. Honest reporting on which content and campaigns start relationships rather than just closing them.

The third one is usually the surprise. Content and upper funnel channels look far better under first touch than under last click, and most businesses have never seen that view of their own data.

The checklist

  • Every click ID captured on landing, into a first party cookie.

  • First touch and last touch stored separately.

  • Direct visits never overwrite an existing source.

  • Hidden fields on every form, populated on page load.

  • Fields are read only in the CRM.

  • A separate self reported question, used for insight rather than for attribution.

Need this built properly?

Attribution you capture automatically beats attribution you ask people to remember. I set up and repair tracking for ecommerce stores and lead generation businesses, so the numbers in your ad accounts match the money in your bank account.

Have a look at what I do, or book a call and we can go through your setup together.

Need accurate tracking?

Its Free

500+ Happy Clients ⭐️

Keep Reading

See exactly where you’re wasting ad spend and how better tracking can double your sales.

See exactly where you’re wasting ad spend and how better tracking can double your sales.

Tracking in 3 Hours

Tracking in 3 Hours

I Manage Everything

I Manage Everything

24/7 Expert Support

24/7 Expert Support

TESTIMONIALS

Trusted by 500+ satisfied clients

Discover how we’ve driven growth and innovation.

500+ Tracking

500+ Tracking

Adélaïde De Vos

3,922 followers

I had the pleasure to work with Abdul and I can say that he exceeded my expectations. He was professional, patient, and clear in his explanations and committed to client satisfaction. If you're looking for someone who is not only highly skilled but also reliable and committed to client satisfaction, I highly recommend Kayium!

Dean Watson

1,030 followers

Kayium setup our tracking for Google Ads and Meta Ads, which helped us get 20%+ more conversions on the same ad spend. He didn’t just handle the technical setup,he also took the time to explain why it works and how it improves results. If you’re looking for someone skilled, reliable, and committed to delivering real results, I highly recommend him!

David Friend

CEO: Profitable Sites

Kayium set up accurate tracking that helped us scale ads fast and boost conversions by over 25%. He gave us clear insight into which ads drive revenue.

Lalita Sundari

7,924 followers

I've worked with Kayium; his strategic mindset and expertise in GTM, GA4, Pixel & Server Side Tracking, are invaluable! I highly recommend Kayium!

© 2026 Abdul Kayium

Owned by Kayium

© 2026 Abdul Kayium

Owned by Kayium