How to Set Up Google Analytics 4: The Complete Step-by-Step Guide

You know you need data. Real data, not gut feelings and guesses. But if you have been putting off learning how to set up Google Analytics 4 because it looks complicated, I understand. GA4 is a significant departure from Universal Analytics and the learning curve is real. But the payoff, having a clear picture of exactly how visitors behave on your site, is worth every minute.

Nailed it or not, tracking is the foundation of every smart marketing decision. Without it, you are flying blind. Spending money on ads, content, and SEO with zero visibility into what is actually working.

This guide walks you through the entire GA4 setup from scratch. No fluff. No jargon detours. Just the exact steps you need to get accurate data flowing into your account starting today.

KEY TAKEAWAYS

→ Google Analytics 4 is Google’s current analytics platform, replacing Universal Analytics. It uses an event-based data model instead of session-based tracking.
→ Setup requires creating a GA4 property, installing the Google tag on your website, and configuring key conversion events to track meaningful actions.
→ GA4’s default setup captures basic traffic data, but unlocking real business intelligence requires configuring custom events, goals, and audience segments.

FEATURE IMAGE PROMPT

A clean, modern digital dashboard on a dark background showing a stylized Google Analytics 4 interface: real-time user map, event tracking panel, and a conversion funnel chart. A hand or cursor is visible setting up the configuration panel, suggesting an active setup process. Accent colors of blue and orange against a deep charcoal workspace. In the upper corner, a small Google “G” logo sits beside “Analytics 4” text. The overall feel is professional, tech-forward, and instructional. Agency-grade aesthetic, no stock photo cliches.

What Is Google Analytics 4 and Why Does It Matter?

Google Analytics 4 (GA4) is Google’s current web and app analytics platform. Unlike its predecessor Universal Analytics, GA4 uses an event-based tracking model that captures every user interaction as an event, giving businesses a more flexible and privacy-forward view of customer behavior across devices and platforms.

Universal Analytics is gone. Google shut it down and stopped processing data. If you are still referencing old UA reports, you are looking at history, not your current performance. GA4 is not optional anymore; it is the only game in town.

But GA4 is genuinely different. The old session-based model tracked visits. GA4 tracks events. Everything is an event: a page view, a scroll, a button click, a form submission. This makes it more powerful and more complex at the same time. Which is exactly why so many business owners set it up wrong, or not at all.

The good news: once you understand the structure, the setup is straightforward. Let me walk you through it.

Before You Start: What You Will Need

To set up Google Analytics 4 you need a Google account, access to your website’s code or CMS (like WordPress), and optionally a Google Tag Manager account for easier tag deployment. Admin access to your website is required to install the tracking code.

Get these ready before you start so you are not stopping midway through the process:

  • A Google account (the same one you use for Google Search Console or Google Ads is fine)
  • Access to your website’s backend (WordPress admin, Shopify admin, Squarespace settings, or FTP/code access)
  • Google Tag Manager (optional but recommended) for managing tags without touching code every time
  • A list of your key conversion actions (purchases, form submissions, phone calls, downloads)

If your site runs on WordPress, you are in luck. There are several solid plugins that simplify GA4 installation without requiring you to touch a single line of code. We will cover that option too.

How to Set Up Google Analytics 4: Step-by-Step

1Create or Sign Into Your Google Analytics AccountGo to analytics.google.com and sign in with your Google account. If you have never used Google Analytics before, click “Start measuring” to create a new account. If you already have a UA account, you can add a GA4 property to the same account.
2Set Up a New GA4 PropertyClick Admin (the gear icon at the bottom left). Under the Account column, select or create your account. Then under the Property column, click “Create Property.” Name your property (usually your website or business name), set your time zone and currency, then click Next.
3Fill In Your Business DetailsGA4 will ask about your business category and size. These answers help Google tailor default reports but do not affect tracking accuracy. Select what is closest to your business and proceed.
4Choose Your Business ObjectiveGA4 asks what you want to measure: leads, online sales, brand awareness, etc. This pre-configures some reports for you. You can change these later, so pick the closest option and move on.
5Create a Data StreamThis is where you tell GA4 what to track. Select “Web” for a website. Enter your website URL and stream name. Leave “Enhanced Measurement” toggled on; it automatically captures scrolls, outbound clicks, video engagement, and file downloads without extra configuration.

