SEO Tips

GA4 Setup Guide: How to Configure Google Analytics 4 in 2026

Step-by-step GA4 setup walkthrough covering property creation, data streams, event tracking, conversions, and custom dimensions — with platform-specific instructions.

F
Free Creator Tools Team
May 13, 202612 min read
#Google Analytics#GA4#analytics setup#event tracking#conversions

GA4 Setup Guide: How to Configure Google Analytics 4 in 2026

Google Analytics 4 (GA4) replaced Universal Analytics as Google's standard analytics platform. Whether you are setting up GA4 for the first time or migrating from an older property, this guide walks you through the complete setup process — from creating your property to configuring events, conversions, and custom dimensions that give you actionable data about your website visitors.

GA4 is fundamentally different from Universal Analytics. It uses an event-based data model instead of a session-based one, which means every interaction is recorded as an event. This provides more flexibility but also requires a different approach to configuration and reporting.

Step 1: Create a GA4 Property

Start by navigating to Google Analytics (analytics.google.com) and signing in with your Google account. If you have an existing Universal Analytics property, you can add a GA4 property alongside it rather than replacing it.

  1. Click "Create" and select "Property." Choose a descriptive name like "Free Creator Tools — GA4."
  2. Select your reporting timezone and currency. These affect how data is aggregated in reports.
  3. Choose your industry category. This helps Google provide benchmark comparisons.
  4. Select your business size and how you intend to use Analytics. This determines which features are highlighted in the interface.

Step 2: Add a Data Stream

A data stream is the source of data flowing into your GA4 property. For a website, you create a "Web" data stream.

  1. Select "Web" as the platform.
  2. Enter your website URL (e.g., freecreatortools.com) and a stream name.
  3. Enable or disable Enhanced Measurement. Enhanced Measurement automatically tracks page views, scrolls, outbound clicks, site search, video engagement, and file downloads. For most sites, leave this enabled.
  4. Copy your Measurement ID (starts with "G-"). You need this for the next step.

Step 3: Install the GA4 Tracking Code

There are several ways to add the GA4 tracking code to your site, depending on your platform.

For Next.js sites using the App Router, the cleanest approach is to add the GA4 script to your root layout.tsx file. Import next/script and add the GA4 script tag with your measurement ID. This ensures the tracking code loads on every page without requiring individual page modifications.

Google Tag Manager

For sites already using Google Tag Manager, add a GA4 Configuration tag with your measurement ID. This approach provides the most flexibility for managing multiple tags and tracking configurations without modifying code.

Direct HTML

For simple sites, paste the GA4 script snippet into the head section of every page. Google provides the exact code in your GA4 property settings under Data Streams > Tagging Instructions.

Step 4: Verify Your Setup

After installing the tracking code, verify that data is flowing correctly. Open your website in one browser tab and the GA4 Real-Time report in another. Navigate a few pages on your site and confirm that GA4 shows your activity in the real-time view.

If you do not see real-time data, check the following: the measurement ID is correct, the script is loading (check browser dev tools Network tab), no ad blockers are interfering, and the data stream is active in GA4 settings.

Step 5: Configure Event Tracking

GA4 tracks several events automatically through Enhanced Measurement. For custom interactions, you need to set up additional events.

Automatically Tracked Events (Enhanced Measurement)

  • page_view: Every page load
  • scroll: When users scroll past 90% of a page
  • click: Outbound link clicks
  • view_search_results: Site search usage
  • video_start, video_progress, video_complete: Video engagement
  • file_download: File download clicks

Custom Events

For interactions specific to your site (tool usage, button clicks, form submissions), configure custom events. In GA4, navigate to Configure > Events > Create Event. Define the event name and conditions based on existing events or parameters.

Alternatively, send custom events directly from your code using the gtag function: gtag('event', 'tool_used', { tool_name: 'meta-title-generator' }).

Step 6: Set Up Conversions

Conversions (formerly "goals" in Universal Analytics) are the most important events on your site. By default, GA4 does not mark any events as conversions — you must explicitly configure them.

  1. Navigate to Configure > Conversions.
  2. Click "New Conversion Event."
  3. Enter the event name you want to track as a conversion (e.g., "purchase," "sign_up," "tool_used").
  4. GA4 will now count and report every instance of that event as a conversion in your reports.

Common conversions for creator tools: tool usage completions, newsletter signups, outbound affiliate clicks, and ad revenue events.

Step 7: Configure Custom Dimensions

Custom dimensions let you analyze event parameters in your reports. By default, GA4 only shows a limited set of parameters in standard reports. If you send custom parameters with events (like tool_name or content_category), you must register them as custom dimensions.

  1. Navigate to Configure > Custom Definitions.
  2. Click "Create Custom Dimensions."
  3. Enter a descriptive name, select the event parameter to reference, and choose a scope (Event or User).
  4. Save. Data will appear in reports within 24-48 hours for new events.

Step 8: Set Up Key Reports and Explorations

GA4's reporting interface is significantly different from Universal Analytics. Key reports to configure:

  • Life Cycle > Engagement > Pages and Screens: See which pages get the most views and engagement time.
  • Life Cycle > Acquisition > Traffic Acquisition: Understand where your visitors come from (organic search, social, direct, referral).
  • Exploration > Free Form: Build custom reports with drag-and-drop dimensions and metrics.
  • Advertising > Attribution: See which channels drive conversions.

GA4 Data Retention

By default, GA4 retains user and event data for only 2 months. For historical analysis, change this to 14 months in Admin > Property Settings > Data Collection and Modification > Data Retention. This change does not recover data already deleted — make this adjustment during initial setup.

Plan Your GA4 Setup

Use our free Google Analytics setup planner to generate a customized implementation checklist for your site. Enter your platform, goals, and key interactions — get a step-by-step setup plan with all the events, conversions, and custom dimensions you need. No account required.

F

Written by Free Creator Tools Team

The Free Creator Tools Team builds free, privacy-first tools for content creators. We write about YouTube growth, social media strategy, SEO, and creator productivity.

More like this