

If you’re wondering how to set up GA4 in GTM, you’re not alone. Many marketers and website owners want to track user behavior more effectively, but setting up click events can seem like a technical task. The good news is that you don’t need to be a developer to do it. With just a few clicks in Google Tag Manager, you can start seeing exactly what your visitors are doing on your site—without touching any code.
Setting up click tracking helps you understand which buttons, links, or CTAs are being used. This kind of data is useful for improving user experience and increasing conversions. Below is a simple and quick way to get started.
Step 1: Enable Click Variables
Before anything else, you need to enable the built-in click variables inside Google Tag Manager.
- Go to Variables in GTM.
- Click Configure under “Built-in Variables.”
- Check the boxes next to the following:
- Click Element
- Click Classes
- Click ID
- Click Text
- Click URL
These will allow you to capture detailed info about what users are clicking.
Step 2: Create a Click Trigger
Next, you need to define what kind of clicks you want to track.
- Go to Triggers > New.
- Choose Trigger Type > Just Links or All Elements.
- Name your trigger clearly (e.g., “All Link Clicks” or “CTA Button Clicks”).
- Optional: Add conditions, like only firing when Click Text contains “Buy Now”.
Click Save.
Step 3: Set Up a GA4 Event Tag
Now, you’ll create a GA4 Event Tag that fires when the click trigger activates.
- Go to Tags > New.
- Choose Google Analytics: GA4 Event.
- Select your existing GA4 Configuration Tag.
- Set Event Name to something like
click_linkorcta_click. - Under Event Parameters, you can add:
- Parameter Name:
link_text— Value:{{Click Text}} - Parameter Name:
link_url— Value:{{Click URL}}
- Parameter Name:
Step 4: Connect the Trigger to the Tag
Link the click trigger you just created to this tag. Click Save.
Step 5: Test Using GTM Debug Mode
Use the Preview feature to activate GTM Debug Mode.
- Click Preview in your GTM workspace.
- Enter your website URL.
- Interact with your site and watch the tag fire in real-time.
If your tag shows as “Fired” when clicking the right elements, you’re all set.
This is a fast and reliable way to track user interactions. When you know how to set up GA4 in GTM, you’ll have better control over your analytics setup—and more useful data to work with.
Which Comes First: Set Up GTM or GA4?
When you’re figuring out how to set up GA4 in GTM, the first thing to understand is the order of setup. It’s important to start with Google Analytics. You need a GA4 property created before you can link it through Google Tag Manager. Without it, there’s nothing to connect to or send data.
Why GA4 Should Be Set Up First
Setting up GA4 first ensures your Measurement ID is available. That ID is essential for the GA4 Configuration Tag in GTM.
Here’s the flow:
• Create a GA4 property in your Google Analytics account.
• Copy the Measurement ID.
• Use that ID in your GTM GA4 Configuration tag.
Doing it in the opposite order leads to wasted time and broken tags.
How They Work Together
Let’s break it down:
- GA4 collects and processes your website data.
- GTM controls how and when that data gets sent.
That’s why setting up GA4 first makes your GTM configuration more efficient.
Google Tag Manager vs Google Analytics
You might hear people compare these tools, but they do very different things:
- Google Tag Manager is a tag deployment tool. It controls when and where your tracking codes fire.
- Google Analytics is the platform that receives and reports on that data.
They don’t replace each other—they work together. Once you know how to set up GA4 in GTM, you’re combining both tools to build a flexible and scalable analytics setup.
How Do You Add Custom Events to GA4 via GTM?
Understanding how to set up GA4 in GTM includes learning how to track custom events. These are events you define yourself—interactions that don’t automatically show up in GA4, like form submissions, video plays, or clicks on specific elements. Adding them through Google Tag Manager lets you track what matters most to your goals.
What Counts as a Custom Event?
Custom events are any user actions that aren’t tracked by default in GA4. Some examples:
- Clicking a “Submit” button on a form
- Watching a product demo video
- Downloading a PDF or whitepaper
- Clicking on phone numbers or external links
These give you deeper insights than basic pageview tracking.
Step-by-Step: Create a Custom Event Tag in GTM
Here’s how to create and push a custom event to GA4:
1. Set Up a Trigger
- Go to Triggers > New
- Choose a trigger type (like Click or Form Submission)
- Define the conditions (e.g., Click Text contains “Submit”)
2. Create a GA4 Event Tag
- Go to Tags > New
- Select Google Analytics: GA4 Event
- Choose your GA4 Configuration Tag
- Set the Event Name (e.g.,
form_submit) - Under Event Parameters, add useful values like:
button_text={{Click Text}}page_path={{Page Path}}
3. Link the Trigger
- Connect your trigger to the tag
- Click Save
Testing with GTM Debug Mode
Before you publish, use gtm debug mode:
- Click Preview in your GTM workspace
- Interact with the element (form, button, etc.)
- Watch the tag fire in the debug console
This confirms the event is working before it sends any data to GA4.
Once you’ve added a few custom events and tested them, you’ll start to see them appear in GA4 under Events. When you know how to set up GA4 in GTM, you can move beyond basic tracking and start collecting valuable data specific to your business. And if you ever need help, a trusted digital marketing agency in New York can help fine-tune your setup.
How to Use GTM Debug Mode While Setting Up Google Analytics
Using GTM Debug Mode is one of the most important steps when configuring tags. It shows you exactly how your tags behave on your site before anything goes live. If you’re working through how to set up GA4 in GTM, this tool helps confirm you’re doing it correctly.
What Is GTM Debug Mode?
Also called Preview Mode, GTM Debug Mode lets you interact with your site in real-time while viewing which tags fire, which don’t, and why. It’s a built-in testing tool that saves you from guessing or pushing broken setups live.
How to Activate GTM Debug Mode
Follow these quick steps:
- Open your GTM workspace
- Click Preview (top right)
- Enter your website’s URL and hit Connect
- Your site opens in a new tab, and the GTM debug panel loads below it
Now, as you click through your site, you’ll see:
- Which tags fired on each page
- What triggers caused them
- Which variables were captured
What to Look for When Testing Tags
Use the debug panel to check:
- Event tracking: Does your custom click or form submission tag fire correctly?
- GA4 Configuration: Is your GA4 Measurement ID being used in the tag?
- Trigger accuracy: Are the right conditions met before a tag fires?
If something isn’t working, the debug tool often points to the issue—missing variables, incorrect conditions, or configuration errors. Landing pages should load quickly on all devices and be optimized for performance. Metrics like Core Web Vitals directly impact user experience, tracking accuracy, and overall analytics reliability.
Why It Matters
Skipping debug mode means you could be collecting the wrong data—or none at all. When you’re figuring out how to set up GA4 in GTM, previewing and testing give you confidence that your setup is clean, accurate, and doing exactly what you expect.
How to Add GA4 to WordPress Sites via Google Tag Manager
If you’re using WordPress, getting GA4 up and running is simple with Google Tag Manager. Once you know how to set up GA4 in GTM, connecting it to your WordPress site becomes a quick and repeatable process. No need for custom coding or third-party tracking plugins.
Step 1: Create Your GA4 Property
Before doing anything in GTM or WordPress, make sure you:
- Log in to Google Analytics
- Create a new GA4 property
- Copy the Measurement ID (starts with “G-“)
This ID will be used to send data from GTM to GA4.
Step 2: Install Google Tag Manager on WordPress
There are two main ways to install GTM on your site:
Using a Plugin
- Popular options: “Insert Headers and Footers” or “Site Kit by Google”
- Paste your GTM container code in the header section
Manual Installation
- Copy GTM container code from your workspace
- Paste it directly into your WordPress theme’s
header.phpandbody.phpfiles
Once installed, your site is linked to your GTM container.
Step 3: Add Google Analytics to Google Tag Manager
Now it’s time to connect GA4 to GTM:
- In GTM, go to Tags > New
- Choose Google Analytics: GA4 Configuration
- Paste in your Measurement ID
- Set the trigger to All Pages
- Save and publish your container
This tag ensures that every pageview is sent to GA4.
Step 4: Confirm Everything Works
Use GTM debug mode to test your setup:
- Click Preview in GTM
- Enter your site URL
- Make sure the GA4 tag fires on page load
Then, go into GA4 > Realtime reports. You should see your own visit appear almost immediately.
Frequently Asked Questions
How long does it take to set up GA4 using GTM?
Once you have your GA4 property and GTM container ready, it usually takes under 10 minutes to complete the setup. That includes adding the GA4 configuration tag, setting up basic event tracking, and testing with GTM Debug Mode.
Can I use GA4 without using Google Tag Manager?
Yes, but using GTM gives you more control. It allows you to manage all tracking tags from one place without editing your site’s code every time you want to make a change.
What’s the difference between Google Tag Manager and Google Analytics?
This is a common question. Think of it like this: Google Tag Manager vs Google Analytics isn’t a choice between tools—they work together. GTM controls how and when data is sent. GA4 receives and reports that data.
What is GTM Debug Mode and why is it important?
gtm debug mode lets you test your tracking setup before it goes live. It shows you which tags fire, what triggers them, and which variables are captured. It helps avoid incorrect or missing data in GA4.
What if I need help setting things up?
If you want expert support, working with a Trusted Digital Marketing Agency in New York can help you avoid mistakes and optimize your setup for long-term use.
How do I add Google Analytics to Google Tag Manager more than once?
You don’t need to. You can use the same GA4 Configuration Tag across multiple event tags in GTM. Just make sure it’s properly set up and triggered on all pages where tracking is needed.
Power Up Your Analytics and Marketing with Expert Support
Setting up tools like GA4 and Google Tag Manager is just one part of building a strong foundation. When analytics is aligned with content and technical SEO, your strategy becomes far more powerful and measurable. To turn insights into action, you need a strategy that aligns data with growth. At Presentation Multimedia, we don’t just install tracking codes we help you understand what your data means and how to use it to improve conversions, visibility, and ROI across every channel.
From SEO and paid ads to website design and branding, our team becomes an extension of yours. We focus on what matters most—building measurable results and long-term success.
Let Presentation Multimedia show you what strategic marketing looks like when every move is backed by real insight. Connect with us today and take control of your digital future.


