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:
Never overwrite a first touch value.
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.
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.
Real cost per qualified lead by channel, rather than cost per form fill.
Offline conversion import, sending outcomes back to the ad platforms.
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.























