How Can I Setup Google Analytics for my HubSpot Website?
November 21, 2022 | 5 min read time
Topics: website optimization
Google Analytics is a powerful tool that will allow you to better understand your website traffic. and is beneficial whether you run a large established website, have created a brand new site, or manage a personal blog; it gives you valuable insights so you are able to make data-backed decisions.
While Google Analytics is amazing, However, setting up Google Analytics can be a bit tricky. This post will guide you through setting up Google Analytics for your Hubspot website.
HubSpot is an inbound marketing and sales software that helps companies attract visitors, convert leads, and close customers. It is a cloud-based platform, so all of your data is synced across teams and devices, and updates are instant and automatic.
HubSpot exists to help your whole business function better from the first time a potential customer sees a social media post or blog from you to the emails you send them, to handing them your sales team for their first purchase, to the customer service they receive, and all the way to them promoting your company to their peers.
Google Analytics, or GA, is a free analytics tool that gives you an in-depth look at your website and/or app performance. It integrates with Google’s marketing and advertising platforms and products, including Google Ads, Search Console, and Looker Studio (formerly Google Data Studio), making it a popular choice for anyone using multiple Google tools.
Currently, there are two versions of Google Analytics: Universal Analytics and GA4. Universal Analytics is the version of Google Analytics you have if you set up your GA account prior to October 2020. GA4 is the latest version of Google Analytics and it has a slightly different User Interface (UI) with upgraded reports, tools, and features.
Google announced in March of 2022 that it would be sunsetting the older version of GA by July 1, 2023. Existing data will still be available after that; however, no new data will be collected. This means that all users of GA3 will need to transition to GA4.
While a lot of HubSpot Marketing Hub Professional and Enterprise users rely on HubSpot Analytics reporting instead of using Google Analytics, some insights are easier to get from GA - things like organic search traffic. For Marketing Hub Starter users, GA might be necessary since Starter includes only a standard web analytics dashboard
The first thing you’ll need to do is create a Google Analytics account or sign in to your current account.
Next, you’ll need to set up a HubSpot account if you don’t already have one.
Once you have both of these accounts, you’ll need to follow these steps to connect your accounts:
Now that your accounts are set up and connected, it’s time to configure your GA4 settings.
If you haven’t already, you’ll want to add the name, URL, and industry of the website you want to track in your Google Analytics account. To do this, follow these steps:
Once you’ve created a Property, you’ll then need to add a Data Stream or View to your property.
Note that GA4 no longer uses “Views,” but it instead has “Data Streams” with similar functionality. To add a view to your Universal Analytics account, follow these steps:
Next, you’ll need to add your tracking code directly after the <head> tag of your site. When you create a property, you’ll have access to a unique ID for tracking and a global site tag. Using this code is how you’ll be able to collect data in your property.
Then, paste your global site tag right after the opening <head> tag on each site page you plan on measuring.
It is now time to visit your GA portal to verify your code is working.
To do this, have your website open in one tab on your computer (or even on your phone) and in another tab, look at your Real-Time reports section in GA4. The report should show at least one visitor to the site - and that’s it!
If you want to discover how visitors engage with your website, and which content drives the most engagement and conversions, there are several on-page events and metrics you can track from Google Analytics that will get you started: Sessions and New Sessions It also covers most of the website metrics you need such as visitors, bounce rate, and time on site.
You can do things like:
Google Analytics proves to be a valuable tool for any business. It gives you tangible data that allow you to better understand your website traffic, so you can grow your business.