Feb 25, 2026
Larassatti D.
11min Read
Google Analytics 4 (GA4) is a Google platform for tracking how users interact with your website or app using an event-based data model.
This means every user interaction, such as page views, clicks, form submissions, and purchases, is captured as a separate event rather than grouped into sessions. This approach makes GA4 more flexible and better suited for cross-platform tracking.
GA4 is suitable for a wide range of users, from website owners to marketers who want better visibility into how their content and campaigns perform. While GA4 can feel complex at first, you can learn progressively. If you’re a beginner, you can start with a basic understanding of how your website works and what actions matter most to your goals.
To set up GA4, you’ll need to complete three main steps:
Once your tracking is in place, you can configure key events to measure important goals, such as form submissions or purchases.
From there, GA4’s reports and explorations help you understand not just what happened on your site, but also why it happened. These insights allow you to make data-driven marketing decisions and continuously improve your performance.
Setting up GA4 involves three main steps: creating a property and data stream, installing the tracking code on your website, and verifying that data flows correctly.
The entire process usually takes 15-30 minutes, depending on the installation method you choose.
To demonstrate the process, we’re focusing on the Web as the data stream choice.
Before you can start tracking activity, you need to create a GA4 property and get your Measurement ID. This ID helps Google identify which platform the collected data belongs to.
Here’s how to set up a new GA4 property and find your Measurement ID:
After returning to the Home section, you’ll find your Measurement ID, which begins with “G-”. You’ll use this ID to connect GA4 to your website in the next step.

Creating a data stream in GA4 doesn’t immediately start data collection. To begin tracking user activity, install GA4 on your website using your Measurement ID to connect your site to your GA4 property.
There are two main ways to install GA4, depending on how much control you need:

To install GA4 via Google Tag Manager (GTM), you’ll first create a GTM container, add it to your website, and then configure a GA4 tag.
GTM will generate two code snippets — keep this window open, as you’ll need them next.

How you install GTM depends on your setup:
Once installed, GTM can load and manage all your tracking tags.
Now connect GA4 to your site through GTM:


Since GA4 runs silently in the background, you won’t see visible changes on your website. To confirm that your data tracking is active and working correctly, you can use the Realtime reports or the DebugView methods.
Realtime reports show user activity from the last 30 minutes, so this is the simplest way to check that the tracking works properly.
Do the following to check GA4 data collection in real time:

If you don’t see activity, check if any of these elements are blocking the data tracking:
While Realtime shows that someone is accessing your site, DebugView shows exactly what data is being sent. It provides a second-by-second timeline, making it ideal for validating custom events.
These are the steps to check GA4 data collection using DebugView:

You’ll know that your GA4 data tracking works correctly if:
GA4 uses an event-based model, meaning every user interaction is tracked as an individual event with additional context (parameters). Instead of grouping actions into sessions, GA4 focuses on what users actually do: clicks, scrolls, purchases, and more.
Events track every user interaction on your website or app. GA4 organizes events into four categories:
💡 Use recommended event names instead of custom ones whenever possible. They integrate automatically with Google Ads for bidding optimization and unlock built-in ecommerce and key event reports.
Key events (formerly conversions) are the specific user actions you identify as vital to your business success. You can mark GA4 default events as key events or set up custom ones. They can be anything from a lead form submission to a purchase to a whitepaper download.
You can access all your GA4 events by navigating to Admin → Data display → Events. If you want to mark any Recent events as a key event, you can simply click the star icon on the left side of the event.

Note that the purchase event is marked as a key event by default on GA4, and you can’t unmark it.
If you want to create a new key event, click on the Create event button and make sure you’re enabling the Mark as key event toggle.
When naming the event, follow Google’s naming convention: use all lowercase letters and an underscore separator, for example, generate_lead.

You can control how GA4 counts each key event:
To change this, go to Admin → Data display → Key events, click the event, then select Change counting method.
Alternatively, creating new events in GTM will automatically sync to Google Analytics, which you can simply mark as a key event.
We suggest marking events that directly indicate business value, such as:
Avoid marking micro-interactions like page views or scrolls as key events. These inflate conversion numbers and make your data harder to act on.
➡️ If you can’t see your newly created event, that’s normal, as you may need to wait for up to 24 hours for an event to appear in the list.
GA4 organizes your data into two main areas: Reports and Explorations.
Reports are prebuilt dashboards that answer common questions about your traffic and performance. Explorations are custom analysis tools that help you investigate specific behaviors in more detail.
Put simply, Reports answers “What is happening on my site?” and Explorations helps you dig deeper and explain “Why is it happening?”
Let’s break them down.
The Reports section contains the standard dashboards you’ll use often. These reports help you monitor traffic, engagement, conversions, and user behavior over time.
What you see here depends on your setup:

While the labels may differ, both collections contain essentially the same data, just organized to match your focus. Across these menus, you’ll find reports covering the following areas:
These reports give you a complete view of the user journey, from discovery to conversion and repeat visits.
You can customize most reports using the pencil icon in the top-right corner of a report. This opens GA4’s report builder, where you can adjust dimensions, metrics, and chart types, or apply filters to better match your needs.

For broader changes, such as rearranging sidebar menus, renaming sections, or hiding reports you don’t use, you can open the Library at the bottom of the sidebar. This is where you manage the overall structure of your Reports navigation and keep your GA4 workspace focused and clutter-free.
Keep in mind that these options are only available if you have Editor or Administrator permissions.
While standard reports provide high-level summaries, Explorations give you access to raw event-level data. This workspace allows you to stress-test your data by dragging and dropping specific dimensions and metrics into advanced, customizable layouts.
Explorations are best used once you’re comfortable with GA4’s standard reports and need answers to more specific questions, such as why users convert or don’t.

You can use Explorations to:
To move beyond basic reporting, Explorations include multiple modes:
| Mode | Best used for | Practical question example |
| Free-form | Custom tables and charts | Which city drives the most high-value transactions? |
| Funnel exploration | Visualizing conversion steps | Where do users drop off during our 5-step checkout? |
| Path exploration | Analyzing navigation patterns | What pages do users visit after reading a specific blog post? |
| Segment overlap | Comparing audience groups | How many mobile users are also newsletter subscribers? |
| User explorer | Reviewing individual user journeys | What actions did a user take before making a $500 purchase? |
| Cohort exploration | Measuring retention over time | Do users acquired in January return more often than those from February? |
By default, GA4 retains event-level data required for Explorations for 2 months.
To analyze historical data, go to Admin → Data settings → Data retention, and set the retention period to 14 months. If you leave it at the default, your explorations will appear empty for any date range older than 60 days.
GA4 can feel complex, but its strength is context. It shows not just how many users visit your site, but where they come from, what they do, and which actions actually drive results.
To turn data into decisions, focus on three areas: traffic sources, content performance, and conversion paths.
Start by identifying which channels bring in the most valuable users, not just the most visitors.
Go to Reports → Acquisition → Traffic acquisition and set the primary dimension to Session source/medium.
Compare channels based on Engagement rate and Key event rate, instead of just sessions.
Pay close attention to situations where user behavior doesn’t match what you would expect from a channel.
If paid traffic brings in users but shows low engagement or conversion rates, it’s a strong signal that budget is being wasted. This usually means the landing page doesn’t deliver on the promise made in the ad, or there’s another issue in the user experience.
The same applies to social media traffic. If users arrive and leave immediately without engaging, it may indicate a mismatch between the content, the audience, or the landing page.
Next, review how individual pages perform.
Go to Reports → Engagement → Pages and screens and sort by Average engagement time. Look for pages where users spend a long time, but that receive relatively few views.
These pages are often strong content pieces that simply need more visibility. You can feature them on your homepage, link to them from other posts, or include them in email campaigns.
Also, check pages with high exits, especially product or signup pages. A high exit rate may signal a technical issue or a missing call to action.
Look for patterns in your data. When multiple pieces of content underperform in similar ways, those similarities can point to a shared issue that needs to be fixed. On the other hand, identifying patterns behind high-performing content helps you understand what works, so you can replicate the formula and double down on your effort.
At the bottom of the funnel, look at how different channels work together before a conversion.
Go to Advertising → Attribution → Conversion paths to see the sequence of touchpoints that lead to key events.
You’ll often notice that some channels introduce users to your brand, while others close the sale. For example, social media or display ads may appear early in the path, while direct or organic traffic appears at the end.
This insight helps you avoid undervaluing channels that assist conversions, even if they are not the final click.
Identifying your “money channels,” which are the ones that consistently convert, is key to success. Once you know what works, you can scale those channels faster and allocate your resources more effectively.
Google Analytics 4 helps you move beyond surface-level metrics and build a more effective ecommerce marketing strategy, based on real user behavior.
Instead of relying on assumptions, you can see how users discover your store, how they interact with your content, and what drives them to convert. This makes it easier to invest in the right channels, improve weak points in your funnel, and focus on what actually generates revenue.
Use GA4 on a regular basis to:
In short, GA4 transforms your store data into actionable marketing insights. When you understand where your customers come from, how they interact with your site, and what influences their purchasing decisions, you can build more effective campaigns and improve overall ecommerce performance.

All of the tutorial content on this website is subject to Hostinger's rigorous editorial standards and values.
Comments
December 13 2022
hi, thanks for this useful tutorial, i have question, i just made the tag for preorder button and every thing is working fine, but it does not appear as an event in my google analytics account. the triggers is firing and in debug view i can see my tag working, but is this data collected?
December 15 2022
Hey there! If your eCommerce tag does not reflect in your Google Analytics data this indicates an issue with the configuration. It is critical that Data Layer be formatted exactly as Google specifies in its documentation. This includes the data structure, attribute names, value format, and so on.