Installing Your GA4 Tracking Code

After creating your data stream, GA4 gives you a Measurement ID that looks like “G-XXXXXXXXXX”. This is your unique tracking identifier. You have three main options to install it:

  • Direct code installation: Copy the Google tag snippet GA4 provides and paste it into the <head> section of every page on your site. If your site has a theme or master template, paste it there once.
  • Google Tag Manager: Add the GA4 Configuration tag inside GTM. Set the trigger to “All Pages.” Publish your container. This is the cleanest method for ongoing tag management.
  • CMS Plugin (WordPress): Use a plugin like “Site Kit by Google” or “GA Google Analytics” to connect your Measurement ID without touching code. Paste your G-XXXXXXXXXX ID into the plugin settings and you are done.

“Google Tag Manager is strongly recommended for GA4 installation on most business websites. It reduces developer dependency, speeds up tag changes, and makes future event tracking configurations far simpler to manage.”

— Google Analytics Help Documentation

Verifying Your GA4 Installation

Once your tag is installed, go back to GA4 and check Admin > Data Streams > your stream. At the top you should see a “Receiving data in the past 48 hours” status indicator. If it shows a green checkmark, you are good.

You can also open your website in a separate browser tab, then go to GA4 > Reports > Realtime. If you see yourself as an active user on your site, the tag is firing correctly. That is the fastest confirmation method.

Not Sure Your GA4 Is Set Up Correctly?

A misconfigured analytics setup means your business decisions are based on bad data. If you want a professional to audit your GA4 installation, configure custom events, and set up conversion tracking properly, our team at Codevelop can help.Talk to Our SEO and Analytics Team -> codevelop.us/search-engine-optimization-services/

Configuring Key Events and Conversions in GA4

In GA4, conversions are called “key events.” To mark an event as a key event, go to Admin > Data Display > Events, find the event you want to track as a conversion, and toggle “Mark as key event” to on. GA4 automatically tracks several events by default, but custom events require additional configuration.

This is where most business owners stop short and leave serious value on the table. Installing the tag is step one. But configuring what counts as a conversion is what makes GA4 actually useful for business decisions.

GA4 automatically tracks these events out of the box with Enhanced Measurement enabled:

  • page_view: every page load
  • scroll: when a user scrolls 90% down a page
  • click: outbound link clicks
  • view_search_results: use of your site’s search function
  • video_start / video_progress / video_complete: YouTube embed interactions
  • file_download: clicks on downloadable files

Setting Up Custom Conversion Events

But what about form submissions, phone call clicks, or purchase completions? These require custom event configuration. Here is the cleanest approach for most business websites:

  • Identify your conversion actions. What does a successful visitor do on your site? Fill out a contact form? Click your phone number? Buy a product? List every one.
  • Create a Thank You page. If your contact form redirects to a /thank-you page after submission, you can track that page_view as a conversion event easily.
  • In GA4, go to Admin > Data Display > Events. Click “Create Event” to define a new event based on an existing trigger, like a page_view on your /thank-you URL.
  • Mark it as a Key Event. Once the event exists, toggle “Mark as key event” and GA4 starts reporting it as a conversion in your main reports.

For e-commerce businesses, GA4 has a full e-commerce event schema that tracks add-to-cart, begin-checkout, purchase, and more. These require developer implementation but unlock the full power of GA4’s purchase funnel reporting.

GA4 vs Universal Analytics: Key Differences You Need to Know

FeatureUniversal Analytics (Old)Google Analytics 4 (Current)
Data ModelSession-basedEvent-based
Tracking ScopeWebsite onlyWeb and app combined
ConversionsGoalsKey Events
Bounce RateStandard metricReplaced by Engagement Rate
Cross-DeviceLimitedBuilt-in via Google Signals
Data RetentionUp to 50 monthsUp to 14 months (default 2)
PrivacyCookie-dependentModeled data for cookieless users

