NetNav

Set Up Basic Tracking with GA4

You can't improve what you don't measure. Right now, you're running your website blind—you don't know how many people visit, which pages they read, or where they come from. Every pound you spend on marketing, every hour you invest in content, every tweak you make to your website is pure guesswork without tracking.

Google Analytics 4 (GA4) changes that. It's the free tool that shows you exactly what's happening on your website in real time. And if you're still using the old Universal Analytics (or nothing at all), you need to act now—Google shut down Universal Analytics in July 2023. GA4 is the only option.

The good news? Installing GA4 is straightforward. You'll create a property, grab a tracking code, add it to your website, and verify it's working. This is the single most important technical step after launching your site. Once it's done, you'll finally see who's visiting, what they're doing, and where your efforts are paying off. This foundation makes everything else—from Set Simple Marketing Goals to Optimize Your Website for Google—actually measurable.

What You'll Have When Done:

GA4 tracking code installed and verified on your live website

Time Needed: 25 minutes

Difficulty: Confident

Prerequisites:

Website is live, Google Account access

Jump to: Quick Start | Complete Guide | Troubleshooting

---

Quick Start (5 Minutes)

If your website platform (WordPress, Shopify, Wix, Squarespace) has a built-in field for Google Analytics, this is your fastest path. You'll create a GA4 property, copy a single ID, paste it into your website settings, and you're done.

Before You Start:

☐ Website is live and accessible

☐ Google Account access (organise your logins)

Set Up Google Search Console (Recommended—this builds on ensuring basic Google connection)

Five Quick Steps:

Verify It's Working:

