You've just set up HubSpot Sales Hub — do you actually need to install the tracking code? If you're not running marketing campaigns, why would you? Is it just for Marketing Hub users?
These are common questions, and the short answer is: the tracking code matters for Sales Hub, too — more than most people realize.
Many Sales Hub Pro subscribers operate under the misconception that the HubSpot tracking code is only necessary for Marketing Hub users. This is NOT the case. The tracking code is essential for Sales Hub to function effectively, even if you're not running marketing campaigns.
What Data the HubSpot Tracking Code Captures
The tracking code collects critical sales intelligence:
- IP addresses - Identifies which companies are visiting your website
- Page views - Shows which pages prospects are viewing
- Timestamps - Tracks when prospects are engaging with your content
- Visitor identification (VID) - Creates unique visitor profiles before form submission
- Company domain - Associates corporate visitors with company records (after form submission)
Learn more about data collected by the tracking code
8 Sales Hub Features That Require the HubSpot Tracking Code
1. Website Visits (Prospects Tool)
The Website Visits tool uses the tracking code to detect IP addresses and surface company information about anonymous visitors to your site. Without the tracking code, this tool is completely non-functional.
Impact: You cannot identify which companies are visiting your website before they convert, eliminating a major source of qualified leads.
Learn more about tracking website visits
2. Contact Page View Attribution
When contacts are created via import, manual entry, or sync, HubSpot cannot associate page views to their contact record until they either:
- Submit a HubSpot form (with tracking code installed and cookies enabled), OR
- Click a link in a tracked marketing email
Impact: Without the tracking code, imported or manually created contacts show no website activity history, making it impossible to understand their engagement level or interests.
Learn more about visitor tracking
3. Lead Scoring
Lead scoring for engagement relies on website activity data:
- Page visits to high-impact pages
- Form submissions
- Content downloads
- Multiple site visits
Impact: Without the tracking code, engagement scores remain at zero regardless of actual prospect behavior, rendering lead prioritization ineffective.
4. Form Submission Attribution
When a HubSpot form is submitted on a page without the tracking code:
- The system cannot properly categorize the traffic source
- Previous visitor activity cannot be associated with the new contact
- Attribution reports show increased "Direct Traffic" that should be attributed to other sources
Impact: You lose visibility into which marketing channels are actually driving form submissions, making ROI measurement impossible.
5. Non-HubSpot Forms
The non-HubSpot forms tool is completely dependent on the tracking code. If your forms are built outside of HubSpot (custom HTML forms), submissions will not be sent to HubSpot without the tracking code. At best, it’s needless manual work. At worst, leads aren’t getting into the CRM.
Impact: Form submissions from your website will not create contacts in HubSpot, breaking your entire lead capture process.
Learn more about using non-HubSpot forms
6. Buyer Intent Signals (Professional/Enterprise)
Intent signals monitor when tracked companies research topics relevant to your business. This requires the tracking code to identify corporate visitors and track their page views.
Impact: You won’t receive notifications when high-value prospects are actively researching solutions like yours.
Learn more about intent signals
7. Sales Workspace Guided Actions
The Sales Workspace uses website activity data to prioritize which leads and deals require immediate attention. Without tracking code data, the workspace cannot surface leads showing recent engagement.
Impact: Sales reps lack intelligent prioritization and miss opportunities to engage prospects at peak interest moments.
Learn more about the sales workspace
8. Data Enrichment Context
While data enrichment can function without the tracking code, it loses critical context. Enrichment paired with tracking code data shows not just who a contact is, but also what they're interested in based on pages viewed.
Impact: Reduced ability to personalize outreach and prioritize high-intent prospects.
Learn more about data enrichment
Installation Requirements
The tracking code must be installed on all externally hosted pages (any pages not hosted on HubSpot's platform). HubSpot pages automatically include the tracking code.
Installation location: Before the closing </body> tag on every page.
For WordPress sites (40% of the internet), you can use the HubSpot All-in-One Marketing plugin which automatically installs the tracking code. For other websites, the process is straightforward, as long as you have the appropriate level of access.
Complete installation instructions
Three common excuses, er, objections. And why they’re wrong.
"We don't do marketing, so we don't need website tracking."
Sales Hub relies on website tracking data to identify prospects, understand their interests, and prioritize outreach. This is sales intelligence, not marketing analytics.
"We're concerned about privacy/GDPR compliance."
The tracking code includes consent banner functionality. You can also disable "Intent data access" in Settings > Tracking & Analytics > Tracking Code > Advanced Tracking while still using the tracking code for your own sales intelligence.
Learn more about tracking code data usage
"Our IT team is too busy to install it."
Without the tracking code, you're paying for Sales Hub features that cannot function. The installation is a one-time task that typically takes 15 minutes or less. For WordPress, it's probably two minutes. Heck, in the time it takes to read this blog post, you could have had the tracking code up and running.
Don’t trust, verify.

After installation, you need to verify the tracking code is working:
- Navigate to Settings > Tracking & Analytics > Tracking Code
- Scroll down, and enter your website URL in "Validate your tracking code"
- HubSpot will automatically test for the tracking code and email you results.
Bottom Line
The HubSpot tracking code is not optional for Sales Hub Pro subscribers. Without it, you lose:
- Anonymous visitor identification
- Contact activity history for imported/manual contacts
- Lead scoring accuracy
- Form submission attribution
- Non-HubSpot form capture
- Buyer intent signals
- Intelligent sales prioritization
These aren’t Marketing features, they’re core Sales Hub capabilities. That’s why installing the HubSpot tracking code is essential to achieving the full ROI of your Sales Hub investment.
Have questions about the HubSpot Tracking Code, or about Sales Hub in general? Post it on our LinkedIn page.
Need more help with HubSpot? Meet with an expert from our team and learn how to customize HubSpot to represent and scale your business.
