Today in this article we have decided to let you know how to add website to Google Analytics 4 (GA4) step by step.
Do you know that Google Universal Analytics will continue its services till 30th June 2023 and then it will shift to Google Analytics 4 or GA4 property. Since the beginning of 1st July 2023, it will no longer process new data in standard properties.
So, if you are an existing user of Universal analytics and still you have not switched to GA4 property then this is the right time to switch.
If you are not aware of how to add website to Google Analytics 4 or switching Universal Analytics to GA4 then stick with this article to know the procedures.
Here in this article we will cover two things.
- How To Add Website to Google Analytics 4 or GA4 (New Website).
- How to Switch From Universal Analytic to GA 4
Prerequisite to add website to Google Analytics is to have a website. If you haven't created website till know then you can take the help of Strikingly. Using Strikingly you can create a beautiful website or blog without having coding knowledge .
Before adding a website to Google Analytics it would be a good idea if you know what Google Analytics is.
What Is Google Analytics?
Google Analytics is a free web analytics tool of Google that helps to measure website traffic. This tool was launched on 14th Nov 2005, and it is the most widely used web analytics tool for all online businesses.
The benefits of using Google Analytics are that it gives you complete insights of the user activities on the website, it provides you with real-time and tangible data, it also gives you valuable feedback to your website pages/links and many more.
So, these are a few of the many benefits of using Google Analytics for your website.
In this article, I intend to let you know about how to add website to google analytics. So here we go.
GA4 V/s Google Analytics
- In GA4 data is collected in the form of events, here everything is an event whereas in Universal Analytic data is collected in the form of Page Views and Sessions.
- In GA4 Views doesn’t exist where as in Universal Analytics (UA), you see data and reports.
- In Universal Analytics, there are 3 levels of hierarchy, that is Account, Property, and Views whereas in GA4 there is no more Views. Instead of Views we have Data Streams.
- Unlike with views in UA, right now there is no features available in GA4 where Data Streams can be filtered to exclude or include certain data. A Data Stream can be either be an application or a website.
- In GA4 we don’t have bounce rate, page per session, and average session duration, instead we have Engaged Sessions, Engagement Rates, Engaged sessions per user, Average engagement time, Event count, Conversions, and Total revenue whereas in UA or Google Analytics whole data model is based on sessions and page views.
- Coming to the report part in UA, it is the huge collection of standard reports. Such as All traffic, Google Ads report, Search console, Campaign reporting, and many more whereas in GA4 there is much fewer standard report. For example, in Acquisition there are three reporting those are Acquisition overview, User acquisition, and Traffic acquisition. Therefor GA4 is build to collect data more efficiently than Google Analytics.
These are the few of the differences we have pointed here is to make you clear about the difference between UA and GA4.
Now, let us jump into the main topic and understand how to add website to Google Analytics 4 step by step.
How To Add Website to Google Analytics 4 or GA4 (New Website).
STEP1: First, to add website to google analytics 4 you must log in to the Google analytic account through your Gmail id.
Note: If you already have a Google Analytic accounts then there is no need to Sign up again to create a new Google Analytics account. You can use the existing Analytic account to add your new website. If you don’t have any account, then you can sign up for GA account.
STEP 2: Go to the Admin section. You can find this feature at the bottom right of the 1st panel in GA dashboard.
STEP 3: Now, you will see that the Admin dashboard is divided into three parts. These are Account, Property, and View.
If you want to create multiple properties under one name, then start with Create property. Otherwise, it’s your choice to create an Account or not.
STEP 4: Here, to make you understand well, I will start with creating an account. So to create a property click Create account.
STEP 5: Click to the Create account button will let you enter the Account set up page. Fill all the information correctly and leave the other setting in a default mode.
STEP 6: Click the button Next.
STEP 7: Now you will enter Property set up page. Fill all the details such as Property name, Reporting time zone, and Currency to create Google Analytic 4 property and the click the Next button.
STEP 8: Now, in the next part you will need to add data about your business. Fill up the business information like your industry category, business size, and select the check box about How do you intend to use Google Analytics with your business.
STEP 9: Click the Create button
STEP 10: Check mark the Google Analytics Terms of Service Agreement that are: “
I also accept the Data Processing Terms as required by GDPR. Learn more” and “I accept the Measurement Controller-Controller Data Protection Terms for the data that I share with Google.” And then click the I Accept button.
STEP 11: Now you will enter the Data Stream section where you will get 3 options to select your data source, they are: App, Android App, and IOS App. To add a website click the Web.
STEP 12: Add your website URL and give a Data Stream name and then click Create Stream.
STEP 13: After clicking the Create Stream you will enter the Web Stream details section where you will get to see details such as Stream Name, Stream URL, Stream, Stream ID, and Measurement ID.
Step 14: This measurement id can be added to the website in order to track. There are different Google tag methods of installing this Measurement Id. These are: Configure tag settings, Manage connected site tags, and View tag instructions.
STEP 15: Here I will go with the Google Tag 1st option(The global site tag (gtag.js)is now the Google tag). Go to the installation instruction after clicking t he first option. To Install a Google tag in your website you will get two options. These are 1) Install with a website builder and 2) Install manually.
Step 16: Here I will go with the manual option. Just copy and paste the code in the header section of your website.
Adding Google analytic code to a website
After the configuration of Google Analytic, you would be able to see three things. These are Tracking ID, Global Site Tag, and Google Tag Manager. Now let us discuss the methods you would use to enable Google Analytics to your website. The tracking Id Starting with “UV” which you are seeing is the tracking id which helps in tracking the data of the website and the code below the “Global Site Tag” is embedded on the website.
Techniques To Add Analytics
Technique No.1: Using WordPress Plugin Google Analytics Dashboard for WP (GADWP)
If you have a WordPress website, then it becomes easy to add the tracking Id as you do not have to go inside the code of the website. Let us see how to add website to Google Analytics if you have a WordPress website.
Let us see how to add website to Google Analytics if you have a WordPress website.
Download and install the Google Analytics Dashboard for WP (GADWP) WordPress plugin to your website and then activate it. After activation of the plugin, you would need to authorize the plugin. So would have to go to the setting section of the plugin.
When you click the authorize plugin, the plugin would ask for the access code. Just click the get access code (Remember: You need to be logged in to your Google Analytic account).
When the access code button is clicked, you would be asked to provide Google Accounts details which are being used for Google Analytics.
You have to copy and paste this code into the access code input box of the plugin’s dashboard and then click the save access code button.
Client visiting your WordPress site would be listed in Google Analytics. Assess the WordPress dashboard home page to check visitors summaries.
Technique No.2: Add the Google Analytics code manually on your website
The other way to add a website to Google analytics is to embed the tracking code in the header section of the theme.
To retrieve the tracking code go to the “Admin” section of the Google analytics dashboard then select the “ACCOUNT” from the account section and then go to “Property” Under property click the “Tracking info” and under this tab, you would see “Tracking Code”. You need to click that button to get the code.
from the account section and then go to “Property” Under property click the “Tracking info” and under this tab, you would see “Tracking Code”. You need to click that button to get the code.
Under property click the “Tracking info” and under this tab, you would see “Tracking Code”. You need to click that button to get the code.
Now you would need to copy the code under “Global Site Tag” and paste in the header section of the website.
You may find your theme includes a custom setting to allow you to paste in your Google Analytics code. If not, in the WordPress administration dashboard, head to Appearance > Editor.
In the Theme Files sidebar, click Theme Header (header.php). Find the closing </head> tag in the header file, and paste the Google Analytics Global Site tag above.
Save the file, and your site traffic will be recorded in Google Analytics. Visit the Google Analytics website to view traffic reports.
If your website is not made up of WordPress, then you have to insert the tracking code through your c panel account. Log in to your C panel account and go to “Public_html” section and find the header section of the site and within the header section paste the tracking code.
Technique No. 3: Google Tag manager
Another method to get real-time data is by using. This is a very vast topic and I will discuss this in the next article.
In this way, you would be able to track all the behavior of the customers on your site. You would be able to check the session, the bounce rate, how many customers are visiting your website and from which country you are getting traffic. In short, you would be able to track everything like behavior, acquisitions, demographic and many more.
I hope you would have liked this article How To Add Website to Google Analytics.
In addition to this, it is very important to know about Google Webmaster.
Click the link Google Search Console to know more about this.