Skip to content

Are you looking to upgrade to Google Analytics 4 and take advantage of its enhanced capabilities?

Setting up Google Analytics 4 in Google Tag Manager is a crucial step in harnessing the power of this advanced analytics platform.

In this tutorial, we’ll walk you through the process and equip you with the knowledge to seamlessly implement GA4 in Google Tag Manager.

Header Outline:

I. Introduction
II. Setting Up GA4 in Google Tag Manager (GTM)
A. Creating a GA4 Property
B. Configuring GTM for GA4
C. Installing GTM on Your Website
III. Testing and Verifying GA4 Setup
IV. Conclusion

I. Introduction

Google Analytics 4 (GA4) is the latest version of Google Analytics that provides advanced tracking and analysis capabilities. To take advantage of GA4’s features, it’s essential to set it up correctly in your Google Tag Manager (GTM).

In this blog post, we will guide you through the process of setting up GA4 in GTM, allowing you to track and analyse user behaviour on your website effectively.

II. Setting Up GA4 in Google Tag Manager (GTM)

To set up GA4 in GTM, follow these steps:

A. Creating a GA4 Property

  1. Sign in to your Google Analytics account.
  2. Create a new GA4 property by clicking on “Admin” and selecting “Create Property.”
  3. Fill in the required information, including your website’s URL and property name.
  4. Agree to the terms and conditions, then click “Create.”
  5. Copy your GA Measurement ID to your clipboard

B. Configuring GTM for GA4

  1. Sign in to your Google Tag Manager account.
  2. Select the container where you want to add GA4 tracking.
  3. Click on “Variables” in the menu and then “New” under the section for User-Defined Variables.
  4. Choose “Constant” for the Variable Type and name the Variable as “GA4 Measurement ID” and save the Variable.
  5. Click on “Tags” in the menu and then “Add a new tag” and select “Tag Configuration.”
  6. Choose “Google Analytics: GA4 Configuration” as the tag type.
  7. Click on the “brick” icon and select your GA4 Measurement ID Variable, which you set up previously.
  8. Add a Trigger for a Page View for “All Pages”.
  9. Save the configuration and publish the changes to make them live.

C. Installing GTM on Your Website

  1. Copy the GTM container snippet provided in GTM.
  2. Paste the container snippet on every page on your website as per the instructions provided.
  3. Save and publish the changes to your website.

III. Testing and Verifying GA4 Setup

  1. Visit your website and navigate through various pages to generate some traffic.
  2. Go back to Google Tag Manager and click on “Preview” to enable the GTM preview mode.
  3. Verify that GA4 tags are firing correctly by checking the “Tags Fired” section.
  4. Perform specific actions on your website and check if the data is being captured in your GA4 reports.

IV. Conclusion

By following the steps outlined in this guide, you can successfully set up GA4 in Google Tag Manager. This integration will allow you to track and analyse user behaviour effectively using the advanced features of GA4.

Make sure to test and verify your setup to ensure accurate data collection. With GA4 implemented, you’ll be equipped to make data-driven decisions and optimise your website’s performance.

Back To Top