Free auditStart free
GlossaryGlossary · Measurement

Google Analytics 4

Google Analytics 4 is Google's event-based analytics property type. What it measures, the four event types, how to install the Google tag, and the session timeout.

3 min
read
4
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Google Analytics 4 (GA4) is the event-based property type in Google Analytics. It records interactions as events, such as page loads, clicks, and purchases. You install the Google tag on your site, then mark the events that matter to your business as key events.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01At a glance

What GA4 measures

Google's developer documentation says events measure user interactions on your website or app, for example when someone loads a page, clicks a link, or makes a purchase. Google Analytics uses data from events to build its reports, and a page view is one event type among several.
Event type

Automatically collected

Setup needed
No
Examples
first_visit, session_start, user_engagement
Event type

Enhanced measurement

Setup needed
No (typically), once enabled in the Google Analytics UI
Examples
scroll, click, file_download
Event type

Recommended

Setup needed
Yes
Examples
purchase, login, sign_up
Event type

Custom

Setup needed
Yes
Examples
Events you define because no other type fits

Sessions are built from these events. Google's developer guide says a session's default duration is 30 minutes, and that you can adjust that timeout in the Google Analytics interface up to a maximum of 7 hours and 55 minutes.

02How it works

How to install the Google tag

  1. 1

    Create a property and a web data stream

    Google's guide assumes you have created a Google Analytics account and property, and a web data stream for your website.

  2. 2

    Copy your tag ID

    Paste it into the Google tag snippet. A Google Analytics web tag ID looks like G-XXXXXXXXXX.

  3. 3

    Paste the snippet

    Google says to place the Google tag snippet immediately after the opening <head> HTML tag on every page you want to measure.

  4. 4

    Verify

    Check your events and their parameters in the Realtime and DebugView reports. Google notes that DebugView needs some additional configuration before you can use it. Google also points to Tag Assistant to check that the tag is sending data.

The Google tag (replace G-XXXXXXXXXX with your ID)
<!-- 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>

Google's gtag.js guide says it recommends using Google Tag Manager to set up and deploy tags on your site. Pick one way to deploy each tag.

03Good to know

Key events and engaged sessions

A key event is the current name for what Google Analytics previously called a conversion event. Which events you mark is a business decision, such as a form submission, sign-up, or purchase.

Google's developer guide defines an engaged session as one that lasts longer than 10 seconds, has 2 or more page views, or triggers a key event.

05Checklist

Common mistakes

First2
Deploying the same Google tag both in page code and in Tag Manager. Pick one deployment method per tag.
Never marking key events, so reports show traffic but no outcomes.
Next1
Expecting GA4 to show your keyword rankings. It reports on events after a visit begins; use rank tracking or Search Console for positions.
Then1
Untagged campaign links. Use consistent UTM parameters so campaign traffic is identified.
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Do I need Google Tag Manager to use GA4?

No. Google's gtag.js guide shows copying the tag snippet into your pages directly. Google recommends Tag Manager for setting up and deploying tags, but the guide does not make it a requirement.

02How do I check that events are arriving?

Use the Realtime and DebugView reports. DebugView requires some additional configuration before you can use it.

03What counts as a key event?

Any event you decide matters to your business. Google's developer docs say key event is the current name for a conversion event.

04How long is a session?

A session's default duration is 30 minutes. You can change the timeout in the Google Analytics interface, up to 7 hours and 55 minutes.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01Google Analytics for developersdevelopers.google.com · checked 2026-10-24
  2. 02Set up events - Google Analytics for developersdevelopers.google.com · checked 2026-10-24
  3. 03Measure sessions and user engagement - Google Analytics for developersdevelopers.google.com · checked 2026-10-24
  4. 04Set up the Google tag with gtag.jsdevelopers.google.com · checked 2026-10-24
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly