Home » How to Setup Google Analytics 4?: GA4 Setup Assistant

How to Setup Google Analytics 4?: GA4 Setup Assistant

Table of Content:

Google Analytics is an analytical and reporting tool for SEO experts and online marketers. Google offers this service for free to anyone that has a Google Account. But, it’s only helpful for those who have their website. Google Analytics helps in tracking a website’s performance and collecting website insights.

Marketers can use Google Analytics to understand the source of traffic, understand how the marketing campaigns are performing, and more. All in all, Google Analytics helps in getting access to every possible insight about a website.

In this article, we’ll be sharing all the necessary information about Google Analytics and the latest update on Google Analytics 4.

Why Use Google Analytics?

Google Analytics collects user data from every visitor that comes onto the website. Google Analytics works by adding a javascript tag to the code of every page. The tag runs in every web browser, it collects data and shares it with Google’s servers.

Using this data, Google Analytics creates custom reports that help in understanding data a bit better. The custom reports include a series of data, such as:

  • Number of users
  • Bounce rates
  • Average session durations
  • Sessions by channel
  • Page views
  • Goal completion, and more.

How to Set up Google Analytics 4?

Now coming back to how to use Google analytics:

  • First, you’ll need to sign up for a Google account. To do so, you need to visit Google.com/analytics.
  • Tap on the sign-in button or create an account button on the left corner. Provide the needed information and then click on Get Tracking ID to complete the process.

If you don’t know how to set up Google Analytics on your website, then the process is pretty simple. To set up Google Analytics on your device, you need a script or a tracking code. Through that code, you’ll be taken straight to the Tracking Code section after you finish setting up your account.

You need to add a tracking code on every page of the website you want to track. You can do this in multiple ways:

  • Copy and paste the code straight to the website template.
  • Create an “analyticstracking.php” file with your code and add <?php include_once(“analyticstracking.php”) ?> after your template’s <body> tag.
  • Go to your website hosting provider, website builder tool, or blog platform for Google Analytics integration. Most will offer plug-ins to integrate analytics into your website. Website builders such as Blogger and Squarespace just need your Google Analytics web property ID or account number.

Benefits of Google Analytics 4

Google Analytics is highly useful for websites as it provides much-needed insights. Without proper analytics, and reporting website owners can’t know what is working and what isn’t. Here are  all the benefits of using Google Analytics:

  • Track user  traffic
  • Helps in understanding user behavior
  • Offline to online tracking
  • Data reporting and customization
  • Helps in improving marketing campaigns based on powerful marketing analytics tools
  • Improve SEO and Content Marketing with Analytics
  • It Helps website owners understand and find an ideal target audience
  • Google Analytics cost
  • Easy to set up and get website insights
  • Provides new ideas for business
  • eCommerce performance tracking

What is Google Analytics 4?

If you don’t know it already, then Google Analytics Universal (the traditional version of Google Analytics) will stop processing new data on July 1, 2023. From July 1, Google Analytics 4 or GA4 will be the only Google tool available to track website activity.

Also Read:  Why Should You Use Bootstrap UI Kits In Your Design Process?

Google Analytics 4 is built to provide more data throughout the user lifecycle. This simply means that more and more data is available after you acquire a new customer. This data includes the level of engagement, monetization, and customer retention.

Previously, Google Analytics 4 was known as “App+Web” and its beta version came out in October 2022. This new version was set in place due to new changes in online policies and recent customer behavior changes. These sudden changes led to the birth of Google Analytics 4 as the Universal version just couldn’t provide a complete view of customer journey data.

How Does Google Analytics 4 Work?

To solve the issue of a limited view of customer data, Google came out with GA4. At its core, Google Analytics offers a machine learning-based approach to cross-platform insights and a privacy-focused approach.

According to information put out by Google “It has machine learning at its core to surface helpful insights automatically and gives you a complete understanding of your customers across devices and platforms. It’s privacy-centric by design, so you can rely on Analytics even as industry changes like restrictions on cookies and identifiers create gaps in your data.”