One critical setting to change immediately: GA4 defaults to only retaining user data for 2 months. For most businesses, you want this extended to the maximum of 14 months. Go to Admin > Data Settings > Data Retention and change the setting before your data starts disappearing.

Advanced GA4 Setup: What Most Guides Skip

Getting the tag installed is the easy part. Here is where the real competitive advantage lives.

Link GA4 to Google Search Console

Connecting GA4 to Google Search Console surfaces organic search data directly inside your analytics reports. You can see which search queries are driving traffic, what pages rank for specific terms, and how SEO performance correlates with on-site behavior. Go to Admin > Product Links > Search Console Links to connect them.

Link GA4 to Google Ads

If you run paid search campaigns, linking GA4 to Google Ads lets you import key events as conversions into your ad campaigns and build remarketing audiences from your analytics data. This is the connection that makes your ad spend dramatically more efficient. Admin > Product Links > Google Ads Links.

Set Up Audiences for Remarketing

GA4’s audience builder lets you create highly specific user segments based on events, user properties, and behavior sequences. Users who visited your pricing page but did not convert. Users who spent more than 3 minutes on a specific service page. Users who added to cart but abandoned checkout. Each of these can become a remarketing audience for Google Ads campaigns.

Configure Data Filters

By default, GA4 includes your own visits in the data, which inflates traffic numbers and distorts behavior metrics. Go to Admin > Data Streams > your stream > Tag Settings > Define Internal Traffic and add your office IP address. Then under Admin > Data Settings > Data Filters, create an internal traffic filter and set it to active.

This is a small thing that makes a big difference in data quality over time.

“GA4 users who link their property to Google Search Console and Google Ads within the first week of setup gain significantly richer data context for decision-making than those who use the platforms in isolation.”

— Search Engine Journal

Want a Website That Converts the Traffic GA4 Reveals?

Analytics tells you where the leaks are. But fixing them requires design, development, and strategy working together. Codevelop builds and optimizes websites that turn data into revenue. From performance marketing to full web development, we help Portland businesses grow smarter.

Start Tracking Smarter, Not Just More

Setting up Google Analytics 4 is not a weekend project you do once and forget. It is the foundation of every smart marketing decision your business makes going forward. And the setup you build today determines the quality of data you will have a year from now.

Get the tag installed. Extend your data retention. Verify your key events. Link Search Console and Google Ads. Filter out your internal traffic. Do those five things and you will be ahead of the vast majority of small business websites already.

And if you want a professional to handle your analytics setup alongside your broader SEO and performance marketing strategy, our team at Codevelop works with businesses in Portland and beyond to build data-driven growth engines that actually deliver results.

Frequently Asked Questions

How to set up Google Analytics 4 on a WordPress site?

Install the Site Kit by Google plugin, connect your Google account, and enter your GA4 Measurement ID. No code required.

What is the difference between GA4 and Universal Analytics?

GA4 uses event-based tracking and supports web and app data together. Universal Analytics was session-based and is now discontinued.

How do I find my GA4 Measurement ID?

Go to Admin > Data Streams > your stream. Your Measurement ID starts with G- and appears at the top right.

Is Google Analytics 4 free to use?

Yes. GA4 is free. Google Analytics 360 is the paid enterprise version with higher data limits and SLAs.

How long does it take for GA4 to start showing data?

Realtime data appears within seconds of installation. Standard reports populate within 24 to 48 hours.

What are key events in GA4?

Key events replace Goals from Universal Analytics. They are conversions you mark in Admin > Data Display > Events.

How do I set up conversion tracking in GA4?

Create or identify the event you want to track, then toggle Mark as Key Event in Admin > Data Display > Events.

Should I use Google Tag Manager to install GA4?

Yes. GTM is recommended. It lets you add and update tags without editing your website’s code directly.

Facebook
Twitter
Email
Print

Leave a Reply

Your email address will not be published. Required fields are marked *

Newsletter

Signup our newsletter to get update information, news, insight or promotions.

Latest Article

Send us a message

We craft tailored strategies that drive growth, efficiency, and long-term success for your business. Let’s bring your vision to life.