Open your website in an incognito/private browser window. Click around for 30 seconds. Go back to Google Analytics → ReportsRealtime. You should see "1" active user (that's you). If you do, you're done.

Completed the quick version? Move on to Setting Up Conversion Tracking or continue below for the detailed walkthrough with alternative installation methods.

---

Complete Step-by-Step Guide

This section covers every installation method—including Google Tag Manager (recommended for flexibility) and manual code placement—plus how to verify everything is working correctly.

Step 1: Access GA4 and Create Your Property

Log into Google Analytics using your business Google Account. If you've never used Analytics before, you'll be prompted to start setting up immediately. If you have an existing account, click Admin (the gear icon in the bottom-left corner).

In the Admin panel, you'll see three columns: Account, Property, and View. Click Create Property in the middle column.

Fill in the property details:

Click Next. Select your business category and size (choose "Small" if you have fewer than 10 employees). Click Create.

You'll be asked to accept the Google Analytics Terms of Service. Read and accept them.

[MEDIA:SCREENSHOT:ga4-create-property]

Step 1: Navigating to the Admin panel to create a new GA4 Property.

Step 2: Set Up Your Web Data Stream

After creating your property, you'll be prompted to set up a data stream. A data stream is simply GA4's way of collecting data from a specific source—in this case, your website.

Click Web as your platform.

Enter your website details:

Enhanced measurement: Leave this ON (it's enabled by default). This automatically tracks useful actions like scrolling, outbound clicks, site searches, video engagement, and file downloads without any extra code. If you're tracking email sign-ups through forms, this will capture those submissions too.

Click Create stream.

Step 3: Locate and Copy Your Measurement ID

Once your stream is created, you'll see the Web stream details page. At the top, you'll see a box labelled Measurement ID with a code that starts with `G-` followed by letters and numbers (e.g., `G-ABC123XYZ`).

This is your unique tracking identifier. Copy this entire code—you'll need it for installation.

[MEDIA:SCREENSHOT:ga4-measurement-id-location]

Locating and copying the G-XXXXXXX Measurement ID after creating the data stream.

Important: Make sure you're copying the G-XXXXXXX format. If you see a code starting with UA-, that's the old Universal Analytics format (which no longer works). GA4 always uses the G- prefix.

Step 4: Choose Your Installation Method

You have three options for installing the GA4 tracking code on your website. Choose the method that matches your technical comfort level and website platform:

Option A: Built-in Platform Integration (Easiest)

Most modern website platforms have a dedicated field for Google Analytics. This is the simplest method—just paste your Measurement ID and you're done.

Option B: Google Tag Manager (Recommended for Flexibility)

If you plan to add more tracking later (Facebook Pixel, conversion tracking, etc.), Google Tag Manager (GTM) makes it easy to manage all your tracking codes in one place without touching your website code.

Option C: Manual Code Placement (Fallback)

If your platform doesn't have built-in support and you don't want to use GTM, you can manually add the tracking code to your website's header.

Step 5: Installation via Built-in Platform (Easiest Path)

If you're using WordPress, Shopify, Wix, or Squarespace, follow these platform-specific instructions:

WordPress:

Install the free "Site Kit by Google" plugin. Go to Site Kit → Settings → Connect More Services → Analytics. Sign in with your Google Account and select your GA4 property. The plugin handles everything automatically.

Alternatively, many WordPress themes have a "Google Analytics ID" field in Appearance → Customize → Site Settings or similar. Just paste your Measurement ID there.

Shopify:

Go to Online Store → Preferences. Scroll down to Google Analytics. Paste your Measurement ID in the "Google Analytics account" field. Click Save.

Wix:

Go to Settings → Marketing Integrations → Google Analytics. Click Connect to Google Analytics, sign in, and select your GA4 property. Wix connects it automatically.

Squarespace:

Go to Settings → Advanced → External API Keys. Find "Google Analytics" and paste your Measurement ID. Click Save.

Once you've added your ID through your platform, skip to Step 7 (verification).

Step 6: Installation via Google Tag Manager (Recommended)

Google Tag Manager (GTM) is a free tool that lets you manage all your tracking codes (GA4, Facebook Pixel, conversion tracking) from one central dashboard. It's slightly more complex to set up initially, but saves enormous time later.

Set up GTM (if you haven't already):

You'll see two code snippets. Copy the first snippet and paste it in the `` section of every page of your website. Copy the second snippet and paste it immediately after the opening `` tag. (Most platforms have a "Custom Code" or "Header/Footer Scripts" section where you can add these.)

Add GA4 to GTM:

Your GA4 tracking is now live via GTM.

Step 7: Manual Code Placement (Fallback Method)

If your platform doesn't support built-in Analytics and you don't want to use GTM, you can manually add the GA4 tracking code.

Go back to your GA4 property in Google Analytics. Navigate to Admin → Data Streams → [Your Web Stream]. Under "Tagging Instructions", click View tag instructions, then select Install manually.

You'll see a block of code that looks like this:

```html

```

Copy this entire code block. You need to paste it into the `` section of every page on your website, just before the closing `` tag.

How to access your website's header:

Paste the code and save your changes.

Before you move on: Manually placing tracking code is tedious and easy to mess up. NetNav automatically monitors your site to ensure key scripts and tracking pixels (like your new GA4 ID) are firing correctly across your critical pages.

Step 8: Verify Your Installation with Real-Time Reports

Now you need to confirm that GA4 is actually receiving data from your website.

You should see at least 1 active user on the real-time dashboard. That's you. You might also see which pages you're viewing, your location, and how you arrived at the site.

[MEDIA:SCREENSHOT:ga4-realtime-verification]

Verifying the installation success using the Real-time report view (look for the '1 active user').

If you see your activity appearing in real time, congratulations—your tracking is working perfectly.

Installation Complete:

✅ GA4 property created

✅ Measurement ID obtained

✅ Tracking code installed site-wide

✅ Real-time data verified

Your website is now tracking every visitor, every page view, and every action. You've built the foundation for understanding the core reports and making data-driven decisions.

Step 9: Save Your Measurement ID for Future Use

Before you close everything, save your GA4 Measurement ID somewhere safe. You'll need it when you set up conversion tracking, connect other tools, or troubleshoot issues.

Add it to your Tools and Logins document with a note like:

```

Google Analytics 4

Measurement ID: G-ABC123XYZ

Property: Smith Plumbing Website

Login: youremail@business.co.uk

```

This simple step will save you 10 minutes of hunting through Google Analytics next time you need it.

---

🎉 Completed? You're tracking everything and ready to understand your visitors. You're ready for Setting Up Conversion Tracking.

---

Troubleshooting

Common Problems and Fixes:

Problem: Tracking tag installed but no data showing in the Real-time report.

Fix: Check if the tag fires correctly using the Tag Assistant browser extension. Verify your Measurement ID is exactly correct (including the G- prefix) with no extra spaces. If using GTM, make sure you clicked "Publish" after creating the tag.

Problem: Seeing data initially, but it stops after 24 hours.

Fix: Check if a caching or security plugin is blocking the script after your initial setup. Common culprits include WP Rocket, Cloudflare settings, or security plugins like Wordfence. Clear your site cache completely and add the GA4 script to your plugin's "allowed scripts" list.

Problem: Confused between the old Universal Analytics (UA) ID and GA4 ID.

Fix: Verify you are using the new G-XXXXXXX Measurement ID, not the older UA-XXXXXXX format. Universal Analytics stopped collecting data in July 2023. Only GA4 (G- format) works now. If you accidentally installed a UA code, go back to Step 3 and copy the correct GA4 Measurement ID.

---

Go Deeper into Analytics

Once your basic tracking is working, you might want to explore more advanced analytics capabilities:

Setting Up Proper Tracking (What You Actually Need)

For a full guide on advanced tracking methodologies beyond basic GA4 setup, see our deeper guide on defining your entire tracking ecosystem—including event tracking, custom dimensions, and cross-domain measurement.

Advanced Google Analytics Segments

If you need to dive into complex audience filtering and data segmentation after installation, read our guide on Advanced GA4 Segments to create custom reports that answer specific business questions.

---

What's Next

You've installed GA4 and verified it's collecting data. Now you need to define what success actually looks like by tracking the actions that matter to your business.

Next Blueprint Step: Setting Up Conversion Tracking

Define and measure key business actions (like form submissions, phone calls, or purchases) using the GA4 foundation you just built. This turns raw traffic data into business intelligence.

---

Other Get Found Guides

Build Your Visibility Foundation:

Grow Your Audience:

Fix Common Problems:

---

Start Tracking with Confidence

You've completed setting up critical tracking. This foundation is huge! NetNav can audit your entire site across 9 pillars in 60 seconds—see what else needs attention before you start driving traffic.

Run Your Free 60-Second Audit →

Every day without tracking is a day of wasted insight. But now? You're measuring everything. You'll know what's working, what's not, and exactly where to focus your effort next.

Start Free Audit

Core Sequence

Previous in sequence

Next in sequence

In this stage

Other Start Here Guides:

Set Up & Verify Your Business on Google Maps (3.1)

How to Write Title Tags and Meta Descriptions (Core SEO Guide)

Set Realistic Content Goals in 15 Minutes

Optimize Your Google Business Profile Strategy (Core Guide)

Select and Optimize Your Google Business Profile Categories

Related topics

Analytics & Data

Free Website Audit

Not sure where to start? Get a free audit of your current online presence and discover your biggest opportunities.

Start Free Audit

Run Your Free NetNav Audit Now →