How to Set Up Google Analytics 4 On Your Website

Home » Help » Getting traffic » How to Set Up Google Analytics 4 On Your Website

In another article, we shared why using web analytics is so important for your website – it helps you expand your online presence and make better decisions for your website and the growth of your business.

If you are not sure what web analytics is and why it is important, then make sure to read our comprehensive articles before proceeding with this one:

As it comes to this article, you will read how to set up the most popular web analytics tool on your website – Google Analytics 4.

Google Analytics 4, abbreviated as GA4, is an advanced platform that grants you numerous tools and metrics to make comprehensive analyses of the performance of your website.

Not only GA4 is one of the best web analytics platforms out there, but it also comes with a feature-rich free version.

In the next paragraphs, you will read how to set up a GA4 account and how you can connect your website with the analytics system itself.

Read also:

 

How to Set Up Google Analytics 4 On Your Website

The GA4 setup is not hard and requires only a few minutes to be completed.

In short, the process is comprised of:

  1. Creating a GA4 account
  2. Connecting the GA4 account with your website (Creating a property)

In the following sections, you will read how to deal with each step in full detail.

 

Create a Google Analytics 4 Account

The first step in the process of setting up GA4 is to create an account.

To do so, first head to Google Analytics website.

It should look like this:

Google Analytics 4 Homepage

 

On this page, click the blue Start measuring button at the center of the page:

Google Analytics 4 Account Setup

 

Once you click the button, you will be asked to add information that is needed for your new GA4 account:

GA4 Account Setup Information

 

Once you add the required details, click on the blue Next button, located at the bottom left of the page:

GA4 Account Setup Steps

 

Now follow the instructions and add all the needed details for each step of the setup process. You will be asked about the property name (the name of your website), some business details, industry niche, and others.

Follow the steps and once you stumble upon the Data collection tab, choose Web, as you are setting up GA4 to gather information from your website:Google Analytics 4 Website Data

 

Once you click on Web, you will be asked to add your website URL and give it a stream name. You will also be asked to choose what kind of data will be measured – page views, scrolls, clicks, and others:

Google Analytics 4 Website Data Metrics

 

Once you fill in the credentials, click on the blue Create stream button, so you finish the account setup:

Google Analytics 4 Website Create Stream

 

Once you click the button, a new tab with options will appear:

Google Analytics 4 Website Web Stream Details

 

Once you see it, you have managed to set up your Google Analytics account, and the system already prompts you to make the connection between this account and your website.

Let’s see how this is done in the next section.

 

Create a Google Analytics 4 Property

Now that you have finished your GA4 account setup, and the web stream details tab is opened, you should connect your account with your website.

The idea behind this step is to make sure that GA4 gathers information exactly from your website, and not any other.

This connection is possible by placing a special string of code within your site, called a GA4 tag. It helps Google Analytics recognize your website and gather information easily.

Let’s see how that happens:

while the Web stream details tab is opened (check the previous step to see how to open it), have a closer look at it:

Google Analytics 4 Website Web Stream Instructions

 

This tab contains all the setup options that you need to make the proper connection between your GA4 account and your site.

Don’t worry if what you see looks complex – we will help you go through the remaining steps of the process without any difficulty.

The first thing you should pay attention to is the View tag instructions button at the top of the tab:

Google Analytics 4 Website Web Stream Instructions

 

Clicking this button will open a new tab that contains the unique code you should place on your website, to establish the connection between GA4 and your website:

Google Analytics 4 Website GA4 Tag

 

As the tab suggests, you can either place this code on your website manually or use any of the suggested website builders and CMS platforms:

Google Analytics 4 GA4 tag installation

 

Now, depending on how you built your website, there are several approaches you can use to add this code to your pages.

 

For HTML, CSS, and JavaScript-based Websites:

Choose Install manually and copy the GA4 tag:

Google Analytics 4 copy GA4 tag

 

After that, access your website’s HTML code with your preferred editor and add the code right below the <head> element:

Google Analytics 4 insert GA4 tag to HTML code

 

The result should look like this:

Google Analytics 4 GA4 tag in HTML

 

Now, save the changes.

 

For WordPress-based websites:

The fastest way to add the GA4 tag to your WordPress website is by using a plugin that allows you to add code snippets to your pages. One such is Code Snippets.

