Loading
October 26, 2026

AmirHesamTech

Raspberry Pi, homelab, Linux and automation — projects and practical guides

Google Analytics Setup Guide for Beginners: Track Your Website in 10 Minutes

Updated September 2026 for Google Analytics 4. Google occasionally renames menus — the steps below follow Google’s own setup help.

Setting up Google Analytics takes four things: an account, a property, a web data stream, and a small tag added to your website. Most people get stuck on the data stream or add the tag twice. This guide walks through each click, shows the simplest way to connect a WordPress site, and explains how to confirm it’s working before you trust any numbers.

Before you start

  • A Google account (a Gmail address works).
  • Access to edit your website, or to install a plugin if you use WordPress.
  • About 15 minutes, plus up to 30 minutes for the first data to appear.

Check first: if your site already has an analytics plugin or a G- tag installed — perhaps added by a theme or a previous developer — find out before adding another. Two copies of the tag count every visit twice.

Advertisement

How Google Analytics is organised

Level What it is Example
Account Your business or organisation My Business
Property One website or app you want to measure mybusiness.com
Data stream The connection that sends data from the website into the property Web stream with a Measurement ID starting G-

Step 1: Create your account

  1. Go to analytics.google.com and sign in.
  2. Click Start measuring. (If you already use Analytics, go to Admin → Create → Account.)
  3. Enter an account name, review the data-sharing settings, and click Next.

Step 2: Create a property

  1. Enter a property name — your website’s name is fine.
  2. Choose your reporting time zone and currency. The time zone decides where each day starts and ends in your reports, so pick your own.
  3. Click Next, then choose your industry and business size.
  4. Choose your business objectives. Google uses these to decide which reports to show you by default — you can still see everything later.
  5. Click Create and accept the terms.

Step 3: Add a web data stream

This is the step older guides miss.

  1. Choose Web as your platform.
  2. Enter your website address and a stream name.
  3. Leave Enhanced measurement switched on. It automatically records useful actions such as scrolls, outbound link clicks and file downloads.
  4. Click Create stream.
  5. Copy the Measurement ID shown in the stream details. It starts with G-.

You can find it again later under Admin → Data collection and modification → Data streams.

Step 4: Connect your website

WordPress

The simplest route is a plugin, so you never edit theme files:

  • Site Kit by Google — Google’s official plugin. Install it from Plugins → Add New, run its setup wizard, sign in with the same Google account, and choose your Analytics property.
  • If you already use another analytics plugin, add your Measurement ID there instead — don’t use two plugins for the same job.

Website builders (Wix, Squarespace, Shopify and similar)

Look for an Analytics, Marketing or Integrations section in your site settings and paste your Measurement ID. The builder adds the tag for you.

Any other website

In the stream details, open the tag installation instructions and copy the code snippet Google provides. Paste it into the <head> of every page — or ask your developer to. If you use Google Tag Manager, add a Google tag there instead of editing the site.

Step 5: Confirm it’s working

  1. Open your website in a separate browser tab and click around a couple of pages.
  2. In Analytics, open Reports → Realtime.
  3. You should see at least one active user — you.

Google notes that data collection can take up to 30 minutes to begin. If nothing appears after that, check the Measurement ID matches, that the tag is on the page, and that an ad blocker isn’t hiding your own visit.

The reports to look at first

  • Traffic acquisition — where visitors come from: Google search, social media, other websites, or typing your address.
  • Pages and screens — which pages get the most views.
  • Engagement rate — the share of visits that were “engaged”.

What “engaged” means: Google counts a session as engaged if it lasts longer than 10 seconds, includes a key event, or includes at least two page views. Bounce rate in Google Analytics 4 is simply the opposite — the share of sessions that weren’t engaged. This is different from the old definition you may see in outdated guides, so don’t compare today’s numbers with old reports. Google explains both in its engagement rate help page.

Privacy basics

  • Mention analytics in your privacy policy, including that Google Analytics uses cookies.
  • Visitors in some countries must consent before analytics cookies are set. If you have visitors from the UK or European Economic Area, look into a consent banner and Google’s consent mode.
  • Don’t send personal information such as names or email addresses into Analytics — it’s against Google’s rules.

Common mistakes

  • Installing the tag twice — inflated page views and very low bounce rates are the giveaway.
  • Counting your own visits — use a separate browser for testing, or set up an internal traffic filter.
  • Wrong time zone — daily numbers won’t line up with your day.
  • Checking daily on a small site — with low traffic, numbers swing a lot from day to day. Look at weekly or monthly trends.

Frequently asked questions

Is Google Analytics free?

Yes, the standard version of Google Analytics is free. A paid enterprise version exists for very large organisations.

How long until data shows up?

Realtime data usually appears within minutes, though Google says collection can take up to 30 minutes to start. Standard reports can take longer to fill in.

Where do I find my Measurement ID?

Go to Admin → Data streams, click your web stream, and copy the ID starting with G-.

Why does Analytics show fewer visitors than my server logs?

Analytics only counts visits where its tag runs, so ad blockers, declined consent and visitors with scripts disabled aren’t counted. Server logs also include bots. Neither number is “wrong” — they measure different things.

Related guides

Advertisement

65 Posts

SDET and QA engineer. I build Raspberry Pi servers, a Proxmox homelab and automations, and share how on TikTok and Instagram (@techwithamirh3sam).

View All Posts

You Missed

REWARDS 🔰 LV1 0🪙 ❯
🔰
Recruit
Guest Operative
Level1
XP0 / 100
💬 Need help?
coins0
Streak0 days · best 0
📋 Daily missions
↻ Resets daily at midnight
Rank ladder
How to earn
✓ Welcome bonus for joining — +200 🪙 & +100 XP (one-time)
✓ Daily check-in (streak bonus) — +20 XP & +12–24 🪙 (more 🪙 the longer your streak)
✓ Spin the daily wheel — +10 to +150 🪙 (free, once a day)
✓ Daily missions — check-in +15 🪙/+10 XP · daily spin +15 🪙/+10 XP
✓ Finish ALL daily missions — +30 🪙 & +20 XP bonus
✓ Level up — +25 🪙 every new level
✓ Achievements — first sign-in +50 🪙 · Lv5 +75 · Lv10 +150 · Lv25 +300 · 7-day streak +100 · 30-day +250 · collector +100 · subscriber +50
✓ Complete your profile (name, bio, photo) — up to +55 XP (one-time)
✓ Subscribe to the newsletter — +250 🪙 (one-time)
Coins and XP are just for fun: they have no cash value and can't be exchanged for money or prizes. You never earn them for viewing or clicking ads, or for how many pages or articles you open.
🛒 Token Shop0 🪙
🛍️ Shop0items
🎒 Inventory0items

🎡 Daily Spin

One free spin every day — pure bonus coins!
🪙
💬Need help?