Gifts

Culture

Reviews

Local Spots

How to Setup HubSpot CRM with Google Analytics (2026 Guide)

HubSpot CRM

HubSpot CRM

★★★★ 4.5
Crm General Crm

A popular free CRM with powerful marketing, sales, and service hubs that scale as your business grows.

Full Review

Google Analytics

Web analytics service for tracking website traffic and user behavior.

All Google Analytics Tools

How to Connect Google Analytics to HubSpot

Connecting Google Analytics to HubSpot combines your website traffic analytics with your CRM and marketing automation data, providing a comprehensive view of how website visitors become leads and customers. While HubSpot has its own built-in analytics, Google Analytics provides deeper traffic analysis, audience insights, and conversion path data. Together, they give you both the macro view of website performance (Google Analytics) and the individual contact-level journey (HubSpot). This integration is essential for marketing teams that need to understand which traffic sources, pages, and campaigns drive the highest quality leads.

Prerequisites

Before connecting Google Analytics to HubSpot, confirm the following:

  • Google Analytics 4 (GA4) property: You need an active Google Analytics 4 property for your website. If you are still using Universal Analytics, note that Google has sunset it. Set up a GA4 property at analytics.google.com if you do not have one.
  • Google Analytics admin access: You need Editor or Admin role access on the GA4 property you want to connect. Check your access level under Admin, then Property Access Management in Google Analytics.
  • HubSpot Marketing Hub: The Google Analytics integration works with all HubSpot tiers, but the depth of integration depends on your plan. Marketing Hub Professional and Enterprise offer the most comprehensive analytics and attribution features.
  • HubSpot Super Admin access: You need account-level permissions in HubSpot to install integrations and configure analytics settings.
  • HubSpot tracking code installed: The HubSpot tracking code should already be installed on your website. This enables HubSpot's own tracking to work alongside Google Analytics. Both tracking codes can run on the same site without conflict.

Step-by-Step Connection Guide

There are two aspects to connecting Google Analytics with HubSpot: installing the GA4 tracking code on HubSpot-hosted pages, and integrating GA4 data with HubSpot for reporting.

Adding GA4 to HubSpot-Hosted Pages

  1. Log in to HubSpot.
  2. Navigate to Settings (gear icon in the top navigation).
  3. In the left sidebar, go to Website, then Tracking and Analytics.
  4. Click the Integrations tab.
  5. Find the Google Analytics section and toggle it on.
  6. Enter your GA4 Measurement ID (starts with G-, found in GA4 under Admin, then Data Streams, then select your stream).
  7. Click Save. HubSpot will now include the GA4 tracking code on all HubSpot-hosted pages (landing pages, blog posts, and website pages hosted on HubSpot).

Connecting GA4 Data to HubSpot via Integration

  1. In HubSpot, navigate to the App Marketplace (Marketplace icon in the top navigation).
  2. Search for Google Analytics.
  3. Click on the official Google Analytics integration.
  4. Click Install App.
  5. Sign in with your Google account that has access to the GA4 property.
  6. Select the GA4 property and data stream you want to connect.
  7. Grant the requested permissions for HubSpot to read your Google Analytics data.
  8. Click Connect. HubSpot will begin pulling in analytics data from GA4.

Configuration and Settings

UTM Parameter Tracking

For the most accurate data between Google Analytics and HubSpot, use UTM parameters on all your marketing campaign URLs. HubSpot reads UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) and stores them on contact records. This allows you to see in HubSpot's CRM which specific campaigns drove each lead. Use Google's Campaign URL Builder or HubSpot's tracking URL builder to generate UTM-tagged URLs consistently.

Cross-Domain Tracking

If your website spans multiple domains (for example, your main site on one domain and HubSpot landing pages on another), configure cross-domain tracking in GA4. Go to GA4 Admin, then Data Streams, then your stream, then Configure Tag Settings, then Configure Your Domains. Add all domains so GA4 tracks visitors seamlessly across them. In HubSpot, ensure the tracking code is installed on all domains as well.

Event Tracking Alignment

Align your GA4 events with HubSpot conversion events. If you track form submissions as events in GA4, make sure the same forms are being tracked in HubSpot. This allows you to compare conversion data between the two platforms and identify discrepancies. Define key conversion events in GA4 (like form submissions, demo requests, purchases) and verify they match what HubSpot is tracking.

Dashboard Configuration

After connecting, set up HubSpot dashboards that display both HubSpot-native analytics and Google Analytics data where available. Create dashboard reports that show traffic sources (GA4), lead generation (HubSpot), and conversion rates (combining both data sources). This gives stakeholders a unified view of marketing performance.

