Problem

Why HubSpot shows so much Direct traffic, and how to fix it

Direct traffic in HubSpot is any visit where HubSpot finds no referrer and no tracking parameters. A high Direct share in B2B is rarely people typing your URL. It usually means UTMs and referrers are lost before the HubSpot tracking code reads them: in forms, redirects, cross-domain hops, consent banners, blocked scripts or untagged links.

By Vladimir Cvetkoski · Last updated

Root causes

The 8 most common causes, and how to check each one

  • →Embedded or iframe forms drop the UTMs. See HubSpot form UTMs missing.
  • →Redirects and link shorteners strip the query string. Also covered in HubSpot form UTMs missing.
  • →Cross-domain hops start a new visit with no source. See HubSpot cross-domain tracking.
  • →The tracking code is missing or loads late on some templates.
  • →The consent banner blocks the cookie on the landing page. See Consent Mode v2.
  • →Safari deletes the cookie before the buyer comes back.
  • →Ad and script blockers stop the tracking script.
  • →Links clicked in apps, PDFs and webmail arrive with no referrer and no UTMs.
  1. 01

    Embedded or iframe forms lose the page context

    When a form loads inside an iframe or on a separate domain, the submission can be tied to the iframe URL instead of the landing page, and the UTMs on the landing page never reach the contact record. The full diagnosis is on HubSpot form UTMs missing.

    How to check
    1. 01Open a landing page with ?utm_source=test&utm_medium=audit added to the URL and submit the form with a fresh email address.
    2. 02In HubSpot, open the new contact and check Original Source and the first page in the activity timeline.
    3. 03If the source is Direct Traffic or the first page has no UTMs, the form is losing context.
  2. 02

    Redirects and link shorteners strip query parameters

    A 301 from http to https, from non-www to www, or through a link shortener can drop everything after the ? if it is not configured to pass it through. The visitor arrives with no UTMs and no referrer.

    How to check
    1. 01Take a tagged ad URL and run it through curl -sIL "<url>" or a redirect checker.
    2. 02Check that the final URL still has every UTM and click ID.
    3. 03Repeat for each ad platform, since each one builds final URLs differently.
  3. 03

    Cross-domain hops break the session

    Visitors who move from your marketing site to an app, booking tool or checkout on another domain can start a new session there with no source. If the conversion happens there, HubSpot sees a Direct visit. The setup and tests are on HubSpot cross-domain tracking.

    How to check
    1. 01List every domain and subdomain a buyer can pass through before converting.
    2. 02Confirm each one is added in HubSpot under Settings > Tracking & Analytics > Tracking code > Advanced tracking.
    3. 03Click from the main site to the other domain and check whether the __hstc cookie value stays the same.
  4. 04

    Tracking code missing or late on some templates

    One landing page template, a subdomain, or a page built in a different tool without the HubSpot tracking code means visits there are never recorded with their source.

    How to check
    1. 01Open each template type and subdomain and look for js.hs-scripts.com (or js-eu1.hs-scripts.com) in the network tab.
    2. 02Check it loads on the first page view, not after a scroll or click.
  5. 05

    The consent banner blocks the cookie, and the source is never recovered

    With an opt-in banner, HubSpot only records page views after the visitor accepts cookies. The first page view, the one with the UTMs, is not recorded, so a visitor who accepts on page two can start without a source. A visitor who never accepts and then submits a form is recorded as Direct Traffic.

    How to check
    1. 01In a private window, land on a tagged URL and do not touch the banner. Check whether __hstc and hubspotutk are set.
    2. 02Accept consent on a second page, submit a form, and check the new contact's Original Source.
  6. 06

    Safari limits cookie lifetime

    Safari's Intelligent Tracking Prevention deletes cookies set by JavaScript after 7 days without the visitor interacting with your site, and caps them at 24 hours when the visitor arrives from a link-decorated URL. A buyer who comes back after the cap looks like a new visitor, often with no source.

    How to check
    1. 01In HubSpot, compare the share of Direct contacts by browser where you have the data.
    2. 02Look at the gap between first visit and conversion for your typical buyer. Longer than a week means ITP matters.
  7. 07

    Ad and script blockers

    Blockers that stop the HubSpot tracking script mean no page views are recorded until the form submission. The contact gets created with little or no source data.

    How to check
    1. 01Install a common blocker (for example uBlock Origin) and walk through your funnel with a tagged URL.
    2. 02Check what source the resulting contact gets.
  8. 08

    Untagged links in apps, PDFs and webmail

    A link clicked in a desktop app such as Slack or Teams, or inside a PDF, usually arrives with no referrer. HubSpot also classifies a visit referred by a webmail domain as Direct Traffic. Without UTMs on those links, sales emails, newsletters sent from other tools and shared decks all show up as Direct.

    How to check
    1. 01Send yourself the same landing page link twice by email, once with UTMs and once without, and click each in a fresh private window.
    2. 02Submit a test form after each click and compare the Original Source of the two contacts.
    3. 03Check the Direct Traffic drill-down (entrance URL) for pages you mostly share in emails or decks.
Self-check

Checklist

  1. 01Pick one landing page per paid channel and add test UTMs to each URL.
  2. 02Run every tagged URL through a redirect checker and confirm the parameters survive.
  3. 03Submit each form type once (embedded, pop-up, booking tool) with a new email address per test.
  4. 04Check each test contact's Original Source, Original Source Drill-Down 1 and first page seen.
  5. 05Repeat one test in Safari and one with an ad blocker enabled.
  6. 06Repeat one test while declining, then accepting, the consent banner.
  7. 07List every domain in the journey and confirm each one is in HubSpot's tracking settings.
  8. 08Write down which tests came back as Direct Traffic. Those are your leaks.
When it is not a quick fix

When to get help

If the tests show more than one leak, or the leak is in custom code, a booking tool or a consent setup you cannot change yourself, start with the Attribution Audit. It is the diagnostic: every entry point tested, each leak mapped with evidence, and a fixed-price plan. The Fix then closes the leaks it finds.

Questions

Common questions

Direct Traffic is the source HubSpot gives a visit with no referrer and no tracking parameters, and also a visit referred by a mail domain or RSS reader. It is HubSpot's "no source found" bucket, so it mixes real typed-in visits with every visit whose source was lost on the way.

Both, for different reasons. A contact whose first tracked visit had no source keeps Direct Traffic as Original Source. A returning visitor who types your URL gets Direct Traffic as Latest Source, even if they clicked an ad the day before. HubSpot Original Source vs Latest Source explains how each one is set and what the Direct Traffic drill-down shows.

Yes. Bookmarks, typed URLs and links from apps that send no referrer are real Direct visits. The problem is when Direct is one of your biggest sources while you run paid campaigns, because paid visitors almost never arrive without a source.

Yes, but carefully. HubSpot lets you edit Original Source on a single record, in bulk or with a workflow, but editing it clears the drill-down values and First Referring Site, so you lose the detail you would need to audit it later. A separate custom source property, or a documented backfill from your own data, is usually the better route.

Only part of it. Server-side tracking helps with blockers and cookie lifetime, but it does not fix forms that drop UTMs or redirects that strip them. Those need to be fixed where they happen.