How to Add GA4 to Google Tag Manager

How to Add Google Analytics 4 (GA4) to Google Tag Manager

Looking for a tutorial for how to add GA4 to Google Tag Manager and install Google Analytics and Tag Manager on your website?

Google Tag Manager is a free tool that allows you to add and update your Google Analytics tracking code and other tags on your site without having to update them in your site’s code. You can also use it to set up more advanced Google Analytics tracking features.

In this article, we’ll show you how to add GA4 to Google Tag Manager and install Tag Manager on your website.

Video Walkthrough

MonsterInsights is the best WordPress Analytics plugin. Get it for free!

What is Google Tag Manager?

Google Tag Manager Tool

Google Tag Manager is a free tag management system (TMS) offered by Google. It provides a platform for managing and updating different types of tracking codes and tags on your website.

A tag is a tracking code or snippet of JavaScript that sends information about your site to a third party, such as Google.

Using Google Tag Manager, you can deploy different types of tracking codes (tags), such as the Google Analytics tracking code or Meta pixel, on your site without needing to edit your website’s code each time you add or edit a code snippet. You can add codes for event tracking, conversion tracking, remarketing, and more.

For instance, if you decide tomorrow that you want to run ads on Instagram, you’ll need to install a pixel (code snippet) on your site. If you have Google Tag Manager, you can add it there and skip editing your website’s code at all.

Google Tag Manager Alternative for WordPress

The downside to using Tag Manager to add GA4 and deploy tracking codes and site tags is that there’s a steep learning curve if you’ve never used it before.

If you’re using WordPress, there’s a much easier way to set up Google Analytics, advanced tracking features, and install Google, Bing, and Meta pixels: MonsterInsights.

MonsterInsights is the best Google Analytics plugin and Google Tag Manager alternative for WordPress websites. It allows you to set up Google Analytics in WordPress easily, right from your WordPress dashboard and without touching any code.

MonsterInsights Home Dashboard

The MonsterInsights plugin makes it simple to set up Google Analytics, whether you’re an absolute beginner or a seasoned professional. Easily set up advanced tracking features in a couple clicks rather than learn how to create them in Google Tag Manager!

Easily and accurately track:

Plus, you’ll get a whole big dashboard full of reports, so you won’t have to navigate GA4 to figure out where to find your data.

MonsterInsights Overview Report

Get started with MonsterInsights now!

Still want to know how to add GA4 to Google Tag Manager? Let’s dive into our tutorial.

Tutorial: Add GA4 to Google Tag Manager

The first thing you need to do is sign up for Google Tag Manager. You can use an existing Google account or create a new one.

Once you’re logged in, click the Create Account button.

Create Google Tag Manager Account

Then, enter a preferred account name to your Account Name field.

account setup

In the Container Setup step, you can enter your website name as the Container name. Under Target platform, choose Web.

GTM container setup

Now you’ll be asked to agree to the Terms of Services for Google Tag Manager. Click Yes and also make sure to check the box at the bottom that says I also accept the Data Processing Terms as required by GDPR.

Google Tag Manager Terms of Service

Then you’ll be given two tracking code snippets that you’ll need to enter onto your site’s code. There are a few different ways you can go about doing this, but we recommend using WPCode.

For more details, follow our guide on how to install Google Tag Manager in WordPress.

Install Google Tag Manager - Instructions

After you’ve successfully entered the code snippets on your website, you will have to set up a tag. Start by clicking New Tag.

Create a new GA4 tag in Google Tag Manager

First, give your tag a name like Google Analytics. Then click on the big icon where it says choose a tag type to begin setup.

Google Tag Manager - Choose tag

Then select Google Analytics: GA4 Configuration.

Add GA4 to Google Tag Manager

Now, locate your GA4 measurement ID in your Google Analytics account under Admin » Data Streams » Your active stream:

GA4 measurement ID

After that, head back to Tag Manager to give a name to your variable and paste your  Measurement ID. There are more settings you can choose from, but you can leave them as it is for now.

Google Tag Manager GA4 tag

Now, we’ll set up the trigger that tells our tag when to fire. Since our tag is Google Analytics, we want to make sure it fires all the time, on every page! Scroll down and click the Triggering box.

Google Tag Manager GA4 trigger

You’ll see that All Pages is a pre-made trigger that you can choose. Go ahead and click it.

All Pages trigger in GTM

Now simply click the Save button at the top and you’re ready to publish your Google Analytics tag.

Save your GA4 tag in Google Tag Manager

Your tag isn’t live yet! Make sure you hit the Submit button on the Google Tag Manager dashboard.

Submit GA4 Google Tag Manager tag

That’s it!

You’ve successfully implemented Google Analytics with Google Tag Manager. Your Google Analytics tag will execute on every page.

Google Analytics 4 + Google Tag Manager FAQ

What’s the difference between GA4 and Google Tag Manager?

The difference between GA4 and Google Tag Manager is that GA4 is your measurement tool, while Google Tag Manager is just how you install the GA4 tracking code on your website.

Can I use GA4 without Google Tag Manager?

Yes, you can use GA4 without Google Tag Manager! Just install the tracking code right into your website header, or use a plugin like MonsterInsights to make Google Analytics 4 super easy.

How do I set up Google Tag Manager with GA4?

  1. Set up your Google Tag Manager account, if you haven’t yet.
  2. Create a new Google Analytics: GA4 Configuration tag and copy paste your Measurement ID into the Measurement ID field.
  3. Set up a Trigger – choose the All Pages trigger.
  4. Click Submit to publish your GA4 tag.

We hope this tutorial helped you to add GA4 to Google Tag Manager easily.

Interested in learning more about how easy MonsterInsights makes Google Analytics? Check out Your Ultimate Guide to MonsterInsights Dashboard Reports.

Not using MonsterInsights yet? What are you waiting for?

And don’t forget to follow us on Twitter, Facebook and YouTube for more helpful Google Analytics tips.

Want to Try MonsterInsights for Free?

Enter the URL of Your WordPress website to install MonsterInsights Lite.


    1. Hi Vincent, thanks for stopping by the blog 🙂 If you’re implementing Google Analytics via MonsterInsights, there’s no need to do it with Google Tag Manager as well. In fact, implementing Google Analytics with both MonsterInsights and Google Tag Manager can skew your stats, since the tracking code will be on your site twice.

      However, if you’re using MonsterInsights, you can still use Google Tag Manager to implement other code (besides Google Analytics) without any issues.

      Hope that answers your question! Feel free to get in touch with support if you need more details.

  1. Hi, I’m using the Monsterinsights plugin on Wordpress – I presume the same applies – if I’ve installed and activated the plugin I don’t need to add my gtag / gcode to the site – Insights takes care of that right?

  2. Little Serious Problem : Google Analytics provide now GA-XXXXXXX tag not UA-XXXXXX and Monsterinsight is not perform with that.

    1. Hey Umesh! Thanks for stopping by our blog. Yes, Google Analytics is encouraging all new properties to be GA4. However, you can still create a Universal Analytics (UA) property to use with MonsterInsights. For instructions on how to do this, read How to Add Google Analytics to WordPress. Please note, the team at MonsterInsights is working hard with Google to add GA4 compatibility. Stay tuned for any updates on that!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.