Install and activate the plugin (or use another similar one).

Then, add the GA4 tag right below the <body> element apply the changes, and make sure to activate the snippet:

Google Analytics 4 insert GA4 code to WordPress

 

If you are using any other site builder or CMS platforms:

from the Installation instructions tab, click on Install with a website builder or CMS tab, and click the blue Select your platform:

Google Analytics 4 install GA4 tag to CMS and site builders

Once you click the button, a new list with site builders and CMS platforms will appear:

 

Google Analytics 4 install GA4 tag to CMS and site builders

From this list click on the CMS or builder you are using and follow the steps to complete the GA4 installation.

Once you have placed the GA4 tag on your website, regardless of the method you are using, data flow should be available. To see whether this is the case, within the instructions tab, locate the Test Your Site field, add your domain name, and click on Test:

Google Analytics 4 test data flow

 

Now you have managed to connect Google Analytics 4 to your website.

In the following article, you will read how to navigate through Google Analytics 4.

 

Conclusion

Connecting Google Analytics 4 is very easy – only with several minutes and a few clicks here and there you can connect one of the most advanced web analytics systems to your website.

Check also:

Was this post helpful?

i

Relevant tags:

Connect

Latest posts:

How to Remove a Product in OpenCart

After installing OpenCart and logging in to the dashboard, you can start adding and removing products immediately. We have already covered how to add products in OpenCart, and in this article, we share simple steps to delete products from your store with only a few...

How to Add Products in OpenCart

The most important element in your OpenCart project is the products you will offer your site visitors. In the following paragraphs, we share how to add products to your OpenCart website.   How to Create Products in Opencart The process of adding new products in...

How to Log in to OpenCart

After you install OpenCart, you can log in to the platform and start working on your project right away. To log in, you should open the OpenCart login page and enter the credentials you chose when installing the CMS. This will open the platform’s admin panel. In the...

How to Install OpenCart

You can install OpenCart on every AwardSpace web hosting plan, including our free web hosting, shared hosting, and advanced AwardSpace services such as Semi-Dedicated Hosting and VPS hosting. Keep in mind that all of the AwardSpace hosting services are tailored to run...

How to Change My Last Name in Moodle

If you are asking yourself "How to change my last name in Moodle", then you are at the right place. This guide will walk you through the steps for changing your last name in Moodle while addressing common concerns like ratings and discussions.   How to Change My...



Create a website for free!


Free forever

Our Support Team is Here to Help

 

If you need any questions answered, don't hesitate and contact us. Click the button below and follow the instructions. You can expect an answer within an hour.

 

Contact AwardSpace

 

iNewest knowledge base articles

How to Remove a Product in OpenCart

After installing OpenCart and logging in to the dashboard, you can start adding and removing products immediately. We have already covered how to add products in OpenCart, and in this article, we share simple steps to delete products from your store with only a few...

How to Add Products in OpenCart

The most important element in your OpenCart project is the products you will offer your site visitors. In the following paragraphs, we share how to add products to your OpenCart website.   How to Create Products in Opencart The process of adding new products in...

How to Log in to OpenCart

After you install OpenCart, you can log in to the platform and start working on your project right away. To log in, you should open the OpenCart login page and enter the credentials you chose when installing the CMS. This will open the platform’s admin panel. In the...

How to Install OpenCart

You can install OpenCart on every AwardSpace web hosting plan, including our free web hosting, shared hosting, and advanced AwardSpace services such as Semi-Dedicated Hosting and VPS hosting. Keep in mind that all of the AwardSpace hosting services are tailored to run...

How to Change My Last Name in Moodle

If you are asking yourself "How to change my last name in Moodle", then you are at the right place. This guide will walk you through the steps for changing your last name in Moodle while addressing common concerns like ratings and discussions.   How to Change My...

How to Change Your Name in Moodle

Changing your name in Moodle is a very simple task and requires only a few minutes of your time.   How to Change My Name in Moodle The process is comprised of a few easy-to-follow steps:   Step 1: Log in to Moodle After installing the CMS, you should log in...

Even more web tutorials

Check out our web hosting knowledge base and the WordPress tutorials to learn more, and be better prepared for your website creation and maintenance journey.