Learn Google Analytics

Measure how people find and use your website with Google Analytics 4

44 lessons · 7 hours · 4 levels · covers Google Analytics GA4

Google Analytics 4 (GA4) is Google's free web and app analytics product. A small tag on your site sends events to a property, and GA4 turns them into reports about traffic sources, engagement, conversions and revenue, plus the Explore workspace for ad-hoc analysis. Learning it well means knowing the event data model, instrumenting a site correctly, and reading and building the right reports and explorations.

Before you start

Google Analytics builds on these; the tree links to the exact lessons you need.

How deep do you want to go?

1. EssentialsRead and write simple code, do the everyday basics12 lessons · 2 hours in total
2. PracticalUse it productively at work, with the usual idioms27 lessons · 4 hours in total
3. AdvancedThe less common features, performance and trade-offs39 lessons · 6 hours in total
4. ExpertInternals and the edge cases experts know44 lessons · 7 hours in total

The Google Analytics tree

Google AnalyticsWhat Google Analytics 4 isWhat GoogleAnalytics 4 isAccounts, properties and data streamsAccounts, propertiesand data streamsEvents and parametersEvents andparametersUsers, sessions and engagementUsers, sessions andengagementDimensions, metrics and scopeDimensions, metricsand scopeInstalling the tag with gtag.jsInstalling the tag withgtag.jsEnhanced measurementEnhancedmeasurementVerifying with DebugView and RealtimeVerifying withDebugView and Re…UTM parameters and campaign trackingUTM parameters andcampaign trackingReports snapshot, date ranges and comparisonsReports snapshot,date ranges and co…Acquisition reports and channel groupsAcquisition reportsand channel groupsEngagement, retention and user reportsEngagement,retention and user r…Reporting identityReporting identitySending custom events with gtagSending customevents with gtagKey events (conversions)Key events(conversions)User properties and custom definitionsUser properties andcustom definitionsCustomising reports in the LibraryCustomising reportsin the LibraryWhat explorations areWhat explorationsareThe Explore workspaceThe ExploreworkspaceFree-form tablesFree-form tablesFree-form charts and anomaly detectionFree-form charts andanomaly detectionFunnel explorationFunnel explorationEcommerce events and the items arrayEcommerce eventsand the items arrayMonetization reports and item scopeMonetization reportsand item scopeData filters: internal and developer trafficData filters: internaland developer trafficData retention and deletion requestsData retention anddeletion requestsLaunch checklist and access rolesLaunch checklist andaccess rolesHead metadata and SEOHead metadata andSEOLoading scripts: defer, async, moduleLoading scripts:defer, async, moduleLinksLinks
Essentials and Practical shown (27 of 44 lessons); the full list is below. Click a lesson to read it.

All 44 lessons, in order

Foundations

  1. What Google Analytics 4 is · Essentials · 7 min

    GA4 is Google's event-based analytics product that replaced Universal Analytics in 2023.

  2. Accounts, properties and data streams · Essentials · 8 min

    An account holds properties; a property holds data streams; a web stream gives you the G- measurement ID.

  3. Events and parameters · Essentials · 9 min

    Every interaction is an event with a name and key-value parameters; GA4 has four kinds of events.

  4. Users, sessions and engagement · Essentials · 9 min

    How GA4 counts users and sessions, and what makes a session or user 'engaged'.

  5. Dimensions, metrics and scope · Essentials · 9 min

    Dimensions describe, metrics count, and each belongs to a user, session, event or item scope.

  6. Reporting identity · Practical · 9 min

    How GA4 decides that two events belong to the same person: User-ID, device ID and modelling.

Setting up a website

  1. Installing the tag with gtag.js · Essentials · 9 min

    Paste the Google tag snippet into <head> on every page, or load GA4 through Google Tag Manager.

  2. Enhanced measurement · Essentials · 8 min

    Toggle automatic scroll, outbound click, site search, video, file download and form events in the web stream.

  3. Verifying with DebugView and Realtime · Essentials · 8 min

    Check that events and parameters arrive as intended before you trust a single report.

  4. UTM parameters and campaign tracking · Essentials · 8 min

    Tag your campaign URLs with utm_source, utm_medium and utm_campaign so GA4 attributes traffic correctly.

  5. Sending custom events with gtag · Practical · 10 min

    Use gtag('event', name, {params}) to record interactions GA4 cannot see on its own, preferring recommended names.

  6. Key events (conversions) · Practical · 8 min

    Mark the events that represent success as key events so GA4 counts and attributes them everywhere.

  7. User properties and custom definitions · Practical · 10 min

    Register your own parameters as custom dimensions and metrics, and describe users with user properties.

  8. Single-page apps and cross-domain tracking · Expert · 12 min

    Handle client-side routing and multi-domain journeys so sessions and page views stay correct.