What You Can Do After Setup

  • View Google Analytics data alongside HubSpot CRM data: See website traffic metrics from GA4 in context with lead generation and sales data from HubSpot. Understand not just how much traffic you get, but what that traffic does after it becomes a lead.
  • Track campaigns end-to-end: UTM parameters flow from GA4 into HubSpot contact records, creating a complete picture from ad impression to website visit to lead to customer. Measure the full impact of each campaign.
  • Compare analytics platforms: Use Google Analytics for deep traffic analysis (user behavior, site speed, content performance, acquisition channels) and HubSpot for contact-level insights (which pages did this specific lead visit, what emails did they open, when did they become a customer).
  • Build attribution reports: Combine GA4 traffic source data with HubSpot revenue data to build attribution reports that show which marketing channels drive the most revenue, not just the most traffic.
  • Identify content that drives conversions: Cross-reference GA4 page performance data with HubSpot's form submission and contact creation data to identify which blog posts, landing pages, and content pieces are most effective at generating leads.

Best Practices

  • Use consistent UTM conventions: Establish a UTM naming convention and document it for your team. Use lowercase for all UTM values, use hyphens instead of spaces, and be consistent with source and medium names (for example, always use "facebook" not sometimes "Facebook" and sometimes "fb"). Inconsistent UTM parameters create fragmented data in both GA4 and HubSpot.
  • Install both tracking codes on all pages: Run the HubSpot tracking code and GA4 tracking code on every page of your website, including landing pages, blog posts, and thank-you pages. Both codes should load on every page for complete tracking. They do not conflict with each other.
  • Set up GA4 conversions that match HubSpot goals: Define conversion events in GA4 that correspond to the same actions HubSpot tracks (form submissions, meeting bookings, demo requests). This allows you to validate data between platforms and catch tracking issues early.
  • Use HubSpot for contact-level analytics, GA4 for aggregate analytics: Do not try to replicate all GA4 reporting in HubSpot or vice versa. Use each tool for what it does best. GA4 excels at aggregate traffic analysis, user behavior, and technical performance. HubSpot excels at individual contact journeys, CRM attribution, and marketing automation reporting.
  • Review data monthly for discrepancies: Compare key metrics (sessions, form submissions, lead counts) between GA4 and HubSpot monthly. Small discrepancies are normal due to different tracking methodologies, but large gaps indicate a tracking issue that needs investigation.

Troubleshooting Common Issues

  • GA4 not tracking HubSpot-hosted pages: Verify that you entered the correct GA4 Measurement ID in HubSpot's settings (it starts with G-, not UA-). Check that the toggle is enabled under Settings, then Website, then Tracking and Analytics, then Integrations. View the page source of a HubSpot-hosted page and search for your Measurement ID to confirm the code is present.
  • UTM parameters not appearing on HubSpot contacts: Confirm that the HubSpot tracking code is installed on the landing page where the contact converts. HubSpot reads UTM parameters from the URL when the tracking code is active. If the tracking code is missing on the landing page, UTM data will not be captured. Also check that your UTM parameters are formatted correctly in the URL.
  • Data discrepancies between GA4 and HubSpot: Differences in session counts, page views, and conversion numbers are normal. GA4 and HubSpot use different tracking methodologies, cookie policies, and attribution models. Investigate only if discrepancies exceed 15 to 20 percent, which may indicate a tracking code issue on some pages.
  • Integration connection drops: If the Google Analytics integration in HubSpot stops syncing data, re-authenticate the connection. Go to Settings, then Integrations, then Connected Apps, find Google Analytics, and reconnect with your Google account. This refreshes the OAuth token.
  • Cross-domain tracking not working: If visitors are counted as new sessions when moving between your main site and HubSpot landing pages, your cross-domain tracking configuration needs attention. Verify the domain list in GA4's tag settings and ensure the HubSpot tracking code is using the same GA4 Measurement ID on all domains.

Limitations and Workarounds

  • No GA4 audience sync to HubSpot: You cannot import GA4 audiences or segments directly into HubSpot as contact lists. GA4 audiences are based on anonymous user behavior, while HubSpot lists are based on identified contacts. Workaround: Use UTM parameters and HubSpot's traffic source properties to create HubSpot lists that approximate GA4 segments.
  • Limited real-time data sharing: GA4 data does not flow into HubSpot in real time. There is a delay in data availability, and the depth of GA4 data visible in HubSpot depends on the integration level. Workaround: Use GA4's real-time reports directly for live monitoring and HubSpot for historical analysis and CRM attribution.
  • Different attribution models: GA4 and HubSpot use different default attribution models, which can lead to conflicting credit for conversions. GA4 uses data-driven attribution by default, while HubSpot uses first-touch or last-touch models depending on your settings. Workaround: Align your attribution model settings in both platforms as closely as possible, and understand the differences when comparing reports.
  • No GA4 report embedding in HubSpot: You cannot embed GA4 reports or dashboards directly within HubSpot's dashboard. Each platform maintains its own reporting interface. Workaround: Use Looker Studio (formerly Google Data Studio) to create combined dashboards that pull data from both GA4 and HubSpot for a unified reporting view.
  • Cookie consent impact: Both GA4 and HubSpot tracking are affected by cookie consent regulations and browser privacy features. Users who decline cookies will not be tracked in either system. Workaround: Implement a compliant cookie consent banner and configure GA4's consent mode and HubSpot's cookie consent settings to maximize data capture while respecting user preferences.

HubSpot CRM Full Review » | All Google Analytics Tools »