Skip to content
SourceLoop

How to Track UTM Parameters in Hubspot Forms

Follow 4 simple steps to capture UTM parameters in Hubspot Forms and and uncover the true source of every lead

Capture UTM parameters in Hubspot
In this article
  1. The problem with HubSpot forms and UTMs
  2. 5 Easy Steps to Track UTM Parameters in Hubspot Forms
  3. 1. Install SourceLoop on Your Website
  4. 2. Add UTM Parameters to Your Links
  5. 3. SourceLoop.ai Automatically Show UTM Data
  6. 4. Add Hidden Fields to Your Forms (Optional)
  7. 5. UTM Parameters Are Passed for Each Hubspot Forms Submission

You are investing in paid ads, email, and affiliates, and sending visitors to your website with UTM links.

But when a visitor fills out your HubSpot form, HubSpot doesn’t show where they came from.

The culprit? UTM data isn’t captured accurately by default for most leads.

In this guide, we’ll walk you through a step-by-step process to track UTM parameters in HubSpot Forms using SourceLoop.ai.

Let’s dive in.

The problem with HubSpot forms and UTMs

By default, HubSpot doesn’t capture UTM parameters from your URLs into form submissions.

Even if your landing page URL looks like this:

https://example.com/ebook?utm_source=google&utm_medium=cpc&utm_campaign=brand

…HubSpot won’t store those UTM values unless you explicitly set it up to do so.

In some cases, HubSpot can store limited data in its web analytics fields — but only if the UTM parameters are still present in the URL when the user fills out the form.

And that’s rarely the case.

Most visitors don’t land on your form and convert right away. They might click on your ad, land on a demo page with UTMs, then browse your pricing page, read a blog post, or check out your About page.

By the time they come back to fill out your form, the URL no longer has the UTM parameters — and HubSpot has nothing to capture.

As a result, most leads show up in your CRM with no meaningful attribution data.

Which means it becomes nearly impossible to:

  • Attribute conversions correctly
  • Optimize your paid campaigns
  • Prove ROI to your boss or clients

5 Easy Steps to Track UTM Parameters in Hubspot Forms

Here are 4 simple steps to capture UTM parameters in Hubspot Forms:

1. Install SourceLoop on Your Website

SourceLoop-Lead-Source-UTM-Tracking-Software

Create your free account on SourceLoop.ai and add a small JavaScript snippet to the <head> section of your site.

SourceLoop will then track how a visitor arrives on your site (based on UTM parameters, referring site, device, etc.) — and store that info in the user’s browser until they submit a form.

For each visitor, it uses predefined rules to parse the UTM information and categorize it into clear marketing attributes.

Example:

Let’s say Nike is using SourceLoop.ai, and a user clicks on one of their Instagram Story ads promoting a new running shoe.

SourceLoop.ai will capture and organize the user’s visit information like this:

  • Channel = Paid Social
  • Channel Drilldown 1 = Instagram
  • Channel Drilldown 2 = Story Ad
  • Channel Drilldown 3 = Pegasus 42 Launch
  • Landing Page = www.nike.com/running/pegasus-42
  • Landing Page Folder = running
  • Last Seen = Apr 14, 2025

Try SourceLoop.ai for Free

What is UTM Parameter

Next, make sure that all the links you share online — especially in ads — have UTM tags.

This ensures that every visitor you send to your site carries information about where they came from, which SourceLoop can then capture.

Example of a link with UTM parameters:

https://website.com?utm_source=paid_search&utm_medium=Bing&utm_campaign=prime_day

Resources:

3. SourceLoop.ai Automatically Show UTM Data

SourceLoop.ai tracks every user visit to your website, recording UTM parameters and page views along the way.

When a visitor submits a form or books a meeting, we automatically attach their full history to their lead profile.

sourceloop lead journey and attribution software

The Lead Manager dashboard then shows their entire journey.

You can see which marketing channel brought them in first, the pages they visited on return visits, and the path that ultimately led to conversion.

This gives you a clear, complete view of each lead, so you know exactly which campaigns are driving results.

More Tutorials:

4. Add Hidden Fields to Your Forms (Optional)

You can also capture UTM data in your HubSpot form submissions by adding hidden fields to the form.

These hidden fields won’t be visible to visitors, but SourceLoop.ai will use them to pass UTM values with the form submission.

To get started:

First, create new contact properties with the internal names shown below. These will be added to the form in the next step as hidden fields.

Create property in Hubspot Form

In the form editor, drag and drop each of the newly created properties from the left sidebar into the form.

Make hubspot field hidden

Then, click on each field and turn on the “Make this field hidden” option.

Add Fields in Hubspot Form
  • channel
  • attribution_source
  • attribution_medium
  • attribution_campaign
  • attribution_term
  • landingpage
  • landingpagefolder
  • lastseen

If a lead visits your site multiple times and you want to capture their first visit data as well, add these additional hidden fields:

  • first_channel
  • first_source
  • first_medium
  • first_campaign
  • first_term
  • first_landingpage
  • first_landingpagefolder
  • firstseen

5. UTM Parameters Are Passed for Each Hubspot Forms Submission

Once you’ve configured the hidden fields, let SourceLoop do the rest.

It automatically fills those hidden fields at the time of form submission — no extra logic or dev work needed.

When the form is submitted, all attribution data is stored right inside HubSpot with the contact record.

HubSpot UTM tracking

Now that you have the actual source of each lead and customer in your CRM, you can:

Cut spend where it’s being wasted

Create attribution reports

Understand which marketing channels and campaigns are working

Allocate more budget to what’s converting

More Tutorials:

Share this post

Post on X Share on LinkedIn

Keep reading

All posts

Track every conversion to its true source

Capture and send full attribution data from every signup, lead, booking, and sale to your CRM and ad platforms, so you know exactly what's driving revenue.

Without SourceLoop

Untagged

Kayden Floyd

kayden@abc.com

  • SourceUnknown
  • MediumUnknown
  • CampaignUnknown
  • Landing pageUnknown
Journey
No touchpoints captured

With SourceLoop

Auto-tagged

Kayden Floyd

kayden@abc.com · Acme Co.

  • Channel Paid Social
  • CampaignFree_demo
  • Landing page/pricing
Journey
Synced to HubSpot Google Ads Meta