The Hidden Form Fields That Save Your HubSpot UTM Tracking

The ad: tagged.
The URL: ?utm_source=linkedin&utm_campaign=2026q3_abm.
The new contact in HubSpot: Jane, Acme, [email protected].
Original source: Direct traffic.

That's where HubSpot UTM tracking breaks most often: at the form, not in the links. The form keeps the name and email and throws away everything about where she came from, because nobody told it to keep that.

Hidden form fields fix it. The visitor never sees them, and they pay for themselves the first time someone asks where a lead came from.

What a hidden field does

It's a form field the visitor never sees. It fills in on its own from the URL or a cookie and submits with everything she typed.

The ones worth capturing:

  • The five UTM parameters: source, medium, campaign, content, term.
  • The page she first landed on.
  • Ad click IDs like the GCLID, if you run Google Ads.

Now the contact shows up with its history attached. Instead of "Jane from Acme," you get "Jane from Acme, who came from the LinkedIn ABM campaign and first found you through the attribution guide three weeks ago."

Why HubSpot's own source fields aren't enough

HubSpot already tracks Original Source, and its drill-down fields often keep some detail, like a campaign name. Fair to ask why you'd add more.

Because those fields follow HubSpot's rules. They sort traffic into HubSpot's buckets, decide on their own what lands in each drill-down, and don't hold all five UTMs side by side. They rely on HubSpot's tracking cookie, so someone who converts without it gets less. And they don't sync to Salesforce as clean, reportable fields.

Your own UTM properties give you every parameter, in your naming convention, on every record, in both systems.

Salesforce on its own is worse: a web-form lead arrives with whatever the form sent, and nothing else.

Setting it up in HubSpot

  1. Create the properties first. One contact property per UTM, single-line text, with internal names that match the parameters exactly: utm_source, utm_medium, utm_campaign, utm_content, utm_term. The form has nowhere to send data until these exist.
  2. Add them to every form as hidden fields. When a property's internal name matches a parameter in the URL, HubSpot fills it from the URL on its own.
  3. Keep the UTMs when people click around. The URL only has the UTMs on the first page. Land on a blog post, fill out the demo form two pages later, and they're gone. A small script that saves them in a cookie on arrival and writes them into the form on submit fixes this.
  4. Test every place a form lives. Main site, landing pages, embeds, every subdomain.

On Salesforce it's the same idea with Web-to-Lead or Account Engagement forms: UTM fields on the Lead, hidden inputs on the form, and Lead fields mapped to Contact and Opportunity on conversion so the values survive.

One typo in an internal name and the field submits blank forever. Copy and paste them.

First touch and latest touch

Every form submission overwrites a property. So if the UTM fields fill on every submission, they only ever hold the latest touch. The campaign that first found her gets erased the next time she downloads anything.

Keep two copies of each field, with opposite rules:

  • First-touch fields get written once, on the first conversion, and never again.
  • Latest fields get overwritten every time, so you know what brought her back.

The form fills the latest fields. Something copies them into the first-touch fields only when those are empty. On HubSpot Professional a workflow can do it. On Starter, an automation tool like Make can.

That pair gives you first-touch and last-touch reporting. It doesn't give you everything in between. Multi-touch models need the full history from campaign membership or form submissions. But without the pair, no model has anything to work with. (More on choosing an attribution model.)

Three ways it breaks

The fields exist but never fill in. The internal names don't match the URL parameters, so they submit blank. It looks done and captures nothing.

They fill in but never reach the deal. The data sits on the contact and never makes it to the deal or opportunity, so pipeline reports can't see it.

They work on the main site and break on embeds. A form on a subdomain or landing page tool loses the values because the cookie or script isn't there. (More on cross-domain tracking gaps.)

All three fail without a sound. The form submits, the lead appears, and months later someone asks which campaign drove pipeline and you find the fields empty on thousands of records.

It tends to break the week someone redesigns the site. Put a form test on the launch checklist.

The five-minute test

  1. Build a link to a page with a form: ?utm_source=test&utm_medium=test&utm_campaign=test_today.
  2. Open it in a private window. Click to one other page. Then submit the form with a test email.
  3. Open the new contact. Are all three UTM fields filled? First-touch and latest both?
  4. If you sync to Salesforce, wait for the sync and check the Lead.
  5. Repeat on every subdomain and landing page tool that has a form.

Then delete the test contacts so they don't end up in someone's report.

Why this is worth doing this week

Everything upstream, the UTM naming convention, the GA4 setup, the channel plan, exists to answer one question: where did this lead come from? Hidden fields carry that answer into the system where you work the lead. Skip them and all that upstream work gets tossed at the form.

It takes an afternoon and pays back on every lead after. If your links aren't tagged consistently yet, start with the free UTM builder so what lands in those fields is worth keeping.

Make it stick

The UTM & Campaign Naming System

A locked Google Sheet builder, the channel code library and the governance rules, so every link your team makes gets tagged the same way. $79.

Get the system

Just need one link? Use the free UTM builder.

The newsletter

Notes from the Field.

Every other week, one broken thing and how I’d fix it.

One email every other week · unsubscribe anytime · Privacy policy