Google Analytics 4 (GA4) is Google's free analytics tool, based on events. How it works, its key reports and how to use it for SEO and AI traffic.

On this page
Summary
Google Analytics 4 (GA4) is the current version of Google's free web and app analytics tool. It records every interaction as an event, measures where visitors come from, what they do and which actions lead to conversions, and it replaced Universal Analytics in 2023.
Want to go further? Ask
Google Analytics 4 (GA4) is Google's free analytics platform for measuring how people find and use a website or a mobile app, built on a model where every interaction is recorded as an event. It shows how many users visit, where they come from (search, ads, social networks, email, AI assistants), which pages they view, how engaged they are and which actions, called key events, lead to business results such as sign-ups or purchases.
GA4 replaced Universal Analytics, which stopped processing data for standard properties on July 1, 2023. The change was more than a new interface: GA4 measures differently, so some figures are not directly comparable with the old tool. Understanding its logic is the first step to reading it correctly.
GA4 is organized in accounts and properties. A property collects data from one or several data streams: a website, an iOS app, an Android app. A tracking tag (the Google tag, installed directly or through Google Tag Manager) sends events to the property each time a visitor does something: views a page, scrolls, clicks a link, watches a video, submits a form, buys a product.
Some events are collected automatically, others through enhanced measurement (scrolls, outbound clicks, site search, file downloads), and you can create your own. Events you mark as important become key events, the GA4 name for what used to be called conversions.
Universal Analytics was built around sessions and page views. GA4 is built around users and events, which makes it possible to measure websites and apps in the same property. Bounce rate, central in the old tool, has been redefined: in GA4, an engaged session lasts more than 10 seconds, includes a key event or includes at least two page views, and the bounce rate is simply the share of sessions that are not engaged.
GA4 also relies more on modeling. With consent mode, it can estimate part of the behavior of users who refuse cookies. Reports may apply thresholds to protect privacy, and standard properties keep detailed event data for two or fourteen months, depending on the setting. For longer history and custom analysis, GA4 offers a free export to BigQuery.
The default channel group assigns each visit to a channel (organic search, paid search, direct, referral, organic social, email and others) using its source and medium. It is the starting point for reading website traffic by source.
In GA4 reports, the “Users” column is the Active users metric: unique users who engaged with your site or app during the date range. GA4 also offers Total users, New users and Returning users, and each one counts something different. Checking which metric a report shows settles most “why don't my numbers match” questions.
| Metric | What it counts | Use it for |
|---|---|---|
| Active users (shown as “Users”) | Unique users with an engaged session, or for whom GA4 recorded a first visit or engagement time | The default audience size in reports |
| Total users | Unique users who triggered any event | Full reach, including people who never engaged |
| New users | Unique users who logged first_visit (websites) or first_open (apps) | Acquisition: how many people discover you |
| Returning users | Users who started at least one previous session, engaged or not | Loyalty and retention |
Total users is always equal to or higher than Active users, since it also counts people who never engaged. A visitor can also be new and returning in the same period: someone who discovers your site on Monday and comes back on Thursday counts in both, so New users plus Returning users can exceed the total. Our page on new users covers that metric in detail. The definitions above follow Google's help page on user metrics.
On a website, GA4 identifies a user through the client ID stored in the _ga cookie. That ID belongs to one browser on one device. The same person on a phone and a laptop counts as two users, and a visitor who clears cookies comes back as a new one. If your visitors sign in, send your own User-ID so GA4 can merge their devices.
The Reporting identity setting (Admin, then Data display) decides which identifiers GA4 uses: Blended (User-ID, then device ID, then modeling for visitors who refuse cookies), Observed (User-ID, then device ID) or Device-based (device ID only). Note which option you use before you compare user counts with another tool or another property.
“Users” also means the people who can open your property. To give a colleague or an agency access, go to Admin, open Access management at the account or property level, click +, choose Add users, enter their Google Account email, select a role and click Add. Only an Administrator at that level can do it. Give Viewer access to people who only read reports, and keep Administrator for the few who change settings.
Create a property and a web data stream, then install the Google tag on every page, ideally through Google Tag Manager. Check that enhanced measurement is active, define your key events (lead form, demo request, purchase), and add e-commerce events if you sell online. Set data retention to fourteen months, exclude internal traffic and declare any domains that should not appear as referrals.
Then connect the tools around it. Linking GA4 with Google Search Console adds reports on organic queries and landing pages, and linking it with Google Ads imports ad costs and conversions. Use UTM parameters on every campaign link you control, so that email, social and partner traffic is attributed correctly.
To set up Google Analytics 4, create an account, add a property, create a web data stream for your site, then install the Google tag on every page. Most steps take a few minutes, but a few choices, such as the time zone, shape every report that follows.
| Setting | What to choose | Why it matters |
|---|---|---|
| Reporting time zone | The time zone of your business | It defines when each day starts and ends in your reports. Changing it only affects data going forward. |
| Currency | The currency you sell in | Revenue and purchase figures are shown in this currency. |
| Enhanced measurement | On | Records scrolls, outbound clicks, site search and file downloads without extra code. |
Tip
Add at least one other administrator during setup, so the property stays manageable if the person who created it leaves the company.
Google's setup guide for websites and apps walks through the same steps. Once the account collects data, tag your own campaign links with UTM parameters from our free UTM link builder, so email, social and partner visits are attributed correctly.
GA4 is where you see what search visibility becomes once people arrive: which pages attract organic traffic, how engaged those visitors are and whether they convert. Search Console shows what happens before the click, GA4 what happens after. Together, they tell you which content earns its rankings.
GA4 also helps measure visits from AI assistants. Sessions referred by ChatGPT, Perplexity, Gemini or Copilot appear with their source in acquisition reports, and a custom channel group can isolate them; our page on AI referred traffic explains how. Part of this traffic arrives without referral data and is counted as direct, so treat the figures as a minimum. Sorank's GEO and SEO dashboard connects Google Search Console and Google Analytics to show Google traffic and AI traffic in one view.
The GA4 tracking ID is called the measurement ID. It starts with "G-" followed by letters and numbers. Copy it into your Google tag or Google Tag Manager setup, and GA4 starts receiving data from your pages.
To find it, open Admin, go to Data collection and modification, then click Data streams. Select the Web tab, open your web stream, and read the measurement ID in the first row of the stream details. Google's Measurement ID help page describes these steps.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script> A code that starts with "UA-" belongs to Universal Analytics. That tool stopped processing data for standard properties on July 1, 2023, so an old UA- snippet adds nothing to your GA4 reports. Replace it with your G- measurement ID and remove the old snippet from your templates.
After you install the tag, open the Realtime report in GA4 and load your site in a new tab. Your visit should appear within a few minutes. If it does not, check these points:
Tip
Write the measurement ID next to the site name in your documentation or password manager. You need it again when you update the tag, add a staging site or check a setup you did not make.
If you manage the tag through Google Tag Manager, read our guide to Google Tag Manager. Once data flows, set up conversion tracking to measure sign-ups and purchases.
GA4 tracks scroll depth automatically, but at a single point: with enhanced measurement on, it sends a scroll event the first time a visitor reaches 90% of a page's height. To see where readers stop (25%, 50%, 75%), add a Scroll Depth trigger in Google Tag Manager and send each threshold as an event. The default event tells you who reached the end, the custom setup tells you where the others left.
In Admin, open your web data stream and check that Scrolls is switched on in enhanced measurement. Then go to Reports, Engagement, Events and click scroll, or build an exploration with Page path as the row and Event count filtered on the scroll event. GA4 also fills the Percent scrolled dimension with the value 90 for these events. Divide scroll events by views for each page to estimate the share of views that reached the bottom. Google states the trigger rule on its enhanced measurement events page.
For the definition of scroll depth and other ways to measure it, see our page on scroll depth.
The most frequent mistake is leaving GA4 with its default setup: no key events, two months of data retention, internal visits counted. Others are comparing GA4 and Universal Analytics figures as if they measured the same thing, double tagging that inflates page views, forgetting UTM parameters, and reading the total traffic without looking at channels or engagement.
Google Analytics 4 is Google's free, event-based analytics tool for websites and apps. It shows where visitors come from, what they do and which actions create value. Set up properly, with key events, longer retention, Search Console and Ads links and clean campaign tagging, it becomes the reference for measuring the results of SEO and the growing traffic from AI assistants.
To go further, read our pages on website traffic, AI referred traffic and Google Search Console. Reference sources: the Google Analytics Help Center and Google Analytics developer documentation.
Sources
Yes. The standard version of GA4 is free, including the export of data to BigQuery. A paid version, Google Analytics 360, is aimed at large companies that need higher limits, longer data retention and service-level guarantees.
Search Console measures performance in Google search before the click: impressions, clicks, positions and indexing. GA4 measures what visitors from all sources do on the site after they arrive. The two are complementary and can be linked.
Partly. Visits that arrive with referral data from chatgpt.com, perplexity.ai, gemini.google.com or copilot.microsoft.com appear in acquisition reports and can be grouped in a custom channel. Visits without referral data are counted as direct, so the real volume is usually higher.
