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.
What is Google Tag Manager?
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.
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.
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:
- eCommerce metrics
- Form submissions
- Video interactions
- Google Ads conversions
- Meta (Facebook) Ads conversions
- Outbound clicks and affiliate link clicks
- User journeys
- And much more
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.
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.
Then, enter a preferred account name to your Account Name field.
In the Container Setup step, you can enter your website name as the Container name. Under Target platform, choose Web.
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.
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.
After you’ve successfully entered the code snippets on your website, you will have to set up a tag. Start by clicking New Tag.
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.
Then select Google Analytics: GA4 Configuration.
Now, locate your GA4 measurement ID in your Google Analytics account under Admin » Data Streams » Your active stream:
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.
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.
You’ll see that All Pages is a pre-made trigger that you can choose. Go ahead and click it.
Now simply click the Save button at the top and you’re ready to publish your Google Analytics tag.
Your tag isn’t live yet! Make sure you hit the Submit button on the Google Tag Manager dashboard.
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?
- Set up your Google Tag Manager account, if you haven’t yet.
- Create a new Google Analytics: GA4 Configuration tag and copy paste your Measurement ID into the Measurement ID field.
- Set up a Trigger – choose the All Pages trigger.
- 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?