How to Install Google Analytics in 2021 (GA4 + UA)

How to Install Google Annalytics (UA + GA4)

Google Analytics has been the default measurement software for more than half of the world’s most visited websites, according to recent studies.

That’s over 25 billion websites, if you were wondering.

advertisement

Peter Sondergaard even stated that “Information is the oil of the 21st century, and analytics is the combustion engine.” – so those numbers aren’t surprising.

The best of it all? Google Analytics is 100% free.

In this article we’ll cover how to install Google Analytics with one of our favorite tools: Google Tag Manager.

If you’re not familiar with Google Tag Manager, we recommend you read these two articles first.

Ready?

Why You Need Google Analytics

With dozens of built-in reports, Google Analytics gives you the ability to truly know and understand your customers.

  • How Users Find Your Website: see which channels drive the most valuable users to your website, and how they find you.
  • Your Most Valuable Pages: which pages are driving the most revenue for your business? Which ones need to be improved?
  • Measure Conversions: how many users have filled out a form? Or completed a purchase?
  • How Users Navigate Your Website: understand how users move through your website. From the entrance page to the pages they visited before converting, it’s important to understand which areas can be improved.

There are countless other reasons to use Google Analytics but we’ll leave those for another post.

Before You Proceed

As of the 14th of October 2020, Google has officially made Google Analytics 4 the default property type for new accounts, and will eventually replace Google’s current version of Universal Analytics.

However, you can still use the older version. In fact, Google itself still recommends users to run both Universal Analytics and GA4 in parallel. In other words, this means that you’ll need to install two different versions of Google Analytics.

As such, we’ll cover the installation process for these two property types: Universal Analytics and Google Analytics 4.

As to which one you should use more often, we’ll leave it up to you. In any case, we believe Google Analytics 4 is still in a very early-stage, for which reason we’ll stick to Universal Analytics, at least while we get familiar with it.

For more information on the differences between these two versions, we recommend Ken Williams’ website.

If none of that has scared you away, let’s jump in.

Getting Started With Google Analytics

The installation process shouldn’t take more than 10 minutes but before we can start, there are some things you’ll need.

To install Google Analytics 4 or Universal Analytics, you’ll need to:

  1. Create a Google Analytics Account: accounts are your access point to Google Analytics. Each account can contain different properties, depending on how many websites or applications you want to track.
  2. Create Your Properties: a property is a website, mobile application, or device. In the older version of Google Analytics (Universal), properties could only collect data from websites. The new Google Analytics 4 can collect data from websites and mobile applications.
    1. Create Your Data Stream (GA4 only): a data stream is a data source – and each property can contain different data sources. For instance, you can connect a website and an app (two data streams) within the same property.
  3. Install Google Analytics: once the steps above are completed, you’ll need to add a bit of code to your website to complete the installation.

For more information on account hierarchy, we recommend you read this post.

Create Your Google Analytics Account

To create an account, head on over to Google Analytics and click on the “Start For Free” button.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/70ae6f26-0ecc-4435-9355-f201a8fbaab4/Untitled.png

To set up your account, the first thing you will need to input is your Account Name.

Next, review the “Account Data Sharing Settings”. This segment lets you control how much of your data you’re willing to share with other Google applications.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/60a98048-f698-4c4d-9703-4d150a5d7ed9/Untitled.png

Create Your Google Analytics Properties

To create a Google Analytics 4 property, you can type in your website name, select the reporting time zone, and currency – and then click on the “Show Advanced Options” button to create a Universal Analytics property, too.

In the advanced options menu, enable the “Create a Universal Analytics Property” feature and fill in the website URL field.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/81cccc64-e388-4716-b3a4-1c653aa3dd4c/Untitled.png

You’ve just created two different properties within one Google Analytics account: one Google Analytics 4 property, and one Universal Analytics property.

To finish, fill in the details in the “Business Information” tab and hit “Create”.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a5200b02-2aef-4cb7-873b-ee7950d5fe18/Untitled.png

Once that’s done, read and accept Google’s Terms of Service Agreement. You’re almost there!

Create Your Data Stream

As mentioned in the introduction of this article, Google Analytics 4 properties use data streams **to collect data from websites, and mobile apps.

To create a data stream and connect your website to Google Analytics, select “Web”.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d75e8ab8-7cb9-4973-8418-23d01d06c2fa/Untitled.png