Standard reports

  1. Reports snapshot, date ranges and comparisons · Essentials · 9 min

    Find your way around the Reports section: snapshot, Realtime, collections, dates, comparisons and filters.

  2. Acquisition reports and channel groups · Essentials · 9 min

    User acquisition vs traffic acquisition, and how source/medium become default channel groups.

  3. Engagement, retention and user reports · Essentials · 9 min

    Read the Events, Pages and screens, Landing page, Retention, User attributes and Tech reports.

  4. Customising reports in the Library · Practical · 9 min

    Edit report cards, dimensions and metrics, build new detail reports and organise collections in the Library.

Explore

  1. What explorations are · Practical · 9 min

    Explore queries raw event data with segments, funnels and paths; it can sample and is limited to the retention window.

  2. The Explore workspace · Practical · 9 min

    Variables, Tab settings and the canvas: how the three panels of an exploration fit together.

  3. Free-form tables · Practical · 10 min

    Build a table with rows, columns and values, nest rows, pivot and filter: the workhorse of Explore.

  4. Free-form charts and anomaly detection · Practical · 9 min

    Switch a free-form tab to donut, line, scatter, bar or geo, and turn on anomaly detection on a line chart.

  5. Funnel exploration · Practical · 10 min

    Define ordered steps and see how many users complete each one, where they drop off, and how long it took.

  6. Open vs closed funnels and funnel diagnostics · Advanced · 9 min

    Choose between open and closed funnels, and use breakdown, elapsed time, next action and trends to diagnose a leak.

  7. Segments and segment overlap · Advanced · 11 min

    Build subsets of users, sessions or events with scoped conditions, tell them apart from filters, and compare them with segment overlap.

  8. Sequence segments · Advanced · 9 min

    Define users by an ordered series of steps, with direct or indirect succession and time limits.

  9. Path exploration · Advanced · 9 min

    Follow what users did before or after an event or page as a tree of nodes, forwards or backwards.

  10. User explorer · Advanced · 8 min

    Inspect individual users' event timelines and delete a single user's data from there.

  11. Cohort and user lifetime explorations · Advanced · 11 min

    Group users by when they arrived or acted and measure their return, plus per-user lifetime value and engagement.

  12. A weekly analysis workflow with Explore · Advanced · 12 min

    A worked example that strings reports, free form, a funnel and a segment into a repeatable weekly review.

  13. Sampling, thresholding and precision in Explore · Expert · 10 min

    How GA4 samples large exploration queries, how thresholding withholds rows, and what you can do about each.

Ecommerce and attribution

  1. Ecommerce events and the items array · Practical · 12 min

    Send view_item, add_to_cart, begin_checkout and purchase with an items array to light up revenue reporting.

  2. Monetization reports and item scope · Practical · 8 min

    Read the Ecommerce purchases, Purchase journey and Checkout journey reports, and item vs event revenue.

  3. Attribution models and conversion paths · Advanced · 10 min

    How GA4 credits key events to channels: data-driven and last-click models, lookback windows and the paths report.

  4. Linking Google Ads and Search Console · Advanced · 8 min

    Connect Google Ads for cost and conversion sharing, and Search Console for queries and organic landing pages.

Governance and data quality

  1. Data filters: internal and developer traffic · Practical · 8 min

    Exclude your own team's and developers' hits with traffic_type rules and data filters, carefully, because filtering is permanent.

  2. Data retention and deletion requests · Practical · 8 min

    Choose 2 or 14 months of event retention, understand what it does and does not affect, and delete data on request.

  3. Launch checklist and access roles · Practical · 9 min

    A pre-launch checklist for a new GA4 property, including who gets which role.

  4. Consent mode v2 and privacy settings · Expert · 12 min

    Set consent defaults before the tag loads, update them from your banner, and know GA4's privacy controls.

  5. Data-quality forensics · Expert · 12 min

    Diagnose duplicate tags, self-referrals, unwanted referrals, missing campaigns, (not set) and bot traffic from their fingerprints.

Audiences and activation

  1. Building audiences · Advanced · 10 min

    Define groups of users in Admin for reporting, triggers and remarketing, and understand how they differ from segments.

  2. Predictive metrics and audiences · Advanced · 8 min

    Purchase probability, churn probability and predicted revenue, and the ready-made predictive audiences.

  3. BigQuery export · Advanced · 12 min

    Export raw events to BigQuery daily or streaming, understand the nested schema and why it escapes sampling and retention.

  4. The Measurement Protocol · Expert · 9 min

    Send events to GA4 from a server with an HTTP POST, to augment (not replace) browser data.