✧ Key takeaways

GA4 is free, and setup takes about 20 minutes. Create a property, add a web data stream, install the tag, and check the Realtime report.

Google Analytics 4 is the only version of Google Analytics that exists now. Universal Analytics stopped processing new data on July 1, 2023, so if you set up analytics on a new website today, GA4 is what you get — there is no older option to pick by mistake. The good news: GA4 is free, and the basic setup takes about 20 minutes. Create a property, add a web data stream, install the Google tag on your site, and check the Realtime report. This guide walks through each step in order, then the settings most people skip and the mistakes that make a new GA4 account useless.

What GA4 is — and what changed from Universal Analytics

GA4 is built around events, not sessions. In Universal Analytics, the basic unit was a session — a visit — and pageviews were the main thing counted. In GA4, everything is an event: a page view, a scroll, an outbound click, a file download, a form submission. Sessions still exist, but they are calculated from events.

That matters: GA4 tells you what people do, not just which pages they load. A reader who finishes an article looks the same as one who left after three seconds if you only count pageviews. In GA4, those two visits look very different — as long as you set up the events that matter, covered below.

GA4 also tracks websites and apps in one property, and it only collects data from the day you install it — nothing from before setup. Install it the day your site goes live, even if the site is tiny.

Before you start

You need three things: a Google account, a live website you control, and Editor access on the Analytics account. If someone else owns the account — an agency, a previous developer — ask them to add you as an Editor, or create the property under your own account.

One property per website keeps reports readable. A property holds the data for one site; mixing two sites into one makes every report ambiguous. If you run a blog and a separate store, give each its own property.

Step 1: Create your account and property

Go to analytics.google.com and sign in. If this is your first time, click Start measuring. If you already have an Analytics account, go to Admin, click Create, and select Account — then Property for the next step.

Enter an account name — usually your business name — and review the data-sharing settings. The defaults are fine for most small sites, and you can change them later.

Now create the property: name it after your website, pick your reporting time zone and currency, then select your industry category, business size, and objective — Google uses those answers to tailor the default reports.

Click Create and accept the Analytics Terms of Service and the Data Processing Amendment. Pick the time zone where your business operates — changing it later only affects data going forward.

Step 2: Add a web data stream

A data stream is the connection that carries data from one source into your property. A website needs a Web stream: pick Web, enter your site's exact URL (with https, and the exact hostname you serve), and give the stream a clear name "Main website".

Leave enhanced measurement switched on. It automatically tracks page views, scrolls to 90% of a page, outbound clicks, site searches, video engagement, file downloads, and form interactions — with no extra code. You can switch individual events off later.

Click Create stream. GA4 shows your Measurement ID, which starts with G-. Copy it — every installation method needs it.

Step 3: Install the Google tag on your website

Three ways to install the tag — pick exactly one. Installing the same Measurement ID twice double-counts your traffic.

Option A: Paste the code yourself (manual install)

In GA4, go to Admin → Data streams, click your web stream, then View tag instructions → Install manually. Copy the snippet — it begins with <!-- Google tag (gtag.js) --> — and paste it immediately after the <head> tag on every page. On most sites that means pasting it once into a global header template. If you do not have access to your site's HTML, ask your developer.

Option B: Google Tag Manager (best if you plan to add more tags later)

Tag Manager keeps all your tracking in one place, with preview testing and version history. In your GTM container, go to Tags → New, choose the Google Tag tag type, and paste your Measurement ID as the Tag ID. Set the trigger to Initialization – All Pages. Use Preview to check it fires, then Submit to publish. Note that older guides mention a "GA4 Configuration" tag — Google replaced it with the Google Tag in 2023, so follow the current name.

Option C: Your CMS or website builder

Many platforms have a native field for the Measurement ID. WordPress users can install the official Site Kit by Google plugin, while Shopify, Wix, Squarespace, and HubSpot each have a Google Analytics field in settings. Paste the G- ID there and save — the easiest route if your platform supports it.

Step 4: Verify that data is flowing

Data collection can take up to 30 minutes to begin, so do not panic if the reports are empty five minutes after install. Open Reports → Realtime in GA4, then open your website in another tab and click around — you should appear as an active user within a minute or two.

To check specific events rather than just visits, use DebugView (Admin → Data display → DebugView). It shows each event as it fires, in near real time — how you confirm a form submission or download is actually recorded.

Still nothing after 30 minutes? Check three things: the tag is on the page (view source, search for your G- ID), you are looking at the right property, and your browser is not blocking the tag.

Five settings to fix right after install

These five take another ten minutes — skipping them is why most new GA4 accounts quietly become useless.

  1. Data retention: 2 months → 14 months. By default, GA4 keeps event-level data for only 2 months. Go to Admin → Data settings → Data retention and set it to 14 months, the maximum on the free tier.
  2. Mark key events. GA4 does not guess which actions matter. In Admin → Data display → Events, mark your success events — form_submit, purchase, sign_up, generate_lead — as key events. Until you do, reports show traffic but no outcomes.
  3. Filter out your own traffic. Your own visits, and your team's, inflate every number. Define your office or home IPs as internal traffic, then activate the filter in Admin → Data settings → Data filters.
  4. Link Search Console. In Admin → Product links, link your Search Console property to bring search query data into GA4. Our Google Search Console setup guide covers that side if you have not set it up yet.
  5. Link Google Ads — if you run ads. The same page connects Google Ads, so campaign cost and revenue sit in one place. Skip it if you do not advertise.

The first reports worth reading

New accounts look empty, and that is normal. Start with these four, and check them weekly rather than hourly — a new site needs a few weeks before any trend means anything.

  • Realtime — who is on the site right now, mostly useful for verifying your install.
  • Traffic acquisition (Reports → Acquisition) — where visitors come from: search, social, direct, referral.
  • Pages and screens (Reports → Engagement) — which pages get viewed, and for how long.
  • Events (Reports → Engagement) — what visitors do: scrolls, downloads, form submissions. Once you have marked key events, this answers whether your site is working.

Once a week, open Traffic acquisition and Pages and screens, note the top five entries in each, and ask what changed since last week.

Common setup mistakes

Installing the tag twice. A plugin plus a manual snippet, or GTM plus a manual snippet, both firing the same Measurement ID — every visit counted twice.

Wrong hostname in the stream. If your stream says yoursite.com but visitors land on www.yoursite.com, reports get messy. Use the exact URL you serve.

Expecting history. GA4 shows nothing from before installation — export old numbers from your previous tool before it stops.

Leaving retention at 2 months and never marking key events. Both are one-minute fixes, and both are the difference between an analytics account and a pageview counter.

Set it up once, then use it weekly

GA4 setup is a 20-minute job, but the value comes from the weekly habit: where visitors come from, which pages they read, and whether they do the things that matter to your business. And since GA4 only tells you what happens on your site, the next useful skill is finding out what people search for before they arrive — our free keyword research guide covers that without any paid tools.

Mors

Mors is a senior technology analyst and developer who builds, tests, and breaks modern software platforms to find what truly works. Specializing in cloud engineering, optimization tools, and SaaS architecture, they provide data-driven, objective reviews designed to save development teams time, money, and computing overhead.