How to Set Up Google Analytics 4 Step by Step

How to Set Up Google Analytics 4 Step by Step: The Complete Beginner’s Guide

If you have a website or app in 2026, tracking how visitors interact with it is not optional. It is essential. Google Analytics 4 (GA4) is the standard platform for understanding your audience, measuring traffic, and making data-driven decisions.

But if you have never touched GA4 before, the setup process can feel overwhelming. Don’t worry. In this guide, we walk you through how to set up Google Analytics 4 step by step, from scratch, in plain language. By the end, you will have a fully functional GA4 property collecting data from your website and you will know exactly where to find the reports that matter.

Let’s get started.

What Is Google Analytics 4 and Why Does It Matter?

Google Analytics 4 is Google’s current analytics platform. It replaced Universal Analytics (the older version) in July 2023. GA4 uses an event-based data model, which means every interaction a user takes on your site (a page view, a click, a scroll, a purchase) is tracked as an “event.”

Here is why GA4 matters for your business:

  • It is free. GA4 is available at no cost for the vast majority of websites and apps.
  • Cross-platform tracking. You can track both website and app data in a single property.
  • Privacy-focused. GA4 is designed for a world with fewer cookies and stricter data regulations.
  • AI-powered insights. Google uses machine learning to surface trends and predictions automatically.
  • Better integration with Google Ads. If you run paid campaigns, GA4 data feeds directly into your ad optimization.

Now that you understand the “why,” let’s move into the “how.”

What You Need Before You Start

Before jumping into setup, make sure you have the following ready:

  1. A Google account (a standard Gmail or Google Workspace account works).
  2. Access to your website’s code or a tag management tool like Google Tag Manager (GTM).
  3. Admin access to your website’s CMS (WordPress, Shopify, Wix, etc.) if you plan to install via a plugin or built-in integration.

Got all three? Good. Let’s build your GA4 setup.

Step 1: Create a Google Analytics Account

If you already have a Google Analytics account from a previous project, you can skip ahead to Step 2. If this is your first time, follow these instructions:

  1. Go to analytics.google.com.
  2. Sign in with your Google account.
  3. Click the “Start measuring” button.
  4. Enter an Account name. This is typically your company or brand name (e.g., “King Content Agency”).
  5. Configure the Account Data Sharing Settings. You can leave the default options checked unless you have specific privacy requirements.
  6. Click “Next.”

Tip: Your account is the top-level container. Inside one account, you can create multiple properties (one for each website or app you manage).

Step 2: Create a GA4 Property

A property in GA4 represents a single website or app (or both). This is where all your data lives.

  1. Enter a Property name (e.g., “My Company Website”).
  2. Select your Reporting time zone and Currency. Choose the ones that match your primary business location.
  3. Click “Next.”
  4. Fill in your business details: industry category, business size, and how you intend to use Google Analytics (e.g., “Examine user behavior,” “Optimize ad campaigns”).
  5. Click “Create.”
  6. Accept the Google Analytics Terms of Service for your country.

Your GA4 property is now created. Next, you need to tell GA4 where your data is coming from.

Step 3: Set Up a Data Stream

