Blog · UTMs and tracking

How HubSpot reads UTM parameters, and where it stops reading

HubSpot reads UTMs from the page URL through its tracking code, files them into Original Source drill-downs, and sees nothing on pages it does not run on.

Kurt Kalwin6 min read

HubSpot UTM tracking works through the tracking code on your own pages. When a visitor lands on a tracked page, HubSpot reads the UTMs from the address, uses them to pick a traffic source, and files utm_campaign, utm_source, utm_medium and utm_content into the source's drill-down properties. It keeps no separate UTM field on the contact, and it reads nothing on pages without its script, such as Zoom or Eventbrite.

Where the UTMs end up on a contact

There is no default contact property called utm_source. The values go into the traffic source properties instead. HubSpot's page on traffic source properties describes three levels for the first visit: Original Traffic Source, Original Traffic Source Drill-Down 1 and Original Traffic Source Drill-Down 2.

Which UTM lands in which level depends on the source the visit was filed under. HubSpot's page on traffic sources gives the mapping for the two buckets tagged links most often reach:

Original Traffic Source Drill-Down 1 Drill-Down 2
Email marketing utm_campaign The email name, from utm_content
Other campaigns utm_campaign utm_source and utm_medium

So for most tagged links, the campaign is one level down and the rest is two levels down. utm_term does not appear in either row.

The drill-downs are set by HubSpot and cannot be edited by hand. The traffic source properties page also says that if you change a record's traffic source, the drill-down properties are cleared. That is the main reason I tell people never to "tidy up" Original Source after the fact: you lose the UTMs that were stored under it.

How the tracking code captures them

The tracking code does the reading, not the link and not the form. HubSpot's page on how it tracks visitors says page views are logged against a browser cookie from the first visit, while the person is still anonymous. When they later submit a form, HubSpot ties those earlier page views to the contact record.

That order matters for UTMs. The tagged visit is recorded when the page loads, possibly days before anyone fills in a form. Original Source is then taken from the earliest visit HubSpot can tie to the person, which may or may not be the tagged one. HubSpot Original Source: why webinars get lost in it goes through what that does to webinar registrants.

The same visitor-tracking page lists the limits. Deleting cookies, switching browser or blocking cookies makes the same person look like a new visitor, and someone who converts without accepting cookies leaves no page-view activity on their record. A perfect link cannot get past any of those.

HubSpot then sorts the visit with an ordered list of rules. The traffic sources page lists them: a medium of social with a known network goes to Organic social, email anywhere in the tags goes to Email marketing, and a tagged link that matches nothing lands in Other campaigns. LinkedIn UTM parameters: why HubSpot files them wrong has the spellings that miss the rule you meant to hit.

Where HubSpot stops reading

HubSpot's page on creating tracking URLs says the link must point at a page with the HubSpot tracking code installed. That is the whole boundary. UTMs are text in an address bar, and only a page running the script turns them into anything.

Zoom's registration page is the case I see most. The tracking code does not run on zoom.us, so a promotion link that goes straight to Zoom carries its UTMs to a page that never reports them to HubSpot. The registrant becomes a contact later, through HubSpot's Zoom app or an import, and the traffic sources page files contacts created through integrations, imports and the API under Offline sources. Eventbrite and any other hosted ticketing page work the same way: you do not control the script on their domain, so you cannot assume HubSpot sees anything.

The second place it stops is the redirect. If a link shortener, a cookie banner or your own CMS strips the query string before the page finishes loading, the tracking code reads a clean URL. HubSpot's traffic sources page says Direct traffic is typically visitors who typed the URL or removed all query parameters before entering a site, and a stripped redirect looks exactly like that.

The third is the person who returns without the tags. A registrant who clicks your tagged LinkedIn post, leaves, and comes back through a bookmark to register is fine: the tagged visit is already on their cookie. A registrant on a second browser or a work laptop is a new visitor, and the tagged visit never meets the form.

How Original Source drill-downs use them in reports

Reports read the same three levels. In the traffic analytics tool you start at the source, click Other campaigns, and get one row per utm_campaign value. Click a campaign and you get its source and medium pairs. On a contact report, add Original Traffic Source Drill-Down 1 as a breakdown and you get the same campaign rows across your contacts.

Both reports group by the raw string. A campaign spelled three ways is three rows, which is why what to put in utm_campaign argues for one value pasted on every link. The UTM builder shows which Original Source and drill-down a link will produce before you send it.

Drill-downs answer "which campaign brought this contact first". They do not answer "which webinar did this contact register for", because a contact who first came from your newsletter keeps that campaign for good. If the webinar is what you report on, store it in its own property.

Storing UTMs on the contact yourself

If you want the raw UTM values as properties you can filter and report on directly, HubSpot forms can capture them. I would do this on every registration form you own. It takes fifteen minutes and survives everything that clears the drill-downs.

HubSpot's page on hidden form fields says hidden fields can capture URL parameters such as utm_campaign and store them in contact properties on submission. Its page on auto-populating fields from a query string says a field fills from a query string parameter that matches the property's internal name, and suggests custom UTM properties for exactly this.

Here is the setup for one registration form:

  1. In Settings, Properties, create five single-line text contact properties: UTM source, UTM medium, UTM campaign, UTM content and UTM term.
  2. Open each one and check its internal name reads utm_source, utm_medium and so on. The query string match depends on it.
  3. Open the registration form and add all five properties as fields.
  4. Turn on the Hidden field switch for each. A field marked Required cannot be hidden, so leave Required off.
  5. Publish, then open the page with ?utm_source=linkedin&utm_medium=social&utm_campaign=test-webinar on the end and submit a test entry.
  6. Open the test contact and confirm all three values arrived.

Two limits to know. These fields record the UTMs on the visit where the form was submitted, not the first visit, so they can disagree with Original Source. That is fine; they answer a different question. And the auto-populate page says a value with spaces must use %20, which is one more reason to keep UTM values lowercase with hyphens.

None of this helps a registrant who fills in Zoom's form, since the hidden fields live on a HubSpot form. Should your webinar registration form be Zoom's or HubSpot's? covers moving the front door. If you keep Zoom's form, Connexa's HubSpot integration links each registrant to the webinar as it creates the contact; HubSpot's own Zoom app is the other option, and if it already gives you what you report on, use it.

Questions people ask

Does HubSpot store utm_term anywhere?

Not in the drill-down mapping the traffic sources page gives for Email marketing and Other campaigns. If you want it on the contact, the hidden UTM term field from the steps above is the reliable place for it.

Usually because the parameters were gone by the time the tracking code ran. Open the link in a private window and look at the address bar once the page has finished loading. If the tags are missing, the redirect is the problem, not HubSpot.

No. HubSpot's tracking code does not run on zoom.us, so the tags are never read. Point the tagged link at a page on your domain and register people from there.