Google Analytics is the most widely used web analytics platform that tracks website traffic and user behavior. It provides comprehensive…
Full ReviewA popular free CRM with powerful marketing, sales, and service hubs that scale as your business grows.
Full ReviewHubSpot has a native Google Analytics integration that lets you connect your GA4 property directly within HubSpot's settings. This is not a third-party connector — HubSpot built GA4 support into its platform so both tracking systems can coexist on the same website while sharing relevant data.
The integration serves two primary purposes: ensuring HubSpot's tracking code and GA4's tracking code work correctly alongside each other, and enabling you to combine HubSpot's marketing attribution data with GA4's web analytics for a fuller picture of your funnel.
It is important to understand that HubSpot and Google Analytics track your website traffic independently using their own tracking scripts. HubSpot uses its tracking code (a JavaScript snippet installed on your site), while GA4 uses the Google tag (gtag.js or via Google Tag Manager). The integration does not merge these into a single tracking system — they remain separate, with some data linkage between them.
What the integration does provide:
In HubSpot, navigate to Settings (gear icon in the main navigation), then go to Tracking & Analytics in the left sidebar. Depending on your HubSpot version, this may also appear under Reports, then Tracking Code.
Under the Tracking & Analytics section, look for the Google Analytics integration option. Click to connect and sign in with your Google account that has access to the GA4 property you want to link. Select the GA4 property and data stream that corresponds to the website tracked by HubSpot.
After connecting, make sure both tracking codes are installed on your website:
Confirm both are firing by visiting your site and checking Google Analytics real-time view and HubSpot's traffic analytics to verify active sessions appear in both.
UTM parameters are the most practical way to align HubSpot and GA4 data. When you add UTM parameters to your campaign URLs, both platforms capture them independently:
For consistency, use HubSpot's Tracking URL Builder (found under Marketing, then Ads, then Tracking URLs in some HubSpot versions, or in campaign settings) to generate URLs with standard UTM parameters. This ensures the same UTM values appear in both GA4 and HubSpot reports.
Both HubSpot and GA4 provide traffic analytics, but they measure and report differently. Understanding these differences prevents confusion when numbers do not match exactly (and they will not).
| Aspect | HubSpot Traffic Analytics | Google Analytics 4 |
|---|---|---|
| Tracking method | First-party cookie via HubSpot script | First-party cookie via Google tag |
| Primary focus | Contact-level attribution (who visited) | Session and event-level analytics (what happened) |
| User identity | Ties to known contacts once they submit a form | Anonymous users with client IDs, cross-device via Google Signals |
| Conversion tracking | Form submissions, meetings booked, deals created | Configurable events and key events (formerly goals) |
| Source attribution | Uses original source and latest source models | Uses data-driven attribution or rules-based models |
| Depth of web analytics | Basic page views, sessions, bounce rate | Detailed event tracking, user flows, exploration reports |
In general, use GA4 for detailed web analytics (user behavior, page performance, event tracking, custom explorations) and HubSpot for marketing attribution (which campaigns generated contacts, which sources drive pipeline, revenue attribution).
HubSpot's standard reporting covers marketing, sales, and service metrics from HubSpot's own data. For teams that want to pull GA4 data into HubSpot dashboards alongside CRM data, the HubSpot Custom Report Builder (available on Professional and Enterprise plans) provides some cross-referencing capabilities.
However, if you need truly combined reporting that merges GA4 session data with HubSpot CRM data in a single view, you will likely need one of these approaches:
These platforms can help you connect Google Analytics and HubSpot CRM without writing code:
Compare Google Analytics vs HubSpot CRM side by side »