Last updated: June 28, 2022
|All products and plans|
When you integrate Google Analytics with HubSpot, your Google Analytics account will collect data on the visitors to your HubSpot site. There are two ways to integrate Google Analytics with HubSpot:
Please note: starting July 1 2023, Google is replacing Universal Analytics with Google Analytics 4. To avoid losing data synced to HubSpot, you'll need to switch to Google Analytics 4 prior to the change.
You can add a Tracking ID directly to your HubSpot settings to track visitors in Google Analytics. You can either integrate Google Analytics with individual domains, or integrate it with all domains.
To integrate Google Analytics with one or all domains hosted in HubSpot:
You can add the Google Analytics tracking code to the header HTML of your domains in settings. This is also recommended if you are using a customized Google Analytics script.
If you've added a Measurement ID or the Google Analytics tracking code to a domain, any blog hosted on that domain will be tracked automatically. To track a single blog, rather than all content on a domain, you can add the Google Analytics tracking code to the blog's header HTML.
To track a single page, rather than all content on a domain, you can add the Google Analytics tracking code to the page's header HTML. This feature is only available in Marketing Hub Professional and Enterprise and CMS Hub accounts.
Navigate to your content:
Thank you for your feedback, it means a lot to us.
Smart content modules display different versions of your content based on viewer category. For example, you...
Users with publish permissions can control which contacts can access specific HubSpot-hosted pages, blogs and...
In HubSpot, you can create website and landing pages for your website. You can customize page content and...