Last updated: October 14, 2021
When you integrate Google Analytics with HubSpot, your Google Analytics account will collect data on the visitors to your HubSpot site.
If you are using the Universal Analytics version of Google Analytics, you can integrate it with HubSpot-hosted content by adding a Google Analytics Tracking ID to your HubSpot settings.
If you are using Google Analytics 4 or a customized Google Analytics script, you can add your Google Analytics tracking code snippet to the site header HTML for your domain. You can also use this method to track only a specific blog or page.
With the Universal Analytics version of Google Analytics, you can add a Tracking ID directly to your HubSpot settings to track visitors in Google Analytics. This will track all pages hosted on a single domain. You can repeat this process for additional domains, or add the Tracking ID to your default settings for all domains.
To integrate Google Analytics with one or all domains hosted in HubSpot:
If you are using Google Analytics 4, 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 Tracking 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:
Learn how to export HubSpot content and data from your account, such as pages, contacts, and files. Please...
Learn how to create a new page, optimize it for search engines, and publish it on your website. You can use a...
Users with publish permissions can control which contacts can access specific HubSpot-hosted pages, blogs and...