Last updated: July 27, 2021
You can integrate your HubSpot website and blog content with Google Analytics by adding your Google Analytics Tracking ID in your HubSpot settings.
If your developers have customized your Google Analytics script, or if you only want to add Google Analytics tracking to a specific page or blog, add your Google Analytics tracking code snippet to the site header HTML for your pages or blog.
When you integrate Google Analytics with HubSpot, your Google Analytics account will collect data on the visitors to your HubSpot site.
To integrate Google Analytics with all HubSpot domains or a specific HubSpot domain:
Please note: if you integrate Google Analytics with a specific HubSpot domain, it will override any integration preferences you set as the default settings for all domains.
If your developers have customized your Google Analytics script, to maintain the changes they've made to the code, do not integrate Google Analytics with HubSpot using the tracking ID. Copy your custom Google Analytics tracking code and add it to the the Site header HTML code editor in your settings.
Your legal and developer teams are the best resources to help you ensure that your use of the Google Analytics script on your site is compliant with privacy laws. Learn more about disabling the Google Analytics tag from Google.
Please note: if you add code to the header or footer HTML for a specific domain, it will override any code you've placed in your header and footer HTML for All domains.
If you've already integrated your Google Analytics account with all pages on all domains using the instructions above, your code will be applied to all your HubSpot blogs automatically. Only follow these instructions if you want your code to be applied to a specific blog and not your other HubSpot content.
You can integrate Google Analytics with specific pages from the page editor. This feature is only available in Marketing Hub Professional and Enterprise and CMS Hub Professional and Enterprise accounts.
With HubSpot video, you can upload videos to the files tool, then add them to pages, marketing emails, blog...
Users with publish permissions can control which contacts can access specific HubSpot-hosted pages, blogs and...
Smart content modules display different versions of your content based on viewer category. For example, you...