How to Connects Google Analytics 4 with Google Tag Manager?

Share it

In this Article, We have to discuss about the Connection between Google Analytics 4 with Google Tag Manager (GTM) for our website requirements. It is essential for tracking and monitoring user interactions on your website effectively.


This integration of Google Analytics 4 with Google Tag Manager allows you to manage and deploy your analytics events, conversions, and other tracking codes efficiently. In this genuine guide, we’ll walk you through the detailed steps to connect GA4 with GTM.

Step By Step Connects Google Analytics 4 with Google Tag Manager

First of All, We have to know the Basic Knowledge of What is the requirements of Google Analytics 4 and Google Tag Manager for our website. Lets start.

What is Google Analytics 4?

Google Analytics 4, often abbreviated as GA4, is the latest version of Google’s web analytics platform. It represents a significant evolution from its predecessor, Universal Analytics (UA), with a focus on providing more advanced tracking capabilities, greater flexibility, and a deeper understanding of user behaviour across both websites and mobile applications.

What is Google Tag Manager?

Google Tag Manager (GTM) is a powerful and free tag management system developed by Google. It simplifies the process of adding and managing various code snippets, or “tags,” on a website or mobile application. These tags are used to collect data, track user interactions, and integrate with third-party tools and services. GTM provides a user-friendly interface that allows marketers and website administrators to manage their digital marketing and analytics tags without requiring extensive knowledge of coding.

#Step 1: How to Create Google Tag Manager and Google Analytics account.

1. Google Tag Manager (GTM):

