• Skip to primary navigation
  • Skip to main content
  • Skip to footer
DAGMAR

DAGMAR

877-753-0050

  • Services
    • Search Engine Optimization
    • Pay Per Click Management
    • Local SEO
    • Content Development & Marketing
    • Inbound Marketing
    • Website Design
    • Social Media Advertising
  • Industries
    • Plastic Surgeons
    • Law Firms
    • Pest Control
    • HVAC
    • Dental Practices
    • Healthcare
    • All Industries
  • About
    • Meet The Team
  • Our Results
  • Blog
  • Guides
    • Law Firm SEO Guide
    • Plastic Surgery SEO Guide
    • Med Spa SEO Guide
  • Contact

How to Set Up a Google Analytics 4 Account Using Google Tag Manager

Hilal Muhammad Categories: Digital MarketingReading Time: 8 minutes

  • Guides
  • Digital Marketing
  • Local SEO
  • SEO
  • Pay Per Click
  • Social Media

Google Analytics, also commonly referred to as Universal Analytics, has been a staple for marketers, advertisers, website administrators, and more for over 15 years. As our online ecosystem has continued to evolve, Google Analytics has largely remained the same until now. Google Analytics has been phased out and Google Analytics 4 has stepped in as its predecessor, increasing the demand for an easier way to configure and manage the platform. 

We’ve developed a step-by-step guide that integrates Google Tag Manager into your GA4 setup, which reduces the amount of code required and can overall simplify the process. 

What is Google Analytics 4 (GA4)?

The most recent version of Google’s web analytics tool is called Google Analytics 4 (GA4).

It was introduced in October 2020 and is the replacement for Universal Analytics.

Compared to Universal Analytics, GA4 offers more sophisticated tracking and analysis capabilities. It utilizes machine learning and artificial intelligence to deliver more precise and valuable insights about user behavior and interactions on websites and mobile applications.

The Difference Between Universal Analytics and GA4

  • Sessions and Pageviews were the critical measures in Universal Analytics, and all metrics are events in Google Analytics 4. With GA4, you can better understand how users interact with your app and website.
  • Better cross-device tracking capabilities offered by GA4 allow it to track users across various platforms and devices, giving a complete picture of their behavior.
  • To offer more sophisticated analyses and predictions about user behavior, including churn risk, income forecasting, and more, GA4 makes greater use of machine learning.
  • In contrast to Universal Analytics, GA4’s user interface has a more contemporary and user-friendly design.
  • Compared to Universal Analytics, GA4 offers more customization and flexibility, including the ability to define and monitor custom events and parameters per particular business needs.

Read More

Google Is Switching to GA4

Because Google Analytics 4 (GA4) offers a more sophisticated and complete analytics solution than the prior version (Universal Analytics), Google is urging businesses to upgrade.

With the help of new features like machine learning and event-based monitoring, GA4 enables businesses to gain a more precise and thorough understanding of the behavior of their users across various platforms and devices.

Although correctly setting up and configuring GA4 takes time and effort, Google has made resources available to assist businesses in the transition. For example, Google has provided a guide on how to migrate to GA4.

What is Google Tag Manager?

To put and manage tags on their website or mobile app without making any changes to the source code, website owners and marketers can use Google Tag Manager (GTM), a free tag management system provided by Google.

Tags are short pieces of code that gather information about how users engage with websites and apps and send it to external tools like Google Analytics, Google Ads, and Facebook Ads for analysis.

Why You’ll Want to Use GTM to Set Up Your GA4 Account

Using Google Tag Manager (GTM) to set up your Google Analytics 4 (GA4) account can provide several benefits, including:

  • Without needing code changes, GTM makes setting up GA4 tracking on your website or app simpler. To track the events, you want to monitor, upload the GA4 measurement Id to your GTM container, after which you can make tags and triggers. 
  • To monitor any website or app interaction you desire, such as button clicks, form submissions, video plays, and more, you can create custom tags and triggers with GTM. By giving you more flexibility and control over your GA4 tracking, you can gather the information you need to make data-driven business decisions.
  • GTM makes updating and maintaining your tracking codes simple by letting you handle all your website or app tags in one place. This can save you time and effort compared to directly updating tags on individual pages or app screens.
  • It is easier to test and troubleshoot your GA4 tracking before it goes live, thanks to the built-in tools that GTM offers for previewing and debugging your tags. This can assist you in finding and resolving any errors before they have an impact on your data.
  • Multiple users can work together on tag management using GTM, and version control and user permissions help to guarantee accuracy and consistency. By doing this, you can simplify GA4 monitoring and make sure that everyone on your team is using the same data.

How to Set Up Your GA4 Using Tag Manager

If you still need to set up a GA4 account, visit analytics.google.com.

Step 1: Click on “Start measuring”

how to install ga4 through gtm 1

Step 2: Write your GA4 account name and then click next.

how to install ga4 through gtm 2

Step 3: Write the name of your Property, select a reporting time zone, and currency. Then click next.

how to install ga4 through gtm 3

Step 4: Mention details about your business and then click Create

Step 5: Read the terms and conditions and then click I Accept.

Step 6: Select your desired platform. In this example, we will be selecting Web.

how to install ga4 through gtm 4

Step 7: Add your Website URL, Stream name, and then click Create stream.

how to install ga4 through gtm 5

