Skip to main content

Digi Segment

How to Set Up GA4 From Scratch (2026) for a New Website

👁️ 29 Views
Laptop showing Google Analytics 4 dashboard with setup checklist for learning how to set up GA4 from scratch in 2026

Table of Contents

Most new site owners open GA4 for the first time three weeks after launch and get excited about the number. Then it sinks in. A big chunk of those visits are their own.

I’m Hardik Vaghani, an SEO strategist in Surat and the founder of Digi Segment. I’ve set up analytics for client sites in e-commerce, real estate, healthcare, home improvement and solar. This guide shows you how to set up GA4 from scratch on a brand-new website, in an order that keeps your data clean from the first visit.

It’s written for people who’ve never done a GA4 setup before. Every step says what the screen is for, not just where to click.

Is GA4 hard to set up?

Not really. A full GA4 setup takes about 15 to 30 minutes, and most of that is waiting for pages to load. The hard part is knowing which three or four settings to change on day one, because GA4 can’t apply them to data it has already collected. Get those right and everything else can wait until you have visitors worth analysing.

Why most first GA4 setups go quietly wrong

You create a property, paste a tag, see one user in the Realtime report and call it done. That one user is you.

Nothing looks broken. But GA4 is now counting your own visits next to real ones, keeping custom-report data for only two months, and tracking none of the actions you care about.

Weeks later the numbers feel off and you can’t fix the past. So the mistake in most beginner GA4 setups isn’t technical. It’s stopping at “receiving data.”

What you need before you set up GA4 from scratch

Three things before you start setting up GA4. A Google account that you own and will keep, not a freelancer’s. Admin access to your website, so you can add a tag. And a site that’s live, or at least reachable, so you can test.

Don’t create the property under someone else’s account. Untangling ownership later is painful.

If your site isn’t live yet, start with our guide on how to start a blog on WordPress in 7 steps. Already live but half-configured? Sort out your WordPress SEO settings first, so GA4 isn’t measuring an unfinished site.

GA4 vs Universal Analytics: the one difference that matters

Google Analytics 4 is Google’s event-based analytics platform. It records every interaction, including a plain page view, as an event, then builds reports from those events. Universal Analytics counted sessions and pageviews instead.

Universal Analytics stopped processing data on 1 July 2023, so GA4 is the only version you can set up today. In practice, a GA4 setup has no “Goals” section. You mark important events as key events instead.

Setting up GA4 in the right order: day one vs later

Here’s what most guides skip. Some parts of a GA4 setup only work going forward, so they belong on day one. Others can wait until traffic exists.

SettingWhenWhy
Property and web data streamDay oneNothing is collected without them
Tag installed, Realtime checkedDay oneProves data is flowing
Data retention set to 14 monthsDay oneData past the limit is already gone
Internal traffic filter set to ActiveDay oneIt never cleans past visits
One key event markedDay oneCounts only from the moment you mark it
Search Console linkWeek oneConnects search queries to on-site behaviour
Custom events, audiences, ExplorationsLaterUseless without traffic to analyse

I’d rather you did the first five properly than all seven badly. And if you only have ten minutes today, do the retention and filter rows.

Your GA4 setup guide in seven steps

  1. Create the account and property.
  2. Add a web data stream.
  3. Install the tag.
  4. Confirm data is flowing.
  5. Change the settings that can’t be backdated.
  6. Mark a key event.
  7. Link Search Console. The result is a property that records clean data from the first real visit.

Step 1: Create your account and property

Start your GA4 setup at analytics.google.com. Sign in and click Start measuring. Name the account after your business and the property after your site.

Then pick your reporting time zone and currency. Indian sites should choose India Standard Time and INR. Changing the time zone later can distort your reports, so get it right now.

Google also asks about your industry, size and goals. Answer honestly, since it tailors your default reports.

Step 2: Add a web data stream

A data stream is the connection between your website and GA4, and every GA4 setup needs one. Choose Web, enter your full URL and give the stream a name. Leave enhanced measurement switched on. Google’s page on setting up Analytics for a website shows every screen.

Where to find your Measurement ID

Open Admin, then Data streams, and click your stream. The Measurement ID starts with “G-“. Copy it. That’s the address your site reports to.

Step 3: Add the tag to your WordPress site

Pick one method and use only that one. Two tags on one site means double-counted page views.

Option A: Use a plugin

Google’s Site Kit plugin, or any analytics plugin with a Measurement ID field, is the easiest route for a GA4 WordPress setup. Paste the G- ID, save, done.

Option B: Paste the tag or use Tag Manager

No field in your theme? Paste the Google tag into your site header with a header-scripts plugin. Google recommends Tag Manager for easier changes later, but it’s one more tool to learn. I won’t cover it here. That’s a separate post.

Tags add a little page weight. Our Core Web Vitals guide shows how to measure the effect.

Step 4: Confirm data is flowing

Open your site in a private window. Then check Reports, then Realtime in GA4. One active user should appear within seconds.

Standard reports take longer, often 24 to 48 hours, so empty charts on day one aren’t a fault.

Step 5: Change the settings that can’t be backdated

This is where a GA4 setup either holds up or quietly falls apart.

Extend data retention

Go to Admin, Data settings, Data retention. Change event data retention from 2 months to 14 months and save. Keep “reset user data on new activity” on.

This only affects Explorations and other non-aggregated reports, while standard reports keep older aggregated data. Google’s data retention documentation spells out the rules.

Activate the internal traffic filter