While there are other AI-based insight tools in the industries, Google Analytics 4 provides a better view of the information.

Difference Between Google Analytics 4 vs Universal Analytics

If you’re looking for a reason to switch to Google Analytics 4, then here are several of them.

  • Deeper Integration with Google Ads

One of the biggest changes brought forth with the introduction of GA4 is a tool that measures app and web integrations.

Moreover, this particular integration allows you to check in app and web information for Google Ads, YouTube Ads, non-Google advertisement channels such as Facebook, and organic channels such as social, and email.

The integration allows you to better understand the impact of the amount you’ve spent on paid ads.

  • Customer-Focused Analytics

Google Analytics 4 provides a more customer-centric approach to keeping track of the customer’s journey. More than often, it contains multiple devices and platforms. This helps users understand where the customers are coming from, and what actions are they taking when they land on the website.

  • Better Reporting

When it comes to reporting, Google Analytics 4 offers better and more simplified reports to track customers. The newly added “Life Cycle” section includes reporting for:

  • Acquisition
  • Engagement
  • Monetization
  • Retention

Google Analytics previously only offered reports on customer acquisition, so the new sections provide much better insights.

  • Better Data Controls

Google Analytics 4 is designed to keep up with changes in the new privacy landscape. It provides more controls on

  • Data collection
  • Data analysis
  • Customer retention data

The new Google Analytics platform will use more data modeling to provide better insights into customer journeys.

How to Create New Google Analytics Account and GA4 Property?

If your website is completely new and you don’t have an analytics account, you’ll need to make one. when you start building an account, Google will start building Google Analytics 4 for the website. As Google Universal is about to shut down in a couple of months, Google wants users to familiarize themselves with the GA4.

Here’s the step-by-step breakdown of how to create a new Google Analytics Account, and set up GA4 Property.

  1. Login to your Google account and visit the Google Analytics website.
  2. Click on the “Start Measuring” button.
Also Read:  Windows 11 Backup- Backup and Restore Data on Windows 11

what is google analytics
  1. Add the name of your account. Usually, it’s the name of your business. Once, you’ve added the name, click on the “Next” button.
  2. Add your website name (Property Name) and add information in the fields named “Reporting Time Zone” and “Currency”.
google analytics property setup

5. To set up a Universal Analytics property alongside the GA4 Analytics property, go to “Show Advanced Options.”

why use google analytics 4
  1. Once you click on it, you’ll see a button that’s turned off. Turn on the toggle. Watch the image below for reference.
set up google universal property
  1. In this step, add your website URL in the respective field, and click on the option to create either GA4 and Universal or just set up Google Analytics Universal. Once, you’ve updated the information, click on the “Next” button.
  2. Add the required details about your business by clicking on the categories that your business falls in. You’ll be asked industry of your business, your business size, and what’s your purpose for using Google Analytics for your business.
how to set up google analytics 4

Now that you’ve added all information, you need to click on the “Create” button at the bottom of the screen.

  1. Click on the checkmark to accept Google’s terms and conditions for Data Processing and Measurement Controller-Controller Data Protection Terms of the data.
google analytics terms of service agreement

At the bottom of your screen, you’ll see the “I Accept” button, click on it.

  1. Once you accept the terms, you’ll land on the “Web Stream Details” page, in this page, you’ll be able to find the Measurement ID. You’ll have to add this ID to your website to start tracking the performance of your website.

If you’ve followed all these steps, then congratulations, you’ve now made your GA4 and Google Analytics Universal accounts.

Steps to Migrate to Google Analytics 4 from Google Analytics Universal

Let’s say you have already set up Google Analytics Universal, and you want to set up Google Analytics 4, what will you do? Well, all you have to do is follow these steps.

  1. Click on “Admin” in your Google Universal Property.
benefits of google analytics
  1. Under the property section, click on “GA4 Setup Assistant”.
  2. You’ll now be redirected to the “Google Analytics 4 Property Setup Assistant” page. Click on the “Get Started” button. It would look something like this.
