You just launched your WordPress site. Now comes the question every new site owner asks: is anyone actually visiting?
Google Analytics answers that question for free. It shows you how many people visit, where they come from, which pages they read, and what they click. This guide walks you through setting it up on WordPress in about 15 to 30 minutes, with no code required.
What is Google Analytics 4 (GA4)?
Google Analytics 4, usually shortened to GA4, is the current version of Google Analytics. It replaced the older Universal Analytics, which stopped collecting data in July 2023. If you ever see an old tracking ID that starts with UA-, ignore it. It no longer works.
GA4 is free for standard use. You only pay if you are a huge enterprise on the Analytics 360 plan, which a beginner site will never need.
Here is what GA4 tells you once it is running: how many visitors your site gets each day; where visitors come from (Google search, social media, direct visits, links from other sites); which pages and posts are most popular; what country and device your visitors use; which actions visitors take, like filling in a form or clicking a button.
Before you start: what you need
You need two things: a Google account (the same kind you use for Gmail or YouTube), and admin access to your WordPress site. That is it. No credit card, no paid plugin, and no coding.
Step 1: Create a GA4 property
A “property” in Google Analytics is just your site’s container for data. Here is how to create one:
- Go to analytics.google.com and sign in with your Google account.
- Click Start measuring (or Admin, then Create property, if you already have an account).
- Give your account a name, like your site name or your name.
- Create a property and name it after your site.
- When asked for a platform, choose Web.
- Enter your website address (for example, https://yoursite.com) and give the stream a name, like your site name.
- Click Create stream.
Google will now show you a Measurement ID. It starts with G- followed by letters and numbers, like G-XXXXXXXXXX. This ID is the code that connects your site to your GA4 property. Keep this tab open, because you will need the ID in the next step.
Step 2: Connect WordPress with Site Kit (the no-code method)
There are a few ways to add GA4 to WordPress. For beginners, the best one is Site Kit by Google, Google’s own free plugin. It has more than 5 million active installations, it places the tracking code on every page for you, and it shows your traffic stats right inside your WordPress dashboard. It also survives theme updates, which pasted code does not always do.
- In WordPress, go to Plugins > Add New.
- Search for Site Kit by Google.
- Click Install Now, then Activate.
- Click Start Setup and sign in with the same Google account you used in Step 1.
- Follow the setup wizard. When it offers to connect Analytics, choose the GA4 property you just created.
- When Site Kit offers to place the Google tag on your site, say yes.
That is the whole installation. Site Kit handles the code, so you never have to touch a theme file.
Method comparison: which way should you choose?
Site Kit by Google (recommended): best for beginners who want a guided setup and stats in WordPress; trade-off is fewer advanced tag-management controls. A plugin like Rank Math or an SEO plugin’s Analytics field: good for sites already running that plugin; Analytics is a side feature, not the plugin’s main job. Pasting the Google tag by hand: for developers who want full control and no extra plugin; you must edit theme files or a code snippet plugin, and theme updates can wipe it out.
Pick one method only. Installing GA4 two ways at once (for example, Site Kit plus a pasted code snippet) can double-count your visitors and give you inflated numbers.
Step 3: Verify that tracking works
Do not skip this step. A setup that looks finished but collects nothing is worse than no setup at all, because you will trust numbers that are not there.
- Open your site in a browser tab, as a normal visitor would.
- In Google Analytics, open Reports > Realtime.
- Within a few minutes, you should see at least one active user: you.
If you see yourself in Realtime, tracking works. If not, check these common causes: you connected the wrong GA4 property in Site Kit; you installed GA4 twice (remove the second method so only one tag runs); you are checking the wrong Google account.
Realtime data appears within minutes. Standard reports, like traffic sources and page views, take 24 to 48 hours to fill in, so do not panic if they look empty on day one.
Step 4: Three settings most beginners forget
- Extend your data retention. By default, GA4 keeps detailed event data for 2 months. For a growing blog, 14 months is more useful. Go to Admin > Data collection and modification > Data retention and set event data retention to 14 months, then save.
- Filter out your own visits. Your own visits inflate your numbers, especially on a new site. Go to Admin > Data collection and modification > Data filters, create an internal traffic filter for your own IP address, and set it to Active.
- Add a cookie consent banner if you have EU visitors. If anyone in the European Union visits your site, privacy rules expect you to ask before setting analytics cookies. A free consent plugin like Complianz or CookieYes handles this.
What to look at first in GA4
GA4 has a lot of reports, and most of them will confuse you at first. Start with these three: Realtime (who is on your site right now, good for confirming tracking works); Reports > Demographic overview (where your visitors come from and what devices they use); Reports > Pages and screens (your most popular pages and posts, which tells you what content to write more of).
Once you are comfortable, link your GA4 property to Google Search Console (Admin > Property settings > Search Console links). That adds a Queries report showing the actual search terms people used to find your site, which is gold for planning new articles.
Common mistakes to avoid
Installing GA4 twice (one method only, or your numbers will be wrong). Using an old UA- tracking ID (Universal Analytics stopped collecting data in July 2023). Judging your site after one day (standard reports need 24 to 48 hours, and meaningful patterns need weeks). Counting your own visits (filter internal traffic). Obsessing over daily numbers (on a new site, watch weekly trends instead).
Frequently asked questions
Is Google Analytics free? Yes. The standard version of GA4 is free. Only the enterprise Analytics 360 plan costs money.
Do I need to know how to code? No. Site Kit covers the whole setup through point-and-click screens. Code is only needed if you choose the manual method.
How long does setup take? About 15 to 30 minutes, including creating the GA4 property and running the Site Kit wizard.
When will I see data? Realtime data appears within minutes. Standard reports usually take 24 to 48 hours to fill in.
Can I see analytics inside WordPress? Yes, if you use Site Kit. It shows a traffic summary in your WordPress dashboard.
Next steps
Once GA4 is running, your job is simple: publish good content, then check your Pages report once a week to see what readers actually want. That habit is worth more than any fancy report.