– Go to the Google Tag Manager website (

– Sign in with your Google account. If you don’t have one, you’ll need to create an account.

Step 2: Create a Google Tag Manager Container


In Google Tag Manager:

  1. Click on the “Admin” tab at the top of the page. Under the “Container” section, click “Create Container.
  2.  Fill in the container name. Choose a descriptive name that represents your website or project
  3. Select the target platform. For websites, choose “Web.”
  4.  Configure advanced settings like the country and time zone as per your preferences.
  5. Agree to the Terms of Service and click the “Create” button.

#Step 3: Get Your Google Tag Manager Code

After creating the container, GTM will provide you with two code snippets: one for the `<head>` section of your website and another for the `<body>` section. These codes are essential for connecting your website to GTM.

#Step 4: Add Google Tag Manager to Your Website

  1.  Go to your Blogger dashboard and sign in.
  2. Select the blog you want to connect with Google Tag Manager.
  3.  In the left sidebar, click on “Theme.
  4.  Click the “Edit HTML” button to access your template’s code.
  5.  Locate the `<head>` section of your template. This is where you’ll add the first GTM code snippet.
  6.  Paste the code snippet provided by Google Tag Manager immediately after the opening `<head>` tag. It should look like this:
<!-- Google Tag Manager -->
<script>(GTM code snippet for head)</script>
<!-- End Google Tag Manager -->
<!-- Rest of your head content -->

7. Return to your Google Tag Manager account and locate the code snippet for the `<body>` section.

8. In your Blogger template code editor, find the closing `</body>` tag, which is usually near the end of the template code.

9. Paste the second code snippet (the one for the `<body>`) just above the `</body>` tag. It should look like this:

<!-- Google Tag Manager (noscript) -->
<noscript>(GTM code snippet for body)</noscript>
<!-- End Google Tag Manager (noscript) -->

10. Save your Blogger template changes.

5. Google Analytics (GA4):

– Visit the Google Analytics website (

– Sign in with the same Google account as you did for GTM.

#Step 6: Create a Google Analytics 4 Tag in Google Tag Manager


  1.  In your Google Tag Manager account, go to your container.
  2.  In the left sidebar, click on “Tags” and then click the “New” button to create a new tag
  3.  Choose the “Google Analytics: GA4 Configuration” tag type
  4.  Configure the GA4 Configuration tag:
    – Enter a descriptive name for the tag, such as “GA4 Configuration.
    – Enter your GA4 Measurement ID, which you can find in your GA4 property settings.
    – Choose the “Enhanced Measurement” options that you want to enable (e.g., scroll tracking, outbound clicks).
  5. Save the tag by clicking the “Save” button.

#Step 7: Publish Changes in Google Tag Manager

  1.  After creating the GA4 Configuration tag, click the “Submit” button in the upper-right corner of Google Tag Manager.
  2.  Enter a version name and optional description to document the changes you’ve made.
  3.  Click the “Publish” button to publish your changes.

#Step 8: Verify GA4 Tracking in Google Analytics

  1.  Return to your Google Analytics 4 account.
  2.  Access the “Events” or “Conversions” reports to verify that data is being tracked as expected. It may take some time for data to appear in your GA4 reports.

Congratulations! You’ve successfully connected Google Analytics 4 with Google Tag Manager for your Blogger website. This integration provides you with advanced tracking capabilities and a streamlined management process for tracking codes and events on your website. Continue to explore the features of both GA4 and GTM to gain valuable insights into your website’s performance and user behaviour.

Read this- How to do SEO for a Website Step-by-Step Guide

How to work and concepts associated with Google Analytics 4?

1. Event-Driven Tracking:

GA4 uses an event-based tracking model, which means it places a strong emphasis on tracking user interactions and events on your website or app. These events can include page views, clicks, form submissions, video views, and more. This allows you to gain insights into how users engage with your content and take specific actions.

2. Enhanced Cross-Platform Tracking:

GA4 is designed to provide a more comprehensive view of user behaviour across multiple platforms, including websites, mobile apps, and even offline interactions. This is particularly useful for businesses that have a significant online presence and mobile app users.

3. User-Centric Data:

Unlike UA, which primarily focuses on sessions and pageviews, GA4 shifts the focus to individual users. It provides better user identification and tracking across devices, helping you understand user journeys and behaviour more accurately.

4. Event Tracking:

GA4 offers more flexibility in defining and tracking custom events. You can set up events to track specific actions that are critical to your business, such as e-commerce transactions, video engagement, or form submissions. This allows for a deeper analysis of user interactions.

5. Predictive Metrics:

GA4 introduces predictive metrics powered by machine learning. These metrics can help you anticipate future user behaviour, identify trends, and make data-driven decisions.

6. Enhanced Reporting:

The reporting interface in GA4 has been redesigned to offer more intuitive and user-friendly insights. It provides a more holistic view of your data, including events, conversions, and user demographics.

7. Advanced Analysis:

GA4 includes advanced analysis tools that make it easier to explore data, create custom segments, and perform cohort analysis. These features enable you to uncover valuable insights and optimize your marketing strategies.

8. Data Retention:

With GA4, you have more control over data retention settings, allowing you to specify how long user data is stored in your analytics account. This can help you comply with data privacy regulations like GDPR.

9. Integration with Google BigQuery:

GA4 offers direct integration with Google BigQuery, a powerful data warehouse and analytics platform. This allows for more extensive data analysis and customization.

10. E-commerce and Conversion Tracking:

GA4 includes enhanced e-commerce and conversion tracking capabilities, making it easier to measure the performance of online stores and marketing campaigns.

11. Privacy-Centric:

GA4 is designed with privacy in mind. It uses machine learning to fill gaps in data when cookies and other identifiers are unavailable, helping maintain data accuracy while respecting user privacy.

12. Event Debugging and Testing:

GA4 provides tools for event debugging and testing, making it easier to ensure that your tracking is working correctly before deploying it on your website or app.

It’s important to note that while Google Analytics 4 offers significant advantages and a more modern approach to web analytics, it also requires adjustments to tracking implementation and reporting compared to Universal Analytics. As GA4 becomes the standard, website owners and marketers are encouraged to migrate their existing analytics properties to GA4 and take advantage of its enhanced capabilities for data analysis and user insights.

Important features and components of Google Tag Manager:

1. Containers:

GTM operates on a container-based system. Each website or app has its own container, which acts as a centralized hub for managing tags, triggers, and variables. Containers are typically associated with a specific domain or application.

2. Tags:

Tags are snippets of code that perform various functions, such as tracking pageviews, events, conversions, or interactions with third-party tools like Google Analytics, Facebook Pixel, or advertising platforms. GTM supports a wide range of tag types for different purposes.

3. Triggers:

Triggers are conditions that determine when a particular tag should be fired or executed. Triggers are associated with specific events or interactions, such as page views, clicks, form submissions, or custom events on a website or app.

4. Variables:

Variables are used to capture and store data that can be used in tags and triggers. GTM offers built-in variables like page URL, referral source, and click element, as well as the ability to create custom variables.

5. Version Control:

GTM provides versioning and revision history for containers. This allows users to track changes, revert to previous versions, and maintain a record of tag configurations over time.

6. Testing and Debugging:

GTM includes built-in tools for testing and debugging tags and triggers before deploying them live. This ensures that tracking is accurate and functioning correctly.

7. User Permissions:

GTM allows for the assignment of user roles and permissions, making it possible to collaborate with team members while controlling who can make changes to the container.

8. Custom Templates:

GTM supports custom tag templates, allowing users to create and share custom tags and configurations tailored to specific needs.

9. Integration with Google Analytics:

GTM seamlessly integrates with Google Analytics, making it easier to manage and deploy tracking codes for web analytics.

10. Integration with Other Tools:

GTM can be used to manage tags for a wide range of third-party tools, including advertising platforms, CRM systems, A/B testing tools, and more.

11. Data Privacy and Consent Management:

GTM provides features for implementing data privacy solutions, such as cookie consent banners and compliance with regulations like GDPR and CCPA.

12. Frequent Updates:

Google regularly updates GTM to add new features, improve performance, and enhance user experience.

Overall, Google Tag Manager simplifies the process of managing tracking and marketing tags on websites and apps, allowing businesses to implement and update tracking codes efficiently without the need for constant developer involvement. It streamlines data collection, helps improve website performance, and provides valuable insights for optimizing online marketing efforts.


So, in this topic, we already discussed Google Analytics 4 with Google Tag Manager will definitely help for your blogging journey. It is very necessary for any website to collect various information to know the audience and requirements for any improvements.

Related Article- Why is Google Trends important for Bloggers?