A data stream is the connection between your website (or app) and your GA4 property. For a website, you will create a Web data stream.

  1. After creating your property, you will see the option to choose a platform: Web, Android app, or iOS app. Select “Web.”
  2. Enter your Website URL (e.g., https://kingcontentagency.com).
  3. Give your stream a name (e.g., “Main Website”).
  4. Make sure Enhanced Measurement is toggled on. This automatically tracks common events like page views, scrolls, outbound clicks, site search, video engagement, and file downloads without any extra code.
  5. Click “Create stream.”

Once the stream is created, you will see your Measurement ID. It looks like this: G-XXXXXXXXXX. Copy this ID and keep it handy. You will need it in the next step.

Quick Reference: Enhanced Measurement Events

Event What It Tracks Enabled by Default?
page_view Each time a page loads or the URL changes Yes
scroll When a user scrolls past 90% of the page Yes
click (outbound) Clicks on links leading to external domains Yes
site_search When a user uses your site’s search function Yes
video_start / video_progress / video_complete Embedded YouTube video interactions Yes
file_download Clicks on links to downloadable files (PDF, XLSX, etc.) Yes

Step 4: Install the GA4 Tracking Code on Your Website

This is the most critical step. Without the tracking code on your site, GA4 will not collect any data. There are three main methods to install GA4 on your website. Choose the one that fits your situation best.

Method 1: Install the Google Tag (gtag.js) Directly

This method involves adding a snippet of JavaScript code directly into your website’s HTML. It works for any website, regardless of the platform.

  1. In your GA4 property, go to Admin > Data Streams and click on your web stream.
  2. Under “Google tag,” click “View tag instructions.”
  3. Select “Install manually.”
  4. Copy the code snippet provided. It will look something like this:
<!-- 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>
  1. Paste this code into the <head> section of every page on your website, as high up as possible.
  2. Save and publish your changes.

Method 2: Use Google Tag Manager (GTM)

If you already use Google Tag Manager (or want a more flexible setup), this is the recommended approach for most businesses.

  1. Log in to tagmanager.google.com.
  2. Open your container (or create a new one for your website).
  3. Click “Add a new tag.”
  4. Choose “Google Tag” as the tag type.
  5. Enter your Measurement ID (G-XXXXXXXXXX).
  6. Set the trigger to “All Pages.”
  7. Name the tag (e.g., “GA4 Configuration”) and click “Save.”
  8. Click “Submit” in GTM to publish the changes.

Why use GTM? Google Tag Manager lets you add, edit, and manage all your tracking tags from one interface without touching your website code again. It is ideal if you plan to track custom events, run A/B tests, or manage multiple marketing pixels.

Method 3: Use a CMS Plugin or Built-in Integration

Many content management systems offer a simple way to connect GA4 without editing code.

Platform How to Add GA4
WordPress Install the “Site Kit by Google” plugin or “MonsterInsights.” Follow the plugin wizard to connect your GA4 property.
Shopify Go to Online Store > Preferences. Paste your Measurement ID in the Google Analytics field.
Wix Go to Marketing Integrations > Google Analytics and enter your Measurement ID.
Squarespace Go to Settings > Developer Tools > External API Keys and paste your Measurement ID.

Step 5: Verify That GA4 Is Collecting Data

After installing the tracking code, you need to confirm everything is working correctly. Here is how:

  1. Go back to your GA4 property at analytics.google.com.
  2. Navigate to Reports > Realtime (in the left sidebar).
  3. Open your website in another browser tab and browse a few pages.
  4. Within seconds, you should see your visit appear in the Realtime report as an active user.

If you see data coming in, congratulations. Your GA4 setup is live.

What If You Don’t See Any Data?

  • Wait a few minutes. It can sometimes take 5 to 10 minutes for data to appear.
  • Check for ad blockers. Browser extensions like uBlock Origin can block the GA4 tracking script. Try using an incognito window with extensions disabled.
  • Verify the code placement. Make sure the tracking snippet is inside the <head> tag and on the correct pages.
  • Use the Google Tag Assistant. Install the Tag Assistant Companion Chrome extension and use the debug mode in GTM or GA4 to validate your setup.
  • Double-check your Measurement ID. A single wrong character will prevent tracking entirely.

Step 6: Configure Key Events (Conversions)

Out of the box, GA4 tracks basic interactions. But the real power comes from telling GA4 which events matter most to your business. In GA4, these are called Key Events (previously known as “Conversions”).

Common key events include:

  • Form submissions (contact forms, lead generation forms)
  • Newsletter signups
  • Purchases or transactions
  • Phone number clicks
  • File downloads (if critical to your business)
  • Button clicks (e.g., “Request a Quote”)

How to Mark an Event as a Key Event

  1. In GA4, go to Admin > Events.
  2. You will see a list of events GA4 is already collecting (page_view, scroll, click, etc.).
  3. Find the event you want to mark as a key event.
  4. Toggle the switch in the “Mark as key event” column to turn it on.

If the event you need does not exist yet (for example, a custom form submission), you have two options:

  • Create it in GA4: Go to Admin > Events > Create Event. Define conditions based on existing event parameters.
  • Create it in Google Tag Manager: Set up a custom event tag in GTM with the appropriate trigger (e.g., a form submission trigger) and send it to GA4.

Pro tip: Do not mark too many events as key events. Focus on 3 to 5 actions that directly tie to your business goals. This keeps your reports clean and actionable.

Step 7: Set Up Audiences (Optional but Recommended)

Audiences in GA4 let you group users based on shared characteristics or behaviors. This is extremely useful for remarketing and deeper analysis.

Examples of useful audiences:

  • Users who visited your pricing page but did not convert
  • Users who completed a purchase in the last 30 days
  • Users from a specific country or city
  • Users who watched a video on your site

To create an audience:

  1. Go to Admin > Audiences > New Audience.
  2. Choose from a suggested template or build a custom audience.
  3. Define the conditions and save.

Step 8: Link Google Search Console and Google Ads

To get the most value from GA4, connect it to other Google products.

Link Google Search Console

This gives you organic search data inside GA4, including the queries people use to find your site.

  1. Go to Admin > Product Links > Search Console Links.
  2. Click “Link.”
  3. Select your Search Console property and complete the linking process.

Link Google Ads

If you run Google Ads campaigns, linking allows you to see campaign performance data in GA4 and import key events as conversion actions in Google Ads.

  1. Go to Admin > Product Links > Google Ads Links.
  2. Click “Link” and select your Google Ads account.
  3. Follow the prompts to complete the connection.

Navigating GA4: Essential Reports for Beginners

Now that your GA4 property is set up and collecting data, let’s look at where to find the most useful information. The GA4 interface can feel complex at first, but these are the reports you should focus on as a beginner.

1. Realtime Report

Where to find it: Reports > Realtime

Shows what is happening on your site right now. Useful for verifying that new tags are firing, monitoring a campaign launch, or checking traffic during a live event.

2. Acquisition Overview

Where to find it: Reports > Acquisition > Overview

Tells you how users are finding your website. You will see channels like Organic Search, Direct, Social, Referral, and Paid Search. This is the report to check when you want to understand which marketing efforts are driving traffic.

3. Engagement Overview

Where to find it: Reports > Engagement > Overview

Shows how users interact with your content. Key metrics here include:

  • Average engagement time: How long users actively spend on your site.
  • Engaged sessions: Sessions that lasted longer than 10 seconds, had a key event, or had 2+ page views.
  • Views (page views): Which pages get the most traffic.

4. Pages and Screens

Where to find it: Reports > Engagement > Pages and Screens

This is your go-to report for understanding which specific pages on your website get the most views and engagement. Use it to identify top-performing content and pages that might need improvement.

5. Traffic Acquisition

Where to find it: Reports > Acquisition > Traffic Acquisition

While the Acquisition Overview gives you a high-level view, the Traffic Acquisition report breaks it down by session source, medium, and campaign. It answers questions like “Which Google Ads campaign is sending the most traffic?” or “How much traffic came from that newsletter link?”

6. Key Events Report

Where to find it: Reports > Engagement > Key Events

This report shows all the key events (conversions) you configured in Step 6. Use it to measure how well your site is driving the actions that matter most to your business.

GA4 Setup Checklist

Use this checklist to make sure you have not missed anything:

Task Done?
Created a Google Analytics account
Created a GA4 property
Set up a Web data stream
Copied the Measurement ID (G-XXXXXXXXXX)
Installed the tracking code (gtag.js, GTM, or CMS plugin)
Verified data in the Realtime report
Enabled Enhanced Measurement
Configured 3 to 5 key events
Linked Google Search Console
Linked Google Ads (if applicable)

Common Mistakes to Avoid When Setting Up GA4

Even experienced marketers sometimes trip up during setup. Here are the most common mistakes and how to avoid them:

  • Installing the code twice. If you use both a CMS plugin and a manual code snippet, you will double-count every visit. Pick one method and stick with it.
  • Forgetting to filter internal traffic. Go to Admin > Data Streams > your stream > Configure Tag Settings > Define Internal Traffic and add your office IP address. Then create a data filter to exclude it.
  • Not enabling Google Signals. Go to Admin > Data Collection and enable Google Signals. This improves cross-device tracking and demographic reporting.
  • Ignoring data retention settings. By default, GA4 retains user-level data for 2 months. If you plan to use Explorations (custom reports), change this to 14 months under Admin > Data Retention.
  • Setting up too many key events. If everything is a conversion, nothing is a conversion. Be selective.

How Long Does It Take for GA4 to Show Full Data?

While the Realtime report shows data within seconds, most standard reports in GA4 take 24 to 48 hours to fully process and display data. Don’t panic if your reports look empty on day one. Give it a couple of days, then review.

Frequently Asked Questions

Is Google Analytics 4 free?

Yes. GA4 is completely free for the vast majority of users. There is a paid enterprise version called Google Analytics 360, but the free version has more than enough features for small to medium businesses.

Can I use GA4 on multiple websites?

Absolutely. You can create multiple properties within a single Google Analytics account. Each property gets its own Measurement ID and data stream.

Do I need Google Tag Manager to use GA4?

No. Google Tag Manager is optional. You can install GA4 by pasting the gtag.js code directly into your website or by using a CMS plugin. However, GTM is highly recommended if you plan to track custom events or manage multiple tags.

What is a Measurement ID and where do I find it?

Your Measurement ID is a unique identifier for your GA4 data stream. It starts with G- followed by a string of characters. You can find it by going to Admin > Data Streams and clicking on your web stream.

How do I track form submissions in GA4?

GA4 does not track form submissions automatically in all cases. The most reliable method is to create a custom event using Google Tag Manager with a form submission trigger, then mark that event as a key event in GA4.

Can I track an app and a website in the same GA4 property?

Yes. GA4 supports multiple data streams within a single property. You can add a Web stream, an Android app stream, and an iOS app stream all under one property to get a unified view of user behavior.

What is the difference between “Events” and “Key Events” in GA4?

All interactions in GA4 are tracked as events. Key events are simply the events you have flagged as most important to your business (form submissions, purchases, signups, etc.). Marking an event as a key event tells GA4 to give it special prominence in your reports.

Final Thoughts

Setting up Google Analytics 4 step by step is not as complicated as it might seem at first. The process boils down to creating an account, setting up a property and data stream, installing the tracking code, and configuring the events that matter to your business.

The key is to start simple. Get the basics in place, verify your data is flowing, and then gradually layer on more advanced configurations like custom events, audiences, and product integrations as your comfort level grows.

If you need help with your analytics setup or broader digital marketing strategy, the team at King Content Agency is here to help. Get in touch with us and let’s make sure your data is working as hard as your content.

Search Keywords

Recent Posts

Organic vs Paid Social Media: Which Delivers Better ROI

Organic vs Paid Social Media: The ROI Question Every Marketer Must Answer Should you invest your time in building an organic following, or put your budget behind paid campaigns? It is one of the most debated questions in digital marketing, and in 2026, the answer is...

How to Do a Content Gap Analysis for SEO

What Is a Content Gap Analysis? A content gap analysis is the process of identifying topics and keywords that your competitors rank for in search engines but your website does not. It reveals the missing pieces in your content strategy, the opportunities you are...

What Is a Good Conversion Rate for a Landing Page in 2026

What Is a Good Conversion Rate for a Landing Page? If you have ever asked yourself "what is a good conversion rate for a landing page?" you are not alone. It is one of the most frequently searched questions in digital marketing, and the answer is more nuanced than a...

How to Use ChatGPT for SEO: 15 Practical Use Cases

Why Digital Marketers Are Using ChatGPT for SEO in 2026 If you work in digital marketing, you have probably asked yourself: how can I use ChatGPT to speed up my SEO workflows without sacrificing quality? The answer is not about replacing your SEO strategy with AI. It...

10 Facebook Ads Mistakes That Are Wasting Your Budget

Are Your Facebook Ads Bleeding Money? You're Probably Making One of These Mistakes Facebook Ads remain one of the most powerful digital advertising platforms in 2026. With over 3 billion monthly active users and some of the most sophisticated targeting tools...

Digital Marketing for Dentists: A Complete Strategy Guide

Why Digital Marketing for Dentists Matters More Than Ever If you run a dental practice, you already know how competitive patient acquisition has become. Gone are the days when a Yellow Pages ad and word-of-mouth referrals were enough to keep your schedule full. Today,...

What Is Keyword Cannibalization and How to Fix It

What Is Keyword Cannibalization? Keyword cannibalization is an SEO problem that occurs when two or more pages on the same website target the same keyword (or very similar keywords) and serve the same search intent. Instead of one strong page ranking well, your pages...

How to Write Email Subject Lines That Increase Open Rates

Why Your Email Subject Line Is the Most Important Line You'll Ever Write Your subscribers receive dozens, sometimes hundreds, of emails every day. The subject line is your one shot at earning a click. No matter how brilliant your email content is, it means nothing if...

Semrush vs Ahrefs: Which SEO Tool Is Better in 2026

Semrush vs Ahrefs: Which SEO Tool Should You Choose in 2026? If you work in digital marketing or SEO, you have almost certainly asked yourself this question: Semrush or Ahrefs? Both platforms have evolved dramatically over the years. In 2026, they are closer in...

Subscribe

Subscription Form

Follow Us