Once you’ve clicked on the “Web” option, type in your website’s URL and name in the respective fields, and click on “Create Stream”.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/046607d7-39eb-4045-88ae-6f707c4bf9d4/Untitled.png

How to Install Google Analytics

Now that the data stream has been created, you’ll need to install it on your website in order to collect data.

Luckily, Google has made it very easy to install Google Analytics with Google Tag Manager. Here’s what you’ll need to do.

advertisement

Google Analytics 4

To connect a Google Analytics 4 data stream to your website via Google Tag Manager, you’ll need to locate the measurement ID. You’ll use the it later within Google Tag Manager.

To access this measurement ID, as soon as the data stream was created, the “Web Stream Details” window should’ve opened.

In the “Tagging Instructions” section, click on “Use Exiting On-Page Tag”.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/43e6eeb3-426e-423d-be95-a5a4f139d8ec/Untitled.png

Then, locate the measurement ID in the on-screen instructions, as in the image below.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/19289b88-9e03-404f-975e-7825c4fd9b0f/Untitled.png

You can also access the measurement ID in the “Setup Assistant” within the admin section, as shown in the video below.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fa54a866-ca12-4392-a57d-b4ba70f1a0fc/ezgif-7-71dd99c32d9d.gif

To install Google Analytics, head on over to Google Tag Manager and click on the “New Tag” button.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/cf3ce172-677d-4a62-90bd-b6acb9631405/Untitled.png

Click on the “Tag Configuration” section and select the “Google Analytics: GA4 Configuration” option, in the right sidebar.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9e413a6f-8b4e-4532-b3f1-fb101007a869/Untitled.png

Paste the measurement ID in the correct field, and add an “All Pages” trigger.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b0fcd995-1211-45b8-bb42-56eed2ed571c/Untitled.png

Click save. You’re done!

Universal Analytics

To install the older version of Google Analytics on your website, you’ll need to locate the tracking ID and paste it into Google Tag Manager. The process is identical to the one for Google Analytics 4.

Access your Google Analytics’ account admin section and, under the “+Create Property” button, click on the small arrow drop-down.

Then, locate the Google Analytics property for Universal Analytics. You can identify this property via the “UA-XXXXXXXX-X” identifier.

In fact, this is the tracking ID you’ll need to install Google Analytics via Google Tag Manager. You could also access this code under the “Tracking Info” section, as in the image below.

Once you’ve located the tracking ID, head on over to Google Tag Manager and create a new tag.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/201bf915-d2d8-4c09-bb25-70fd6c4bd2f6/Untitled.png

Select the “Google Analytics: Universal Analytics” option, and paste the ID in the correct field. Add an “All Pages” trigger, and hit save.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e4f3aec7-57b5-46f0-af7a-484bbc025d98/Untitled.png

Once you’re done, click on the “Submit” button on Google Tag Manager.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/14f20f27-82ce-49b4-85f7-70ffb720503b/Untitled.png

You’re all set!

How to Check if Google Analytics is Working

Once you’ve completed all the steps above, you’ll want to make sure the installation was successful.

To do so, you can use Google Analytics’ real-time reports. Here’s how you can do that.

Google Analytics Real-Time Reports

Google Analytics has a built-in report that allows you to track users in real-time on your website. This is a useful feature to ensure the installation has been successful.

To access this report, in Google Analytics’ sidebar menu to the left, click on “Overview” under “Real-Time”, as in the image below.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/add6e069-d4b2-470e-8ae6-ef86c731504a/Untitled.png

Once you’ve accessed this report, open your website in an incognito browser. If you see user activity in the report, the installation was successful.

The real-time report is available both in Google Analytics 4 and Universal Analytics. You’ll need to check on both properties to ensure a correct installation.

advertisement

What’s Next?

With the most recent introduction of Google Analytics 4 properties, we can expect a lot of changes in the next year.

In fact, Google Analytics 4 shouldn’t be considered as a new version of Google Analytics, but rather an entirely different product. In the meantime, we recommend users to use both while Google rolls out its newest features for GA4.

We hope that this article has made it clear and easy for you to install Google Analytics.

If you had any trouble with the installation, feel free to reach out to us via DM on Twitter, or shoot us an email at info@theconversionlift.com

Don’t forget to subscribe to our newsletter for the latest trends and guides on digital marketing!

2 comments
Leave a Reply

Your email address will not be published. Required fields are marked *

I accept the Terms and Conditions and the Privacy Policy

You May Also Like