SEO & Traffic

How to Set Up Google Analytics 4 on Your Blog: Beginner's Guide

Google Analytics 4 tells you how many people visit your blog, where they come from and what they read. Here is how to set it up and check that it works.

Genius GuruFounder, GeniusGuru 6 min read
Quick answer:
  • Go to analytics.google.com, create an account and a property, then add a Web data stream with your site URL.
  • Copy the Measurement ID (it starts with "G-") or the Google tag code, and add it to your site's <head> or your platform's Analytics field.
  • Keep enhanced measurement on so page views, scrolls and outbound clicks are tracked automatically.
  • Check the Realtime report to confirm it works. Google says data can take up to 30 minutes to start.

You are writing posts and sharing them, but you do not really know how many people visit, which posts they read, or where they come from. Without that, you are guessing what to write next.

Google Analytics 4 (GA4) is free and answers these questions. This guide shows you how to set up GA4 on your blog step by step, check that it works, and find the few reports a beginner actually needs.

Google Analytics vs Search Console: do you need both?

Yes. They do different jobs, and both are free.

QuestionGoogle Analytics 4Google Search Console
How many people visit my site?Yes, from all sourcesOnly clicks from Google Search
Which search queries show my pages?Not in detailYes, with impressions and position
What do visitors do on my pages?Yes: pages viewed, time, scrolls, clicksNo
Are my pages indexed? Any errors?NoYes
Traffic from Facebook, WhatsApp or YouTube?YesNo

If you have not set up Search Console yet, start with our guide to the Search Console Performance report.

Before you start

  • A Google account (a separate one for your business is a good idea).
  • Access to your site's settings or header code area.
  • About 15 minutes.

How to set up Google Analytics 4 on your blog: step by step

These steps follow Google's help page on setting up Analytics for a website. Button names may change slightly, so check that page if your screen looks different.

Step 1: Create an Analytics account

  1. Go to analytics.google.com and sign in.
  2. If this is your first time, click Start measuring. If you already use Analytics, go to Admin, click Create, then Account.
  3. Enter an account name, such as your brand name.
  4. Choose your data-sharing settings, then click Next.

Step 2: Create a property

  1. Enter a property name, such as your site name.
  2. Set the reporting time zone to India and the currency to Indian Rupee, if those fit your business. This makes daily reports match your day.
  3. Select your industry and business size, and choose how you plan to use Analytics.
  4. Click Create and accept the terms.

Step 3: Add a web data stream

  1. When asked to choose a platform, click Web. (Later, you can find this under Admin > Data collection and modification > Data streams > Add stream.)
  2. Enter your website URL and a stream name.
  3. Leave Enhanced measurement turned on. Google recommends it. It tracks page views, scrolls, outbound link clicks, site search and some other actions without extra code.
  4. Click Create stream.

Step 4: Find your Measurement ID

Open your new stream. Under Stream details you will see the Measurement ID, which looks like G-XXXXXXXXXX. Copy it.

Step 5: Add the Google tag to your site

Choose the option that matches your site:

  • Your platform has a Google Analytics field: many blogging platforms, themes and website scripts have a box for the Measurement ID in settings. Paste the ID there and save.
  • Your platform lets you add custom code to the head: in your stream, click View tag instructions, choose Install manually, and copy the full code that starts with <!-- Google tag (gtag.js) -->. Paste it in your site's header code area.
  • You edit HTML or PHP files yourself: paste the code right after the opening <head> tag, on every page. In most PHP sites, this is a shared header file, so you only add it once.
  • You use Google Tag Manager: add a Google tag with your Measurement ID inside Tag Manager instead.
Warning: Add the tag only one way. If you paste the code in the header and also enter the ID in a plugin, you may count every visit twice and get confusing numbers.

Step 6: Check that it is working

  1. Clear your site's cache.
  2. Open your site on your phone using mobile data, and visit two or three pages.
  3. In Analytics, open Reports > Realtime. You should see at least one active user.

Google says data can take up to 30 minutes to start appearing. Most standard reports fill in more slowly than Realtime, so check them again the next day.

GA4 not showing data? Quick fixes

ProblemLikely causeFix
Realtime shows 0 usersCode not live, or cached pageClear cache, view page source and search for your G- ID
Only some pages trackedCode added to one page onlyAdd it to the shared header so it loads on every page
Numbers look doubledTag added twiceRemove one of the installations
You see no visits from yourselfAd blocker or privacy browserTest in a normal browser on another device
Wrong times in reportsTime zone not set to your regionChange it in Admin, in your property details

The 4 GA4 reports beginners should check every week

1. Realtime

Shows who is on your site right now. Useful right after you share a post on Facebook or WhatsApp, to see if people are clicking.

2. Traffic acquisition

In Reports, open Acquisition > Traffic acquisition (on some accounts this sits under Life cycle). It shows where visits come from: organic search, social, direct or referral. This tells you which channel deserves more of your time.

3. Pages and screens

In Reports, open Engagement > Pages and screens. You will see your most viewed pages. These are the posts to improve first, with better headings, updated facts and internal links to related posts.

4. Engagement overview

Shows average engagement time. If people leave quickly from a post, the title may promise something the content does not deliver, or the page may be slow.

Tip: Once a month, write down three numbers in a simple sheet: total users, top 5 pages, and the share of traffic from organic search. Watching the trend over months is far more useful than checking every hour.

Privacy and your Analytics setup

Analytics uses cookies to measure visits. Mention this in your privacy policy, and say which tools you use. If you also plan to apply for AdSense, our guide on privacy policies for AdSense sites covers what to include. If you get visitors from regions with strict consent laws, check Google's help pages on consent settings.

Does your website platform make this easier?

Some website scripts and themes include a simple field for your Analytics ID, so you do not need to edit code at all. If you are choosing a script, check for this along with SEO settings and speed. Our marketplace lists ready-made scripts with their features, so you can compare before you buy.

Final word

Setting up GA4 takes about 15 minutes: create an account and property, add a web stream, place the tag once, and confirm in Realtime. After that, a short weekly look at traffic sources and top pages will tell you far more about what to write next than guessing.

Next step: set up GA4 today, then come back in a week and note your top five pages. Improve the best one first.

Frequently asked questions

Is Google Analytics 4 free?

Yes, the standard version of Google Analytics is free to use for websites and blogs.

How long does GA4 take to show data?

Google says data collection can take up to 30 minutes to begin after setup. Use the Realtime report to confirm visits, and check other reports the next day.

Where do I find my GA4 Measurement ID?

In Analytics, go to Admin, open Data streams and click your web stream. The Measurement ID starting with 'G-' is shown under Stream details.

Do I still need Search Console if I use GA4?

Yes. GA4 shows visitor behaviour from all sources, while Search Console shows search queries, indexing and errors on Google Search.

Tools mentioned in this post

Genius Guru

Founder of GeniusGuru. Teaches AdSense, Facebook monetization, YouTube growth and AI tools to learners across India, and builds the ready-made website scripts sold on the GeniusGuru marketplace.

More about GeniusGuru →