Guide

How to clean up company domains in HubSpot

Clean domains mean fewer duplicates and better data in every tool.

By Carlos van Boekhold, founder of AsklingFor HubSpot admins and RevOpsLast updated

Short answer

  • Root domain only, such as example.com: no https://, no www., no path, no trailing slash
  • Find the companies that break this, then fix the value
  • A match is a duplicate. If another company has the clean domain, merge instead of editing

The format HubSpot expects

  • Primary Company domain name identifies the company record
  • HubSpot uses it to deduplicate companies and, when that setting is on, to associate contacts by email domain
  • Enter the root domain only, the company's primary one
  • https://www.acme.com/acme.com
  • WWW.Beta.combeta.com

These all count as messy and make matching harder:

  • A prefix such as https:// or http://
  • A leading www.
  • A path, query or fragment such as /contact or ?ref=ad
  • A port number such as :8080
  • Capital letters, a trailing dot or spaces around the value

Step by step

  1. Find the messy domains

    On the Companies index, filter Company domain name with the contains operator for http, www. and a slash.

    • Capitals, ports and spaces are hard to filter
    • Export with the Record ID and check them in a spreadsheet instead
  2. Write the clean value

    Remove the prefix, a leading www., the path, query and port, then lower case the rest and trim spaces and a trailing dot.

    • Do not guess beyond that
    • Not a web address at all, such as an email address or a word with no dot? Fix it by hand
  3. Check for a company with that domain

    Search for the clean domain before you save it.

    • Another company holds it? The two records are probably duplicates
    • Do not force the same domain onto both. Merge them instead
  4. Save the clean domain

    Edit Company domain name on the record for a few companies, or import a fixed export for many.

    • On the record, the pop up next to the domain lets you add a domain, delete one or make one primary
    • For hundreds, export with the Record ID, fix the column in a spreadsheet and import it to update existing records, matched on Record ID
    • Try ten rows first and check the records afterwards
    • A blank cell in an import does not clear a value
  5. Fill the empty domains

    A company with a Website URL and no domain can take the host of its website.

    • Skip websites that are not the company's own: social profiles, link pages, site builders and free mail sites
    • Open the site if you can. Some redirect to a different domain, and then the redirect target is the domain you want
  6. Replace free mail domains

    Filter companies where the domain is one of these:

    • gmail.com
    • outlook.com
    • hotmail.com
    • yahoo.com
    • icloud.com
    • aol.com
    • gmx.com
    • protonmail.com
    • Probably created from a person's email address, and a mailbox provider is not the company
    • The website shows the real domain? Use it. Otherwise ask the owner
  7. Stop new mess at the source

    Make forms, imports and integrations send the root domain only.

    • The API is not deduplicated by domain, and that includes sync apps
    • A messy source keeps producing messy records

Special cases

  • Subdomains need a person. HubSpot's guidance is the root domain, but you cannot always tell a subdomain from a different company. Removing only a leading www. is the safe default, so leave shop.acme.com or m.acme.com to judge by hand
  • Customers and open deals cost the most when a change is wrong. Review them by hand, one at a time
  • Several domains on one company are allowed. See the next section

Additional domains

  • The primary domain comes first and is the one HubSpot uses to deduplicate
  • One timeline: contacts and activities from any domain on the record feed it
  • No automatic merge. Adding a domain that belongs to another company does not merge the records or combine their activities, because additional domain names only apply going forward. Use the merge tool

Where Askling fits

Early access

  • Three checks clean messy domains, fill empty ones from the website field and replace free mail domains with the website's host when it is a usable address
  • Evidence on every suggestion: the old value, the rule, and proof that no other company has the new domain. A pair that would collide goes to the Duplicates page
  • Only the company domain is written, and only after a person approves. Customers are read only by default
  • One confirmation covers a whole tile, up to 1,000 rows, written in batches of 50. Every write can be undone, and these checks are plain code with no AI, except Find website, which searches the web

See data cleaning

Questions

What format does HubSpot expect for a company domain?

The root domain only, such as example.com. Leave out the protocol, a www. prefix, page paths and a trailing slash.

What happens if two companies end up with the same domain?

Nothing merges. Adding a domain that already exists on another company does not merge the records or combine their activities. Use the merge tool to combine them.

Does HubSpot deduplicate companies created through the API?

No. HubSpot does not deduplicate companies created through the API by Company domain name, and that includes installed third party sync apps.

Sources