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 Find Modules in MediaWiki

After you install MediaWiki, log in to the CMS, and presumably install extensions, it is time to learn how to find modules in MediaWiki.   What are MediaWiki Modules Modules in MediaWiki are Lua-based scripts that allow you to add various functionalities to your...

How to Fix MediaWiki Internal Error: A Step-By-Step Guide

MediaWiki Internal Error message can be very frustrating and can significantly harm your MediaWiki project. Luckily, the issue can be fixed in a few easy-to-follow steps to get your website up and running in no time. There are various causes for the issue: Incorrect...

How to Add Infobox Module in MediaWiki

The Infobox in MediaWiki is a handy tool for presenting content and key information in a structured and visually pleasing way. Infoboxes are useful for any kind of MediaWiki project and can provide your readers with a quick snapshot of important data and details. In...

How to Install a MediaWiki Skin

In MediaWiki, skins determine the visual appearance of your wiki website. Skins define how content is presented to users and include such settings for the overall website layout, typography, color scheme, and more. By default, when you install MediaWiki, the platform...

How to Create a Page in MediaWiki

Creating pages in MediaWiki is а core feature that allows you to add content to your MediaWiki website. Whether you are adding details for a project, contributing to a knowledge base, or anything else, learning how to create a page in MediaWiki is crucial for your...



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 Find Modules in MediaWiki

After you install MediaWiki, log in to the CMS, and presumably install extensions, it is time to learn how to find modules in MediaWiki.   What are MediaWiki Modules Modules in MediaWiki are Lua-based scripts that allow you to add various functionalities to your...

How to Fix MediaWiki Internal Error: A Step-By-Step Guide

MediaWiki Internal Error message can be very frustrating and can significantly harm your MediaWiki project. Luckily, the issue can be fixed in a few easy-to-follow steps to get your website up and running in no time. There are various causes for the issue: Incorrect...

How to Add Infobox Module in MediaWiki

The Infobox in MediaWiki is a handy tool for presenting content and key information in a structured and visually pleasing way. Infoboxes are useful for any kind of MediaWiki project and can provide your readers with a quick snapshot of important data and details. In...

How to Install a MediaWiki Skin

In MediaWiki, skins determine the visual appearance of your wiki website. Skins define how content is presented to users and include such settings for the overall website layout, typography, color scheme, and more. By default, when you install MediaWiki, the platform...

How to Create a Page in MediaWiki

Creating pages in MediaWiki is а core feature that allows you to add content to your MediaWiki website. Whether you are adding details for a project, contributing to a knowledge base, or anything else, learning how to create a page in MediaWiki is crucial for your...

How to Install MediaWiki Extensions

Now that you have installed MediaWiki and learned how to log in to the CMS, it is time to extend MediaWiki's functionality via extensions. MediaWiki extensions are sets of files that add various types of functionality to your MediaWiki website. You can use extensions...

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.