Every property arrives with an internal traffic filter set to Testing. Testing means GA4 tags your visits but doesn’t remove them.

First define your IP address in your data stream’s tag settings, using Define internal traffic. Then open Data filters and switch the filter from Testing to Active. A filter can take 24 to 36 hours to apply, according to Google’s internal traffic filter guide.

It’s not perfect. Mobile data and changing home IPs slip through. But it beats counting yourself.

Step 6: GA4 events setup, starting with one key event

Enhanced measurement already records page views, scrolls, outbound clicks, file downloads and more. That’s most of your GA4 events setup done for free.

What it can’t know is which action matters to you. Pick one: a newsletter signup, a contact form submission, a purchase. Once it appears in your Events list, mark it as a key event under Admin, Key events. Google renamed conversions to key events in 2024, and its key events guide explains the difference.

Step 7: Link Search Console

Go to Admin, Product links, Search Console links, and click Link. Choose your verified property and your web stream. Once linked, your GA4 setup shows which search queries bring people to which pages, right inside the reports.

One catch: the Search Console reports won’t show in your left menu until you publish that collection from Reports, then Library.

Haven’t verified your site in Search Console yet? Our Google Search Console tutorial walks you through it.

What went wrong in one client’s first month of data

Last year I got pulled into a solar installer’s site a month after launch. The developer had finished the GA4 setup, Realtime showed data, and everyone called it done. The lead numbers didn’t add up.

So I checked the basics. The internal traffic filter was still sitting in Testing. Their sales team had been opening the site all day to show customers. Retention was still on the default two months, so I couldn’t build a proper Exploration across the whole period. And no key event existed, so leads were being counted by hand from contact form emails.

Fixing it took under an hour. But that first month stayed dirty, because none of those settings work backwards. I told the client to treat it as a rough draft and use month two as the real baseline.

Honestly, that’s what bothers me most. Every fix was a ten-minute job, done thirty days late. Now I change retention and the filter before opening a report.

A worked example: launching a WordPress blog

Say you’re about to set up GA4 from scratch for a WordPress food blog that launches next Monday. It’s a hypothetical, but the choices are the real ones.

Friday evening. Create an account and a property called “Street Food Diary”. Set the time zone to India Standard Time and the currency to INR. Add a web data stream, leave enhanced measurement on and copy the Measurement ID, which looks like G-XXXXXXXXXX. Paste it into Site Kit. Then open the blog in a private tab on your phone, download your free street food map PDF once, and check that Realtime shows a user. Seeing nothing? Clear your caching plugin and reload, because a cached page can hide a freshly added tag.

Saturday. Set event and user data retention to 14 months. Add your home broadband IP under Define internal traffic, then switch the data filter to Active. Your PDF download should now be in the Events list as file_download, so mark it as a key event.

Sunday. Link Search Console and publish its report collection.

Monday. Launch the blog and tell people about it.

Wednesday. Open Reports, then Acquisition, then Traffic acquisition. Most early visitors will probably show as Direct, since you’ve only just announced the blog. That’s normal. Check that Pages and screens lists your real posts and that your key event has started counting. You’re not chasing numbers yet. You’re checking the plumbing, so leave the dashboard alone for a week after that.

Total time: well under two hours. And your GA4 setup dodged every mistake in this guide.

GA4 for beginners: what to leave alone for now

I’m skipping custom dimensions, audiences, BigQuery export and elaborate Explorations on purpose. Most new sites won’t need half of that for months, and every extra piece added to a fresh GA4 setup is another way to break something.

Come back after 30 days of real traffic. And once the numbers are flowing, our SEO basics guide shows what to do with them.

FAQ

What is the difference between GA4 and Universal Analytics?

Universal Analytics tracked sessions and pageviews. GA4 tracks events, and everything else, including page views, is built from them. Universal Analytics stopped processing data on 1 July 2023, so a new site only gets GA4.

How long does it take to set up GA4 from scratch?

About 15 to 30 minutes covers the account, data stream, tag and day-one settings. Then give it 24 to 48 hours before you trust the standard reports. Realtime works straight away.

Is GA4 free?

Yes. The standard version costs nothing, and it’s all a new site needs for a GA4 setup. Google Analytics 360 is the paid enterprise tier, and you’ll know if you need it.

What’s the best way to add GA4 to WordPress?

For most beginners, Google’s Site Kit plugin or another analytics plugin with a Measurement ID field. Paste the G- ID and you’re done. Use Tag Manager only if you already need custom tracking. Whichever route you pick, install the tag once.

Why is GA4 not showing data?

Check three things in order before blaming your GA4 setup. Is the Measurement ID correct and the tag live on your site? Is an active internal traffic filter hiding your own test visits? And have 24 to 48 hours passed for standard reports? Realtime should show a visit within seconds, so if it doesn’t, the tag isn’t firing.

Do I need Google Tag Manager to set up GA4?

No. A plugin or a pasted tag is enough for basic tracking. Google recommends Tag Manager because it makes later changes easier, and I agree once you’re tracking clicks and forms. On day one it’s optional.

Should I extend GA4 data retention to 14 months?

Yes, in almost every case. It costs nothing, and the two-month default limits your Explorations. It won’t touch standard reports, and it can’t bring back data that’s already been deleted. So change it during your GA4 setup, not next quarter.

Do I have to set up GA4 events manually?

Not the basics. Enhanced measurement, on by default for web streams, records scrolls, outbound clicks, site search, video engagement, file downloads and form interactions. You only add custom GA4 events for actions it can’t see, like one specific button.