GA4 property setup assistant
  1. As soon as you click on the “Get Started” button, a pop-up will open on your screen. On this popup, click on “Create Property.”
how to create ga4 property
  1. After that, you’ll be taken to a new page where you can see the connected property message with the property ID.
upgrade google analytics to ga4

Now, click on “See your GA4 Property”  which will lead you to the “Setup Assistant” screen. Click on “Data Streams” page.

GA4 data streams
  1. When you’re in the “Data Stream” section, again click on the (>) on the right bottom of your screen. You’ll land on the “Web Stream Details” page.
what is the difference between google analytics 4 and universal analytics
  1. On the “Web Stream Details” page, go to the “Measurement ID” for GA4. You’ll find this property in the top right corner.
google analytics universal vs google analytics 4

That’s all it takes to upgrade your Google Analytics Universal to Google Analytics 4.

Steps to Add GA4 Tracking Code to the Website Without Google Tag Manager

Basically, there are 3 ways you add the GA4 tracking code to your website if you don’t want to use the Google Tag Manager. These options include:

  1. Connect Measurement ID to existing Universal Analytics account via Universal Analytics.
  2. Add a new “Config” directive in your existing code.
  3. Copy and paste the GA4 tracking code script inside the <head> tag.
Also Read:  The Importance of Authenticity in Content Creation

Connect Measurement ID to Existing Universal Analytics

It’s easy to add the measurement ID to your website if you have an existing universal account. You need to connect the GA4 Measurement ID under the Universal Analytics Property. You need to add the code under “Tracking Info” under the property section. Here’s the step-by-step breakdown of the steps so you can add the tracking code.

  1. Click on the “Admin” section on your Universal Analytics Property.
ga4 admin
  1. Click on “Data Streams” and then go to “Web.” Click on the (>) arrow under “Data Stream” and you’ll go to the “Web Stream Details” page.
ga4 data streams
  1. Your GA4 Measurement ID is in the top right corner of the screen, find it and copy it.
how does GA 4 work
  1. Open your Universal Analytics Property, go to Admin, then go to Tracking Info, and then go to Tracking Code.
upgrade google analytics to ga4
  1. Once the new page opens, scroll down to find the “Connected Site Tags” option, and click on this option.
upgrade to google analytics 4
  1. Paste the Measurement ID that you’ve copied to build a new site tag.
  2. Click on “Connect”, and your Universal Analytics Property and GA4 Properties are connected.

Add a New “Config” Directive in Website Existing Code

In case there’s already a (gtag.js) code on your website, then you can add your GA4 Measurement ID in the same code. All you have to do is add a new “config” directive to the existing analytics code.


<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-1″></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date()); 

  gtag(‘config’, ‘UA-Property ID’);

After “gtag(‘config’, ‘UA-Property ID’);“, add a new “confg” directive to add your GA4 Measurement ID. Here’s the code for your reference:

<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-1″></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date()); 

gtag(‘config’, ‘UA-Property ID’);
gtag(‘config’, ‘G-Propert ID’);

Copy and Paste GA4 Measurement ID in the <head> Tag

The last option to add the GA4 tracking code to your website is by adding the code directly to the website source code. Here are the steps to do so:

  • Click the “Admin” option located in the left bottom corner,
  • Follow the same steps as above to copy the Measurement ID.
  • Copy and paste this code into this <head> of every web page you want to track.
Final Word: Google Analytics Universal and Google Analytics 4

All in all, Google Analytics 4 is designed to help businesses and marketers in getting better control over their data. It provides more customer data compared to Google Analytics Universal. Combining that with machine learning and data science analysis, it is a far better solution than the legacy version.

As the legacy version of Google Analytics is available till July 1, 2023, you have a lot of time on your hand to migrate and understand everything GA4 has to offer.

If you still have any questions or concerns regarding the setup process, you can reach out to Google Answers. While it’s not easy setting up Google Analytics 4, you can do it if you follow all the steps carefully.