Google Analytics, which was previously known as GA4, is a tool that is necessary for SEO executives, PPC executives, social media managers, email marketers, and everyone else.
How To Set Up Google Tag Manager |
If you are promoting a website in the online world, Google Analytics is a very important tool for you to grow. We will learn to link Google Analytics from scratch on any website with little effort. After this, we will see how to make important settings, events, goals, conversions, custom reports, the explore tab, and the advertising tab.
By the time you finish this article, you will know Google Analytics in such a way that you will be able to connect your website easily, and it won’t be a hassle for you to make proper use of Google Analytics as never before.
In today's article, we will be discussing how to easily set up Google Analytics through Google Tag on your website. You will be able to do everything through Google Tag Manager.
How does Google Tag Manager Work |
We will help you test whether your setup is done properly or not. Today's article is the finest blog post in which we will learn how to set up Google Analytics properly on a website through Google Tag Manager.
The journey of Google Analytics starts not with its dashboard but with your website. Whenever a visitor comes to your website, whether it is through social media or Google Organic, as soon as he visits your website, a JavaScript code is fired inside your website. And it tells Google Analytics that a visitor has come to your website.
So, Google Analytics does three things on our website.
- Data Collection.
- Storing Data.
- Visualizing Data (which means showing a report)
So Google Analytics is not a single tool, but a 3-in-1 tool. It collects data from your website, stores it, and then visualizes and shows it to you in a beautiful way. So the story of such a good tool starts on your website, not on the Google Analytics dashboard.
First, we have to link Google Analytics to our website. We have to give access so that whenever there is any traffic on your website, it is visible in your Google Analytics dashboard. It should not be visible on any other website where the data is not stored.
Basically, to connect Google Analytics to your website, you have to paste a code on the pages of the site. Now, if your website is custom-coded, talk to your developer. And you can copy and paste all your pages.
If your website is based on WordPress or a CMS, you can use any of the free plugins to link analytics to your website.
But we are not going to use any of these methods. Because the cleanest, easiest, and most efficient way to link Google Analytics to your website is through Google Tag Manager.
How do I set up Google Analytics?
Steps to connect Google Analytics to a website using Google Tag Manager from scratch
Step 1: Go to Google Tag Manager.
Step 2: Click Create a new Google Tag Manager account.
Steps to connect Google Analytics to a website using Google Tag Manager |
Step 3: Select country.
Step 4: Give the name of the container. ( Note: The name of your website doesn't need to be the same.)
Step 5: Select Web ( because we are going to add it to our website).
Step 6: Click on the Create button. Then click on Terms and Conditions Acceptance. ThenYes. Then it will automatically create a workspace for you.
(Step number 7 will be different for a custom-coded website, WordPress website, or if you are using any type of CMS.)
Step 7: FOR Custom-Coded Website
- Copy the head code and paste it into the head tag of your web page first. Then, copy the body code and paste it into the body tag of your web page first.
- After copying and pasting the given code, Google Tag Manager will connect to your website.
Step 7: For WordPress website or if you are using any type of CMS
- Copy the ‘GTM-*********’ that you can find in the code provided by Google Tag Manager.
- Click on the plugins on your WordPress. And install GTM4WP.
- Click on the Settings button and here you just have to paste the Google Tag Manager ID
- Click on the Save Change
Step 8: Open your Google Analytics account
Step 9: Copy the Measurement ID ( G-**********)
Step 10: Open your Google Tag Manager
Step 11: Click on the 🏷️ Tags button and name your Tag
Step 12: Click on Tag Configuration, then click on Google Analytics, then click on Google Tag.
Step 13: Paste the measurement ID you copied and paste it into the tag ID.
Step 14: Click on Triggering and select All Pages.
Step 15: Click on Submit and add a name in Version Name
Step 16: Publish
In this way, we have connected Google Analytics with Google Tag Manager. And because Google Tag Manager is already connected with our website, indirectly, we have also connected our website with Google Analytics.
People Also Ask
1. Why don't we just paste the code from Google Analytics into Google Tag Manager?
➤ The reason is that whenever you want to track any action or any marketing funnel on your website, you will have to set up Google Tag Manager.
So, the code of Google Analytics cannot set up Google Tag Manager. But after adding the code of Google Tag Manager, you can set up Google Analytics, you can set up Pixel, and you can even set up Google Ads. So, if you paste the code for Google Tag Manager at once, it saves you a lot of work.
Only the Google Tag Manager helps you connect all the other tools. Except Google Search Console. So, you can use any method for Google Search Console, but you have to connect Google Analytics, Google Ads, Pixel, and everything else with Google Tag Manager.
2. What is a tag in Google Tag Manager?
➤ It is the measurement ID of Google Analytics. So the measurement ID of Google Analytics automatically connects with every page of your website.
3. What is the benefit of connecting your websites to Google Tag Manager?
➤ After connecting and using this Google Tag Manager account, You don't have to paste any other code on your website. You can only paste the code of your Google Ads in Google Tag Manager. You can paste the code from Hotjar. You can paste the tag for Microsoft Clarity. You can even paste the code from Google AdSense.
You don't have to add any other JavaScript to your website. All the tracking and coding can be done through your Google Tag Manager.
4. What model represents the hierarchical structure of a Google Analytics account?
➤ Account > Property > View