In order to start tracking your analytics with Google, you will have to create a ‘stream’.
Specifically called a ‘web data stream
’, it’s what will collect data from your website, or app.
You can then see this data on Google Analytics.
Google Analytics 4 streams released in October 2020, so they are new for both beginner and expert webmasters.
Let’s get into creating and using a Google Analytics 4 stream.
What you’ll learn:
- How to create a Google Analytics 4 account
- How to create a Google Analytics 4 property
- How to create a Google Analytics 4 web data stream
- How to get your Google Analytics Measurement ID
- How to set up Google Analytics on Ninth Digital
- How to set up Google Analytics on your own website
Creating a Google Analytics 4 account
The first step when setting up Google Analytics is to create an account.
An account is a collection of properties. Depending on your setup, you probably only need one account for all of your properties.
In order to start this process, you need to be signed into both Google and Analytics
Next, click ‘Admin’. It will be located in the bottom-left corner of the page. It can also be indicated by the
Once on the Admin page, you will see a button that says ‘Create Account’. Click it.
Fill out the required information, such as Account name, and whether or not you want to share your data with Google.
When you’ve completed that, you’re ready to create a property.
Creating a Google Analytics 4 property
If you just created a Google Analytics account, the next step in the form is to create a property.
If you already had an account, you can create a property from the Admin page by clicking ‘Create Property’.
Here you will name your property and fill out some extra details like your currency and time zone.
There is an option to ‘Create a Universal Analytics property’, but we are going to ignore this. This is how you would use the old Google Analytics. We are going to stick with 4.
Click ‘Next’, and fill the details out on this page. It’ll be all about your business, number of employees, your industry, etc...
Once you are done, hit ‘Create’, accept the terms, and it’s time to set up the data stream.
Creating a Google Analytics 4 data stream
After completing the property form, Google will automatically want you to set up a data stream.
If you already had a property, from the Admin page, underneath your property, click ‘Data Streams’. Perfect.
We are going to choose ‘Web’ for a website.
We should be looking at a form to set up our web stream.
Fill out your website’s URL (for example, ours is - https://www.ninth.digital
), as well as your stream’s name.
Note: If you only have one website, you can use the same name for your account, property, and data stream.
When you are ready, click ‘Create Stream’.
Getting your Google Analytics Measurement ID
Now, we should be looking at the ‘Stream details’ page.
Here you will find everything you need to start collecting your website’s data, as well as other details, like your Stream URL, Stream Name, Measurement ID, status, what you are measuring, setup instructions, and other settings.
The Measurement ID
is what we are interested in. It’s how Google verifies which website to stream the data from.
You can find the Measurement ID in the top-right corner on the Stream details page. It should start with ‘G-’. Copy the ID by clicking ‘Copy’ or using whatever method you prefer.
Once you’ve got the ID, you’re ready to add Google Analytics to your website.
Adding Google Analytics your Ninth Digital Website
If you are using a Ninth Digital Website
, you will start on the Settings page.
Under the ‘Details’ tab, click ‘Extras’.
You will see a spot on the form for ‘Google Analytics’. This is where you will enter your Measurement ID.
Once you’ve entered your ID, click ‘Update settings’.
Your Ninth Digital Website automatically takes care of all the backend stuff for you, so you’re now ready to track statistics and data with Google Analytics 4.
Adding Google Analytics to your own website
On the Stream details page, you will see a section labeled ‘Tagging Instructions.
Under ‘Add new on-page tag’, click ‘Global Site Tag (gtag.js).
This snippet of code is what we need to copy and paste into the <head>
on each page you want to track.
Something like this will work:
<!-- Global site tag (gtag.js) - Google Analytics -->
...your Google Analytics code here...
... ... ...
... ... ...
... ... ...
You just have to make sure that code is on every single page that you want to track.
There are only a few things you need to do before getting set up on Google Analytics.
First, you need to create a Google Analytics account.
Then, you create a property for your website.
Next, you can create a stream and view the data on your Google Analytics dashboard.
Lastly, you just need to get the code on your website.
Okay, you’re ready to start tracking your statistics!