Overview

Google Analytics 4 (GA4) is an analytics service that provides tools for measuring traffic and engagement across websites and applications. It represents a significant architectural shift from its predecessor, Universal Analytics (UA), by adopting an event-driven data model rather than a session-based one. This change facilitates a more comprehensive understanding of the user journey, enabling organizations to track interactions consistently across different platforms, such as web browsers and mobile apps simultaneously (Google Analytics 4 introduction).

GA4 is particularly suited for organizations that require a unified view of customer interactions across multiple digital touchpoints. Its event-based structure allows for granular customization of tracked events, providing flexibility in defining what constitutes a meaningful user interaction. For instance, instead of predefined hit types like pageviews or events in UA, everything in GA4 is an event, including page views, scrolls, clicks, video engagement, and app foregrounds. This model supports more complex analysis of user paths and engagement patterns.

A core capability of GA4 is its integration with other Google products. It offers direct links to Google Ads for campaign optimization, and BigQuery for advanced data warehousing and analysis (Google Marketing Platform Analytics overview). The inclusion of predictive capabilities, powered by machine learning, allows GA4 to forecast user behavior, such as potential churn or purchase probability. This enables proactive marketing strategies and refined audience segmentation. GA4 also includes enhanced privacy controls, such as cookieless measurement options and simplified data deletion requests, which align with evolving global privacy regulations like GDPR (GA4 data privacy).

Developers and technical buyers benefit from GA4's Measurement Protocol, which allows for server-side data collection, expanding tracking capabilities beyond client-side JavaScript implementations. The Google Analytics Data API provides programmatic access to reporting data, enabling custom dashboards and integrations with internal systems. This flexibility supports complex data architectures and advanced analytical requirements, making GA4 a tool for both marketing insights and technical data integration.

Key features

  • Event-based data model: Tracks all user interactions as events, providing a unified framework for web and app data.
  • Cross-platform tracking: Unifies data from websites and mobile applications into a single property for a holistic view of the customer journey.
  • Machine learning-powered insights: Offers predictive metrics like purchase probability and churn likelihood, and automatically identifies significant data trends.
  • Enhanced privacy controls: Includes options for cookieless measurement, consent mode, and simplified data deletion to comply with privacy regulations such as GDPR (GA4 data privacy).
  • Direct integration with Google products: Seamlessly connects with Google Ads, Google Search Console, and BigQuery for comprehensive analysis and activation.
  • Flexible reporting and analysis: Provides customizable reports and an 'Explorations' interface for ad-hoc analysis, funnel exploration, and path analysis.
  • Measurement Protocol: Allows developers to send data directly to GA4 from any internet-connected environment, including servers and IoT devices (GA4 Measurement Protocol).
  • Google Analytics Data API: Provides programmatic access to GA4 reporting data, enabling custom data visualization and integration with other systems (GA4 Reporting API).

Pricing

Google Analytics 4 offers a standard version that is free to use, suitable for most small to medium-sized businesses. For enterprise-level requirements, Google Analytics 360 provides advanced features, higher data processing limits, and dedicated support, available through custom enterprise pricing.

Google Analytics 4 Pricing Tiers (as of 2026-06-03)
Tier Description Features Pricing Model
Google Analytics 4 (Standard) Core web and app analytics. Event-based tracking, cross-platform reporting, basic predictive capabilities, BigQuery export limits. Free (Google Analytics Compare)
Google Analytics 360 Enterprise-grade analytics with expanded capabilities. Higher data processing limits, unsampled reporting, advanced integrations, guaranteed SLAs, dedicated support, Google Cloud project linking. Custom enterprise pricing (Google Analytics Compare)

Common integrations

  • Google Ads: Link GA4 properties to Google Ads accounts to import conversions, build audiences, and optimize ad campaigns (Link Google Analytics 4 to Google Ads).
  • Google Tag Manager: Deploy and manage GA4 tags and other measurement code without modifying website code directly (Google Tag Manager GA4 setup).
  • BigQuery: Export raw, event-level data from GA4 to BigQuery for advanced querying and analysis, particularly useful for large datasets and complex data models (BigQuery export for GA4).
  • Google Search Console: Integrate to view organic search performance data within GA4 reports (Search Console integration).
  • Google Ad Manager: Connect to understand the impact of advertising on user behavior and revenue (Ad Manager data in GA4).
  • Salesforce Marketing Cloud: Integrate for personalized marketing campaigns based on GA4 audience segments.
  • Shopify: Use specific Shopify integrations or Google Tag Manager to track e-commerce events and user behavior on Shopify stores (Shopify Google Analytics setup).

Alternatives

  • Matomo: An open-source web analytics platform offering self-hosting options and strong data ownership features.
  • Plausible Analytics: A lightweight, privacy-focused web analytics tool known for its simple interface and GDPR compliance.
  • Mixpanel: A product analytics tool focused on understanding user behavior, funnels, and retention, particularly in software products.
  • Serpstat: Primarily an SEO and PPC analysis tool, Serpstat also provides website audit features that include some traffic and usage statistics, offering an alternative perspective on website performance beyond pure user behavior tracking (Serpstat traffic analysis).
  • Adobe Analytics: Part of Adobe Experience Cloud, offering advanced analytics capabilities for enterprise clients, with robust segmentation and real-time reporting (Adobe Analytics overview).

Getting started

To begin collecting data with Google Analytics 4 on a website, the primary method involves embedding a JavaScript global site tag (gtag.js) into the HTML of each page. This tag loads the GA4 library and sends events to your property.

<!-- 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>

Replace G-XXXXXXXXXX with your actual GA4 Measurement ID, which can be found in your Google Analytics 4 property settings under Admin > Data Streams > Web > Measurement ID (Find your Measurement ID). For app tracking, the Firebase SDK is used, which then integrates with GA4 (Firebase Analytics SDK).