HubSpot

HubSpot Domain Integration: Hosting vs. Tracking Code for Your New Domain

HubSpot tracking code collecting data from an external website
HubSpot tracking code collecting data from an external website

Navigating Domain Changes in HubSpot: Hosting vs. Tracking Code

Undergoing a domain name change is a significant undertaking for any business. Beyond the branding implications, it introduces a critical technical question for organizations leveraging HubSpot: Is it necessary to fully 'host' the new domain within HubSpot, or is simply deploying the HubSpot tracking code sufficient? This distinction is not merely technical; it's crucial for maintaining accurate data, ensuring email deliverability, and optimizing your HubSpot investment.

Many businesses find themselves in this exact scenario, often preferring to manage their website content on an external platform (like WordPress or a custom CMS) while still relying on HubSpot for CRM, marketing automation, and analytics. Understanding the nuances of HubSpot's domain integration options is key to a smooth transition and continued operational efficiency.

Understanding HubSpot Domain Integration: Hosting vs. Tracking

The core of this challenge lies in differentiating between two primary ways HubSpot interacts with your domain:

  1. Full Content Hosting: This involves using HubSpot as your Content Management System (CMS) to build and host your website, landing pages, or blog directly within the platform. When you host content in HubSpot, you'll connect your domain so that HubSpot serves the content under that domain. This typically requires updating your DNS records (e.g., CNAME records) to point your domain to HubSpot's servers. This approach centralizes your content management and marketing efforts within HubSpot, offering seamless integration between your website, CRM, and marketing tools.

  2. Tracking and Analytics: This refers to using HubSpot to monitor visitor activity, gather analytics, and integrate with your CRM, even if your website content is hosted on an external platform (e.g., WordPress, Shopify, custom-built sites). In this scenario, HubSpot's tracking code acts as the bridge, collecting data from your externally hosted site and feeding it into your HubSpot portal.

When Full Domain Hosting in HubSpot Isn't Necessary

If your organization's strategy does not involve creating new content assets like landing pages, website pages, or blog posts directly within HubSpot's CMS, then you generally do not need to fully 'host' your new domain in HubSpot. This is a common scenario for businesses that prefer to manage their website content on a different platform but still want to leverage HubSpot for CRM, marketing automation, and analytics.

For example, if your primary website is built on WordPress and you use HubSpot solely for managing contacts, sending marketing emails, building workflows, and tracking visitor behavior, then full domain hosting in HubSpot would be redundant and unnecessary. Attempting to host a domain that isn't serving HubSpot-built content can lead to confusion and incorrect configurations.

The Power of the HubSpot Tracking Code

For companies that host their content externally, the HubSpot tracking code becomes your primary tool for integrating your new domain with HubSpot. This small snippet of JavaScript code, when added to every page of your website, enables HubSpot to:

  • Track Visitor Activity: Monitor page views, session duration, referral sources, and other behavioral data.
  • Identify Contacts: Associate website activity with existing contacts in your CRM or create new contact records for unknown visitors who submit forms.
  • Power Analytics: Provide valuable insights into website performance, traffic sources, and conversion paths within your HubSpot reports.
  • Enable Marketing Automation: Trigger workflows, personalize content, and segment audiences based on their website interactions.

Implementing the Tracking Code for a New Domain

The process for integrating your new domain via the tracking code is straightforward but requires careful attention to detail:

  1. Retrieve the Tracking Code: Access your HubSpot portal, navigate to `Settings > Website > Tracking Code`. Copy the provided JavaScript snippet.
  2. Deploy Across Your External Site: Paste this tracking code into the header or footer section of *every* page on your new website. Most CMS platforms offer a global setting for this, ensuring the code loads on all pages without manual intervention.
  3. Update Advanced Tracking Settings: This is a critical, often overlooked step. In HubSpot, go to `Settings > Tracking & Analytics > Tracking Code > Advanced Tracking`. Here, you must explicitly add your new domain(s) to the list of domains HubSpot should track for your account. This tells HubSpot to attribute data from these specific domains to your portal, preventing data discrepancies and ensuring accurate reporting. Without this, HubSpot might not correctly associate the new domain's traffic with your account.

The Essential Role of the Email Sending Domain

Independent of whether you host content or just use the tracking code, setting up your email sending domain in HubSpot is non-negotiable. This process involves authenticating your domain (e.g., via SPF, DKIM, and DMARC records) to prove to email providers that HubSpot is authorized to send emails on your behalf. This is vital for:

  • Email Deliverability: Authenticated emails are less likely to be flagged as spam and have a higher chance of reaching the inbox.
  • Brand Consistency: Your emails will appear to come from your new, official domain, reinforcing your brand identity.
  • Reputation Management: Proper authentication helps build and maintain a positive sender reputation.

This setup is performed separately within HubSpot's `Settings > Marketing > Email > Email Sending Domains` and does not require you to host your website content within HubSpot.

Benefits and Considerations of the Tracking-Only Approach

Opting for a tracking-only integration offers several advantages:

  • Flexibility: Maintain your preferred CMS for website content while still leveraging HubSpot's powerful CRM and marketing tools.
  • Data Continuity: Ensure that all visitor data from your new domain flows seamlessly into your existing HubSpot CRM, preserving historical context and contact profiles.
  • Cost-Effectiveness: Avoid the complexities and potential costs associated with migrating an entire website to HubSpot's CMS if it's not a strategic priority.

However, it's essential to ensure comprehensive coverage: verify that the tracking code is indeed on *every* page, including any subdomains you wish to track. Regularly audit your HubSpot analytics to confirm data is flowing correctly from your new domain.

Ensuring your HubSpot instance is configured correctly, whether through full domain hosting or strategic tracking code deployment, is fundamental to maintaining a clean CRM and effective marketing operations. At Inbox Spam Filter, we understand that precise data and streamlined processes are key to preventing issues like hubspot inbox spam and ensuring your communications reach their intended audience.

Related reading

Share:

Ready to stop spam in your HubSpot inbox?

Install the app in minutes. No credit card required for the free Starter plan.

Install on HubSpot

No HubSpot Account? Get It Free!