GuideHow toMarketing Hub

HubSpot tracking URL builder: UTM fields, which source to pick, short links, and links that show no sessions

The Source you pick in the tracking URL builder decides where every visit is reported. What each field does and why some tracked links show nothing.

Subscription
All plans
Permissions
Access to tracking and analytics settings
Time
6 min · Intermediate
Last verified

Short answer

Build tracked links in Settings, Tracking & Analytics, Tracking URLs. A campaign name is required, and the Source you pick decides which traffic source the visit lands in: Email marketing, Paid search, Organic social, Paid social, or Other campaigns with a custom source. Medium, term and content are optional. Copy the full or short URL from Actions. If a tracked link shows no sessions, widen the report's date range and check the destination page has the HubSpot tracking code.

1. Create a tracking URL

Open Settings, Tracking & Analytics, Tracking URLs and click Create tracking URL (1):

Tracking URL Builder empty state with Create tracking URL buttons
Create tracking URL (1).
FieldRequired?What it does
URLYesThe destination page
Campaign (utm_campaign)YesUsed in several HubSpot reports and counts toward the campaign in the campaigns tool
Source (utm_source)YesDecides the traffic source bucket (next section)
Medium (utm_medium)NoThe specific ad, post or email. For Other campaigns, shown when you drill into the campaign
Term (utm_term)NoPaid search keywords
Content (utm_content)NoTells apart several ads or links on the same page

Click Create, or Create and add another. To use it, hover the URL, open Actions and choose Copy tracking URL or Copy short URL. You can also build a tracking URL from a campaign so it uses that campaign's UTM value.

2. Pick the right source

Source in the builderUse it for
Email marketingLinks in a marketing email
Paid searchPaid search ads
Organic socialUnpaid social posts
Paid socialPaid social campaigns
Other campaignsAnything else, with a custom UTM source such as FB_Campaign_1

These sources and their drill-downs feed the Original and Latest Traffic Source properties on contacts. See traffic source properties for what each drill-down holds.

  • Social posts published through HubSpot already get tracking; you cannot add custom tracking URLs to them.
  • Connected ad accounts can add UTMs automatically. See ads.
  • Google Ads auto-tagging does not pass a campaign name HubSpot can read, so those visits show as paid search without a campaign. Add your own UTMs if you need the campaign.

3. When a tracked link shows nothing

  • Date range: sessions only show if the link was visited during the report's time frame.
  • Tracking code: the destination page must have the HubSpot tracking code. See installing the tracking code.
  • Formatting: check the URL was copied whole, with its parameters.

Emails sent from non-HubSpot tools without link tracking, or HubSpot emails with source tracking turned off, show up as Direct traffic. For campaigns with contacts but no sessions, see campaigns and attribution.

4. What is changing for 2027

  • AI Referrals use UTMs too. For the AI Referrals source, Drill-Down 2 holds utm_campaign, so a tagged link that reaches people through an AI assistant still carries its campaign name. See traffic sources.
  • Campaigns tie it together. Building tracking URLs from a campaign keeps the UTM value consistent with the campaign's reporting.

Common questions

Is a campaign name required?

Yes. It is used in several reports and in the campaigns tool.

Why are my email visits in Direct traffic?

The email links had no tracking parameters, either because the email came from another tool or source tracking was off.

Can I add a tracking URL to a HubSpot social post?

No. HubSpot adds its own tracking to social posts it publishes.

Where is the short link?

Hover the tracking URL, open Actions, and choose Copy short URL.

Sources

New field notes by email

One email when a new article publishes.

Still stuck?

If this did not fix it, the problem is probably specific to your setup. Book a call and we will look at it together.

Book a call with Sam