Setting up Google Analytics 4 doesn’t need to take all day. In fact, you can go from zero to viewing your first meaningful report in about 30 minutes. This GA4 setup guide walks you through every step — from creating your property to pulling your first acquisition report.
I’ve helped dozens of businesses migrate to GA4, and the setup process is straightforward once you know what to click. However, there are a few configuration steps that most guides skip — and those are exactly the ones that will save you headaches later.
What Is GA4 and Why Should You Care?
Google Analytics 4 is Google’s current analytics platform, replacing the older Universal Analytics (which was sunset in July 2023). It tracks website and app activity using an event-based model instead of the old session-based approach.
What does that mean for you? Essentially, every interaction — a page view, a button click, a scroll — is treated as an event. This gives you more flexibility in what you track and how you analyze behavior. Moreover, GA4 includes built-in machine learning features that can surface insights you might otherwise miss.
That said, GA4 has a steeper learning curve than its predecessor. The interface is different, the reports are structured differently, and some familiar metrics have changed. But once you understand the basics, it’s genuinely powerful.
Step 1: Create Your GA4 Property
First, head to analytics.google.com and sign in with your Google account. If you don’t have an Analytics account yet, you’ll be prompted to create one.
Here’s the step-by-step process:
- Click Admin (gear icon) in the bottom-left corner.
- In the Account column, click Create Account (or use an existing one).
- Enter your account name (typically your company name).
- Click Next and enter your property name (your website name works fine).
- Set your reporting time zone and currency.
- Click Next, fill in your business details, then click Create.
One important detail: set the time zone to match where most of your audience is located. This affects how daily reports are calculated, and getting it wrong means your “today” data won’t align with your actual business day.
Step 2: Set Up Your Web Data Stream
After creating your property, GA4 will ask you to set up a data stream. Think of a data stream as the connection between your website and GA4. For a standard website, you need one web data stream.
- Select Web as your platform.
- Enter your website URL (include
https://). - Give the stream a name (e.g., “Main Website”).
- Click Create stream.
GA4 automatically enables Enhanced Measurement, which tracks scrolls, outbound clicks, site search, video engagement, and file downloads without any extra code. I recommend leaving this on — it’s genuinely useful data you’d otherwise need custom events for.
After creating the stream, you’ll see your Measurement ID (starts with G-). Copy this — you’ll need it in the next step.

Step 3: Install the Tracking Code
You have two main options for getting the GA4 tracking code onto your website. Both work well — the right choice depends on your setup.
Option A: Direct Installation (gtag.js)
This is the simplest method. Paste the following code into the <head> section of every page on your site:
<!-- 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>
Replace G-XXXXXXXXXX with your actual Measurement ID. If you’re using WordPress, most themes let you add this in the header settings. Alternatively, a plugin like Insert Headers and Footers makes it easy.
Option B: Google Tag Manager
If you’re already using Google Tag Manager (GTM), this is the better approach. It keeps all your tags in one place and makes future changes easier.
- In GTM, create a new tag and select Google Analytics: GA4 Configuration.
- Enter your Measurement ID.
- Set the trigger to All Pages.
- Save and publish your container.
For a deeper dive into how GTM’s data layer works with GA4, check out our guide to the data layer in Google Tag Manager.
Step 4: Verify Data Is Flowing
This is where most people skip ahead — don’t. You need to confirm that data is actually arriving in GA4 before doing anything else.
- Open your website in a browser tab.
- In GA4, go to Reports > Realtime.
- You should see at least one active user (that’s you).
If you see activity, congratulations — your tracking is working. If not, wait 2-3 minutes and refresh. GA4’s realtime report can have a slight delay.
Still nothing? Check these common issues:
- Ad blockers — disable them on your site temporarily.
- Wrong Measurement ID — double-check the
G-code matches your data stream. - Caching — if your site uses aggressive caching, clear it after adding the tracking code.
- Consent banners — if you have a cookie consent tool, make sure it’s allowing GA4 to fire.
Additionally, you can use the Google Analytics Debugger Chrome extension to see exactly what data is being sent.

Step 5: Essential First Configurations
Your tracking code is live, but GA4’s defaults aren’t ideal for most websites. Therefore, take five minutes to configure these critical settings now — you’ll thank yourself later.
Extend Data Retention
By default, GA4 keeps your event data for only 2 months. That’s absurdly short for most businesses.
- Go to Admin > Data Settings > Data Retention.
- Change event data retention to 14 months.
- Click Save.
This is the maximum retention period in the free version. If you need longer, you’ll need to export data to BigQuery.
Filter Out Internal Traffic
You don’t want your own visits inflating your numbers. Here’s how to filter them out:
- Go to Admin > Data Streams and select your stream.
- Click Configure tag settings > Show more > Define internal traffic.
- Click Create and add your office IP address.
- Then go to Admin > Data Settings > Data Filters.
- Edit the “Internal Traffic” filter and set it to Active.
Tip: Test the filter in “Testing” mode first. This lets you verify it’s working correctly before you start excluding data permanently.
Set Up Cross-Domain Tracking (If Needed)
If your business spans multiple domains (for example, a main site and a separate checkout domain), you need cross-domain tracking so GA4 treats visitors as a single session across both.
- Go to Admin > Data Streams > Configure tag settings.
- Click Configure your domains.
- Add each domain that should share tracking.

Your First Report: Acquisition Overview
Now for the rewarding part — actually looking at data. After a few hours of collecting traffic (or a day for more meaningful numbers), navigate to Reports > Acquisition > Acquisition overview.
This report shows you where your visitors are coming from. Here’s what you’ll see:
| Metric | What It Tells You |
|---|---|
| Users | Total unique visitors in the selected period |
| New Users | First-time visitors to your site |
| Sessions | Total visits (one user can have multiple sessions) |
| Default Channel Grouping | Traffic categorized by source: Organic Search, Direct, Social, Referral, etc. |
| Session Source/Medium | Specific sources like google/organic or facebook/social |
For instance, if you see most traffic coming from “Direct,” that often means people are typing your URL directly or your tracking isn’t capturing the source correctly. Meanwhile, “Organic Search” tells you how much traffic Google (and other search engines) are sending your way.
To understand what these metrics actually mean in practice, our guide to the top 5 website metrics breaks it all down in plain language.
Common GA4 Setup Mistakes to Avoid
After setting up GA4 for numerous businesses, I see the same mistakes repeatedly. Here are the ones that cause the most pain:
| Mistake | Why It Hurts | Fix |
|---|---|---|
| Not extending data retention | You lose historical data after 2 months | Set to 14 months immediately |
| Forgetting internal traffic filters | Your own visits skew all metrics | Add IP filter before analyzing data |
| Installing tracking code twice | Double-counted pageviews, inflated numbers | Check for duplicate gtag.js or GTM tags |
| Ignoring Enhanced Measurement | Missing valuable engagement data for free | Leave it enabled (it’s on by default) |
| Not linking Google Search Console | Missing organic keyword data | Link in Admin > Product Links |
| Wrong time zone setting | Daily reports don’t match your business day | Set before collecting data (can’t retroactively fix) |
One more thing: don’t forget to link Google Search Console to your GA4 property. Go to Admin > Product Links > Search Console Links and follow the prompts. This gives you organic search query data directly inside GA4 — incredibly useful for understanding what people search before landing on your site.
What to Do Next
You’ve completed your GA4 setup and pulled your first report. Here’s what I recommend tackling over the next week:
- Set up conversions. Identify key actions (form submissions, purchases, sign-ups) and mark them as conversion events in GA4.
- Create custom explorations. GA4’s Explore section lets you build custom reports — start with a simple funnel to see how visitors move through your site. Our funnel analysis guide covers this in detail.
- Review real-time data regularly. Spending a few minutes watching real-time reports helps you understand traffic patterns and verify tracking changes.
- Consider privacy implications. If you serve EU visitors, review whether GA4’s data collection aligns with GDPR requirements. Our privacy-first analytics guide explores the options.
Bottom Line
Setting up GA4 from scratch takes about 30 minutes if you follow the steps above. The critical part isn’t the installation — it’s the configuration. Extending data retention, filtering internal traffic, and linking Search Console are the steps that separate a useful GA4 setup from one that gives you unreliable data.
GA4 has its quirks, and the interface takes getting used to. But as a free analytics tool, it’s remarkably capable once configured properly. Start with the Acquisition overview report, get comfortable with the data, and gradually explore more advanced features as your confidence grows.
The most important thing? Don’t overthink it. Get your GA4 setup live, verify it’s working, and start collecting data. You can always refine your configuration later — but you can’t backfill data you never collected.

