To track leads from your website to your CRM, send every form submission into the CRM with its source attached, using hidden fields for UTM values. Most teams fail at this step: only 22% of companies track leads accurately from capture to close.

Key facts

  • Only 22% of companies that collect at least 241 leads a month say they track lead-to-close data accurately (NP Digital survey of 100 companies, May 2026).
  • 32% of those companies do not track lead-to-close data at all.
  • 5 UTM parameters carry source data: source, medium, campaign, term and content.
  • Hidden form fields pass UTM values into the CRM without the visitor seeing them.
  • First-touch and last-touch values should be stored separately, because they answer different questions.

What to capture for every lead

FieldWhere it comes fromWhy it matters
UTM sourceTagged linkNames the platform, such as Google or LinkedIn
UTM mediumTagged linkNames the channel type, such as paid search
UTM campaignTagged linkNames the campaign for reporting
Click IDAd platformLets you send closed deals back to Google Ads
Landing pageFirst visitShows which page brought the lead in
Form pageSubmissionShows which page produced the lead

First-touch vs last-touch

ModelWhat it recordsBest for
First-touchThe channel of the first visitFinding which channels start demand
Last-touchThe channel of the converting visitFinding which channels close leads
Both storedTwo separate fields per leadComparing the two without guessing

Tracking starts before the visitor arrives. Add UTM tags to every ad, email and social link, and agree on naming rules first. Use one spelling for each source, such as linkedin, and one format for each campaign, such as webinar-2026-11.

Inconsistent tags are the most common source of bad data. A campaign called Webinar_Nov in one ad and webinar-nov in another splits one campaign into two rows in every report. Write the rules down and share them with anyone who builds links, including agencies.

Pass UTM values through hidden form fields

The standard method uses hidden fields: form fields the visitor never sees, filled in automatically before the form is submitted. Add one hidden field for each UTM parameter to every lead form, then map each one to a matching field in the CRM.

When the page loads, a small script reads the UTM values from the page address and writes each one into the matching hidden field. When the visitor submits the form, the hidden values travel with their name and email into the CRM, just like any visible field.

Most form tools support hidden fields, including HubSpot forms, Salesforce web-to-lead forms and common WordPress form plugins.

Keep the values when visitors move between pages

UTM tags only exist in the address of the first page a visitor lands on. In B2B, few people convert on the first page they see, so the tags are usually gone by the time the form appears.

The fix is to store the values the moment the visitor lands, then fill the hidden fields from storage instead of from the address. A first-party cookie or the browser local storage both work. Save first-touch values once and overwrite last-touch values on each new tagged visit.

Map form fields to CRM fields and protect them

Field mapping is the table that decides which CRM field receives each form input. Use the same field names in every form and in the CRM, such as UTM Campaign, so reports are easy to build later.

Use text fields, not dropdowns, because a new campaign name that is not in a dropdown list fails silently.

The step most teams miss is lead conversion. In Salesforce, custom UTM fields only move to the contact and opportunity if an admin maps them under the lead field settings.

Without that mapping, the source disappears at the exact moment the lead becomes revenue. HubSpot sets original and latest traffic source itself when its tracking code is on your pages.

Check the data every month

Tracking breaks quietly, so test it on a schedule. Once a month, submit a test lead from a tagged link, open the record in the CRM, and check that every source field is filled. Then follow one real lead from form to opportunity and confirm the source survives each step.

For the form side, see best lead capture software.

FAQ

What is the best way to track leads from a website to a CRM?

Connect every form directly to the CRM and pass the source with each submission using hidden fields for UTM values. That way every lead arrives with its channel attached.

What are UTM parameters?

UTM parameters are tags added to a link, such as source, medium and campaign, that tell analytics and the CRM where a visitor came from.

What is the difference between first-touch and last-touch attribution?

First-touch records the channel that first brought a visitor to the site, while last-touch records the channel of the visit that produced the lead. Both are worth storing.

Why do leads lose their source in the CRM?

The usual cause is a form without hidden fields, or a lead that converts to a contact without its source fields mapped across. UTM values also vanish when a visitor moves between pages before converting.

How often should I check lead tracking?

Test it every month. Submit a test lead from a tagged link, check the source fields in the CRM, and fix any form or field that drops the data.

Sources