How to set up a subdomain in HubSpot

Step-by-Step Guide: Setting Up a Subdomain in HubSpot

1. Plan the Subdomain Usage

Decide what the subdomain ( e.g, info.yourdomain.com) will be used for:

  • Hosting landing pages in HubSpot.
  • Tracking and reporting across domains.
  • Maintaining brand consistency

2. Choose a subdomain

In this article, we're assuming you'll choose 'info' as your subdomain (info.yourdomain.com). This is a safe choice that works well for different purposes. However, we've seen clients use other great options as well, including:

  • discover.yourdomain.com
  • go.yourdomain.com
  • hub.yourdomain.com
  • lp.yourdomain.com
  • learn.yourdomain.com
  • offers.yourdomain.com
  • pages.yourdomain.com

If you choose something other than "info," just substitute your choice when you see "info" referenced below.

3. Add the Subdomain in HubSpot

In HubSpot, Navigate to:

Settings > Content > Domains & URLs

Screenshot_3

The left menu on the Settings screen

Alternatively, use HubSpot's Search feature to search for "Brand domains":

Screenshot_4

Then:

  1. Click “Connect a domain”.
  2. Choose "Primary"
  3. Select the type of content (e.g., “Landing pages”).
  4. Choose “Subdomain” option and enter info.onevizion.com.
  5. Choose Hosting Provider (you can pick “Other” if unsure).

HubSpot will now generate DNS records to be added to your domain's DNS provider.

4. Configure DNS Settings

You will receive instructions to add a CNAME record. Typically it will look like:

Record Type

Name

Value (Points to)

CNAME

info

[your portal ID].groupXX.sites.hubspot.net

Steps:

  • Go to your DNS manager (e.g., Cloudflare, GoDaddy).
  • Add the above CNAME record.
  • Ensure there's no conflicting A or CNAME record already for info.

Important: It can take up to 24 hours for DNS propagation, though it’s usually quicker.

5. Verify Domain in HubSpot

Once DNS is configured:

  • Return to HubSpot.
  • Click Verify on the domain setup page.

If all is set, it will show the domain as “Connected”.

6. Set Up Tracking and Advanced Configuration

After connecting the domain:

Go to:

Settings > Tracking & Analytics > Tracking Code > Advanced Tracking

Then:

  • Add info.yourdomain.com under “Additional site domains”
  • This ensures cross-domain traffic tracking works correctly.
  • Make sure “Automatic cross-domain linking” is toggled ON.