How to Connect Your Domain or Subdomain to HubSpot

Written By Sean McGauley
February 6, 2024

Posted updated September 2026

Connecting your domain or subdomain to your HubSpot-hosted website is a crucial step in your initial HubSpot setup process. Once connected, you can quickly and easily build and publish your website using one of HubSpot’s professional themes and/or the drag-and-drop page editor.

Just follow these steps to get started. 

→ Download Now: Your HubSpot Implementation Checklist

Here's what's covered in this how-to article: click below to jump to the section you want:

What You Will Need:

  • Your IT Admin (if necessary)
  • Access to your website’s DNS settings

Watch the How-to Video:

 

 

Follow these Steps to Connect your Domain or Subdomain to HubSpot

To navigate to your Domains & URLs, follow these steps.  

  • In your HubSpot account, click the settings icon (gear) in the main navigation bar.
  • In the left sidebar menu, navigate to Content > Domains & URLs (or Website > Domains & URLs)
  • Click the Connect a Domain button in the upper-right corner. 
  • Select whether you are connecting a Primary Hosting Domain (for website pages, landing pages, or blog) or an Email Sending Domain.

Setting Up Email Sending Domain: 

Major inbox providers like Google, Yahoo, and Microsoft now strictly enforce SPF, DKIM, and DMARC authentication for all sending domains. Failing to configure these records properly will cause your emails to bounce or land in spam folders.

To complete email authentication:

  • Select Email Sending Domain and enter an email address associated with your domain.
  • Log into your domain registrar (for example, GoDaddy, Cloudflare, Namecheap) and add the 4 required DNS records generated by HubSpot:
    • DKIM (2 CNAME Records): Used to cryptographically sign your outbound emails.
    • SPF (1 TXT Record): Add include:12345.spf00.hubspotemail.net (using your portal's exact string) into your domain's existing SPF record.
    • DMARC (1 TXT Record): Ensure a DMARC policy record (e.g., v=DMARC1; p=none;) exists at your root domain level.
  • Return to HubSpot and click Verify. DNS propagation typically takes 15–60 minutes, but can take up to 48 hours.

Setting Up Primary Domain & Automatic SSL:

When connecting a domain for website pages, blogs, or landing pages:

  • Check off the content types you are setting up on this domain.
  • Enter your domain or subdomain (e.g., [www.yourdomain.com](https://www.yourdomain.com) or blog.yourdomain.com).
  • Log into your DNS provider and add the required DNS records provided by HubSpot:
    • Subdomains (e.g., www or blog): Add the provided CNAME records.
    • Root Domains (e.g., yourdomain.com): Add the provided A records.
  • Automated SSL Provisioning: Once your CNAME or A records are verified, HubSpot automatically provisions a managed SSL certificate (via Cloudflare/Let's Encrypt) instantly. There is no manual SSL configuration needed—your site will load securely via https:// as soon as DNS propagation completes.

Your Next Step:

There's still a little more work to be done to get your HubSpot portal set up the right way.

Now that you've connected your domain to HubSpot, we're ready to move excluding your own traffic from HubSpot analytics. This will ensure the accuracy of your reports.

Here are our step-by-step instructions and video for excluding your traffic from HubSpot analytics. 

Download Your HubSpot Implementation Checklist

Sean McGauley

About the Author

Marketing is more challenging than it’s ever been - but, I’m committed to finding new and creative ways to succeed. By day, I’m a digital marketing enthusiast with a passion for connecting brands with their target audience. I have over a decade of experience in creating and executing successful campaigns with a proven track record. I specialize in Strategy, Copywriting, SEO, and social media marketing - always staying up-to-date with the latest industry trends and technologies. By night, you'll likely find me adventuring with family and friends. I enjoy nature, photography, mountain biking, fly fishing, and trying new foods. I want to connect with other like-minded professionals to learn from and work with.