Complete Google Analytics 4 Cheatsheet: Mastering Modern Web Analytics

Introduction to Google Analytics 4 (GA4)

Google Analytics 4 (GA4) is the latest analytics platform from Google, replacing Universal Analytics with an event-based measurement model. GA4 helps businesses understand how users interact with their websites and apps across devices, providing deeper insights into the customer journey. This shift to event-based tracking allows for more flexible analysis and better privacy compliance in a cookieless future.

Core Concepts of GA4

Event-Based Model vs. Session-Based Model

FeatureGA4 (Event-Based)Universal Analytics (Session-Based)
Primary focusUser actions (events)Sessions and pageviews
Data structureFlexible event parametersFixed dimensions and metrics
Cross-platformUnified web and app trackingSeparate web and app tracking
PrivacyDesigned for cookieless trackingRelies heavily on cookies
Data retentionShorter (2-14 months default)Longer (26 months default)

Key Measurement Entities

  • Users: Individuals who interact with your website or app
  • Events: Specific user interactions (e.g., page_view, scroll, click)
  • Parameters: Additional information about events
  • User properties: Attributes that describe your users
  • Audiences: Groups of users who share common attributes

Default Events vs. Custom Events

Default Events (automatically collected):

  • page_view
  • session_start
  • first_visit
  • user_engagement
  • scroll
  • click
  • view_search_results
  • file_download

Custom Events (you define and implement):

  • Any specific interaction important to your business goals
  • Must be implemented with Google Tag Manager or code

Setting Up GA4

Step-by-Step Implementation

  1. Create a GA4 property:
    • Go to admin > Create Property
    • Enter property details (name, timezone, currency)
    • Configure data collection settings
  2. Add data streams:
    • Web stream for website data
    • iOS/Android app streams for mobile applications
    • Get measurement ID (G-XXXXXXXX)
  3. Implement tracking code:
    • Add Google tag to your website (preferably in <head>)
    • Use Google Tag Manager (recommended)
    • Install SDK for mobile apps
  4. Configure events and conversions:
    • Set up enhanced measurement events
    • Create custom events as needed
    • Mark important events as conversions
  5. Set up user properties and audiences:
    • Define key user characteristics
    • Create audiences for analysis and remarketing

Data Collection Validation

  • Use DebugView for real-time event validation
  • Use Tag Assistant to verify proper implementation
  • Check Real-Time reports to confirm data is flowing

Key GA4 Reports and Analysis Techniques

Standard Reports

Report CategoryPurposeKey Insights
RealtimeCurrent activityActive users, events, conversions happening now
AcquisitionTraffic sourcesWhere users come from (channels, sources, campaigns)
EngagementUser behaviorMost viewed pages, events, conversions
MonetizationRevenue trackingE-commerce performance, revenue by source
RetentionUser loyaltyNew vs returning users, cohort analysis
DemographicsUser attributesAge, gender, interests, location
TechDevice dataBrowsers, devices, operating systems used

Exploration Reports (Advanced Analysis)

  • Freeform exploration: Drag-and-drop custom analysis
  • Funnel exploration: Visualize conversion paths
  • Path exploration: Analyze user journeys through your site
  • Segment overlap: Compare different user segments
  • User lifetime: Analyze user value over time
  • Cohort analysis: Track groups of users over time

GA4 Custom Configuration

Event Configuration Options

  1. Enhanced Measurement events: Toggle on/off in data stream settings
    • page_view, scroll, outbound click, site search, video engagement, file download
  2. Recommended events: Follow Google’s naming conventions
    • E-commerce: purchase, add_to_cart, view_item
    • Content: search, select_content, share
  3. Custom events: Create your own events with:
    • Event name
    • Parameters
    • Event-scoped custom dimensions

E-commerce Setup

  1. Implement data layer code for:
    • view_item
    • add_to_cart
    • begin_checkout
    • add_shipping_info
    • add_payment_info
    • purchase
  2. Configure E-commerce settings in Admin section
  3. Create E-commerce-specific custom reports

Common GA4 Challenges and Solutions

ChallengeSolution
Missing historical dataUse the GA4 migration tool; run UA and GA4 in parallel
Complex event trackingUse Google Tag Manager for easier implementation
Different metrics than UALearn new metrics (engaged sessions replace bounce rate)
Data samplingUse shorter date ranges or Google BigQuery export
Attribution differencesUnderstand data-driven attribution model
Limited default reportsMaster Explorations for custom analysis
Shorter data retentionSet up BigQuery export for long-term data storage

GA4 Best Practices

Measurement Strategy

  • Define clear business objectives before implementation
  • Create a measurement plan mapping objectives to events
  • Document event naming conventions and parameters
  • Use Google’s recommended event names when possible
  • Limit custom events to what’s truly necessary

Analysis Workflow

  1. Start with acquisition reports to understand traffic sources
  2. Use engagement reports to analyze user behavior
  3. Create explorations for deeper insights
  4. Build custom reports for recurring analysis needs
  5. Set up regular email reports for stakeholders

Performance Optimization

  • Regularly audit events to remove unnecessary tracking
  • Use thresholds for scroll and engagement events
  • Implement consent mode for privacy compliance
  • Set appropriate data retention periods
  • Create focused audiences rather than overly broad ones

Advanced GA4 Techniques

BigQuery Integration

  1. Enable BigQuery linking in GA4 Admin
  2. Set up BigQuery project and dataset
  3. Create SQL queries to analyze raw data
  4. Build custom dashboards with Looker Studio

Custom Dimensions and Metrics

  • Custom dimensions: Additional attributes for analysis
    • User-scoped: Apply to all events from a user
    • Event-scoped: Apply to specific events
  • Custom metrics: Numerical values for measurement
    • Create in Admin > Custom Definitions

Predictive Metrics

GA4 offers AI-powered metrics including:

  • Purchase probability
  • Churn probability
  • Revenue prediction

Regular Expressions in GA4

Common regex patterns for GA4 filters:

  • Exact match: ^exact$
  • Contains: .*search term.*
  • Begins with: ^beginning
  • Ends with: ending$
  • OR condition: term1|term2

GA4 and Privacy Compliance

Privacy Features

  • Consent mode for GDPR compliance
  • IP anonymization by default
  • Shorter data retention periods
  • No cross-site tracking without consent
  • Data deletion requests support

Cookieless Tracking Methods

  • Google signals for signed-in users
  • First-party data collection
  • Modeling to fill measurement gaps
  • User-ID implementation for authenticated users

Resources for Further Learning

Official Google Resources

Community Resources

Tools and Extensions

  • Google Tag Assistant
  • GA4 Debug Chrome Extension
  • Google Analytics Checker

By mastering these GA4 concepts and techniques, you’ll be able to effectively track, analyze, and optimize your digital properties to meet your business objectives in the evolving digital analytics landscape.

Scroll to Top