After you create the stream, a new window will appear. You’ll find installation instructions there. Because now we need to add the GA4 code to our website, so it starts collecting data. We will skip this step because we will be using Google Tag Manager (in Step 14) for installing GA4 on our website.

how to install ga4 through gtm 6

Step 8: Now, the next step is to create a Google Tag Manager account. 

Visit tagmanager.google.com and click on Create Account.

how to install ga4 through gtm 7

Step 9: Write the name of your account, container, select a target platform, and then click on create.

how to install ga4 through gtm 8

Step 10: Read the terms and conditions, accept them, and then click Yes.

Step 11: Next step is to install the GTM code. If you are using WordPress, then the easiest way is to use a plugin, like WPCode.

In your WordPress dashboard click on Plugins > Add New and then write wpcode in the search bar. Now, install the plugin. As you can see we have already installed it.

how to install ga4 through gtm 9
how to install ga4 through gtm 10

After you install the WPCode plugin you’ll see Code Snippets in the menu. Click on Header & Footer.

how to install ga4 through gtm 11

Now you will have to copy and paste the GTM code in the “Header & Footer” and then click on Save Changes.

how to setup ga4 with gtm 12

Yayy!! GTM code is successfully Installed on your website.

how to install ga4 through gtm 13

Step 12: Click on Add a new tag

how to install ga4 through gtm 14

Step 13: Name your tag. Then click on Tag Configuration and choose “Google Analytics: GA4 Configuration”.

how to install ga4 through gtm 15

Step 14: Enter your GA4 Measurement ID. 

how to install ga4 through gtm 16

You can find the Measurement ID in your Google Analytics account > Admin > Data Streams

how to install ga4 through gtm 17
how to install ga4 through gtm 18
how to install ga4 through gtm 19

Step 15: Now in GTM, click on Triggering and then select the “All Pages” trigger and save it. In most cases you’d want to add fire GA4 Tag on all pages of your website.

how to install ga4 through gtm 20
how to install ga4 through gtm 21
how to install ga4 through gtm 22

Step 16: Click on Preview and paste the URL of your website and then connect.

how to install ga4 through gtm 23
how to install ga4 through gtm 24

Once connected, you will see this little pop-up on the bottom right side of your screen. The pop-up indicates that the GTM code is successfully installed on your website. If the code wasn’t installed correctly, the GTM window wouldn’t have connected.

how to install ga4 through gtm 25

Note: To enhance your GTM testing experience. Installing the “Tag Assistant Companion” Chrome extension to your browser is highly recommended by us.

how to install ga4 through gtm 26

Step 17: Now you should test the tags you’ve created. Here you can see the tag we created is successfully firing.

how to install ga4 through gtm 27

Step 18: Check if the Google Tag Manager is sending data to your Google Analytics 4 (GA4) account.

In the “Admin” section, Under “Property” click on the “Debug View”.

how to install ga4 through gtm 28
how to install ga4 through gtm 29

You can see the page_view event in the DebugView. This means that the GA4 tag in GTM has successfully sent the page view event to GA4.

how to install ga4 through gtm 30

You can also double check this by clicking Realtime under Reports in GA4.

how to install ga4 through gtm 31

Step 19: Now in GTM, publish your settings. Before publishing you always must test your tags. Check if they are firing and sending data to GA4. Click on “Submit”, name your Version, write a description, and then click on Publish.

how to install ga4 through gtm 32
how to install ga4 through gtm 33

Mastering Google Analytics 4 Has Never Been Easier 

Behind every new Google Analytics 4 set up, a wealth of data is just waiting to be discovered. Google Tag Manager enables a more straightforward configuration without having to add lines of lengthy and confusing code. Google Analytics 4 is the next generation of web analytics. Together, they can ensure proper configuration that will allow you to track custom events, track website data, and better monitor your customer journey. 

  • About
  • Latest Posts

Hilal Muhammad

Latest posts by Hilal Muhammad (see all)

  • How to Set Up a Google Analytics 4 Account Using Google Tag Manager - March 6, 2023
FacebookTweetPin

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer



Ready for fresh marketing ideas or just have a question? Please get in touch!

DAGMAR Marketing
25 N. Market St., Suite 500
Jacksonville, FL 32202

(904) 270-9778
  • Jacksonville Digital Marketing Agency
  • SEO Jacksonville
  • Jacksonville Local SEO Services
  • Jacksonville PPC
  • Pay Per Click Management
  • Local SEO
  • Website Design
  • Content Development & Marketing
  • Social Media Advertising
  • Service Area Map
  • Our Results
  • Blog
  • Digital Marketing Guides
  • DAGMAR Careers
  • Linkedin
  • Twitter
  • Facebook

© DAGMAR Marketing 2023
25 N. Market Street Suite 500 Jacksonville, Florida 32202
  • Services
    • Search Engine Optimization
    • Pay Per Click Management
    • Local SEO
    • Content Development & Marketing
    • Inbound Marketing
    • Website Design
    • Social Media Advertising
  • Industries
    • Plastic Surgeons
    • Law Firms
    • Pest Control
    • HVAC
    • Dental Practices
    • Healthcare
    • All Industries
  • About
    • Meet The Team
  • Our Results
  • Blog
  • Guides
    • Law Firm SEO Guide
    • Plastic Surgery SEO Guide
    • Med Spa SEO Guide
  • Contact