Skip to content
WebsiteToolReviews
Analytics

How to Set Up Google Analytics 4 in 2025 — Step-by-Step

GA4's setup is more complex than its predecessor. This step-by-step guide covers everything from account creation to conversion tracking.

Editorial TeamMay 12, 20263 min read

Why GA4 Is Different From Universal Analytics

Google Analytics 4 is a fundamentally different product from Universal Analytics (which was sunset in July 2023). GA4 uses an event-based data model rather than session-based — everything is an event, from page views to scroll depth to purchases. This makes it more flexible and privacy-ready but also more complex to set up correctly.

Step 1: Create a GA4 Property

Go to analytics.google.com and sign in with your Google account. Click Admin (the gear icon at the bottom left). In the Account column, either select an existing account or create a new one. In the Property column, click Create Property. Enter your property name, select your reporting time zone and currency, and click Next. Answer the business information questions and click Create. Select Web as your platform and enter your website URL and stream name.

Step 2: Install the Tracking Code

GA4 uses a global site tag (gtag.js). You have two installation options.

Option A: Google Tag Manager (recommended) — If you use GTM, add a new tag: Tag Type = Google Analytics GA4 Configuration. Enter your Measurement ID (G-XXXXXXXXXX from your data stream settings). Set the trigger to All Pages. This method makes future tag management much easier.

Option B: Direct code installation — Copy the gtag.js snippet from your GA4 data stream settings and paste it into the <head> of every page. For WordPress, use a plugin like GA Google Analytics or Insert Headers and Footers to add the snippet without editing theme files.

Step 3: Verify the Installation

In GA4, navigate to Reports > Real-time. Open your website in another browser tab or window. Within a few seconds you should see 1 active user appear in the real-time report. If you see nothing after 60 seconds, use the Tag Assistant Chrome extension to diagnose whether the tag is firing correctly.

Step 4: Set Up Key Events (Conversions)

GA4 automatically tracks some events — page_view, scroll, click, session_start, and first_visit. But you need to define which events represent meaningful conversions for your site.

Go to Admin > Events. Common events to mark as conversions: form_submit or generate_lead (contact form completions), purchase (ecommerce), sign_up (email list), file_download (lead magnets), begin_checkout (ecommerce).

Click the toggle next to any event to mark it as a conversion. For custom events not automatically tracked (such as a specific button click), you will need to set up additional event tracking via GTM or the GA4 dataLayer.

Step 5: Link Google Search Console

Connecting GA4 to Google Search Console gives you organic search data (queries, impressions, clicks, positions) alongside your GA4 behavioural data. Go to Admin > Product Links > Search Console Links. Click Link, choose your Search Console property, and complete the setup. Search Console data will then appear in the Search Console reports section of GA4.

Step 6: Configure Unwanted Traffic Filters

Internal traffic from your own office or development team can skew your data. In GA4, go to Admin > Data Streams > your stream > Configure Tag Settings > Define Internal Traffic. Add your office IP address or IP range. Then go to Admin > Data Filters and enable the Internal Traffic filter to exclude these sessions from your reports.

Step 7: Set Up Custom Dimensions (Optional)

Custom dimensions allow you to capture and report on data specific to your business — author names on blog posts, content categories, logged-in vs. anonymous users, A/B test variants. These require implementation work (usually via GTM or direct dataLayer pushes) but unlock more granular analysis.

Common GA4 Mistakes to Avoid

Not setting up conversion events — without them GA4 is just a traffic counter. Not connecting Search Console — you miss organic keyword data. Not filtering internal traffic — your own visits inflate numbers. Not creating a Looker Studio dashboard — GA4's default interface makes it hard to build a consistent reporting view. Using GA4 without GTM — adding tags directly to code makes future changes painful.

Keep learning

Related guides

View all →