How to Install Google Analytics 4 (GA4) on WordPress (2026)

To install Google Analytics 4 on WordPress, create a free GA4 property at analytics.google.com, then install Site Kit by Google, WordPress’s official Google plugin, and connect it to your GA4 property through its setup wizard. Site Kit automatically inserts the tracking code on every page, no manual code editing required. The whole process takes under 30 minutes, and Real-time reporting confirms it’s working within minutes of finishing setup.
Before You Start
Make sure you have the following in place first:
- A Google account you want to permanently own this property with
- Administrator access to your WordPress dashboard
- Google Search Console already set up (see our setup guide), since Site Kit can connect both in one place
Without analytics, you’re genuinely guessing about who’s visiting your site, what they’re reading, and whether your content strategy is actually working. Google Analytics 4 fixes that, and it’s completely free. Universal Analytics, the older version, stopped collecting data back in 2023, so GA4 is the only real option now. This guide gets it connected the simplest way available.
What You’ll Learn
- How to create a GA4 property, step by step
- How to connect it to WordPress using Google’s own official plugin
- How to verify tracking is actually working
- Which reports are worth checking first
Step 1: Create a GA4 Property
- Go to analytics.google.com and sign in with your Google account.
- Click Admin, then Create Property.
- Enter your property name (your site name works well), reporting time zone, and currency.
- Fill in basic business details, industry, business size, and how you plan to use Analytics.
- Accept the terms of service.
Step 2: Create a Web Data Stream
- Choose Web as your platform.
- Enter your site’s name and full URL.
- Keep Enhanced Measurement enabled, this automatically tracks page views, scrolling, and outbound clicks with no extra setup.
Once created, you’ll see a Measurement ID in the format G-XXXXXXXXXX. Note it, though you won’t need to copy it manually if you use the plugin method below.

Step 3: Install Site Kit by Google
- In your WordPress dashboard, go to Plugins → Add New Plugin.
- Search for “Site Kit by Google.”
- Click Install Now, then Activate.
Site Kit is Google’s own official WordPress plugin, and it can connect Analytics, Search Console, and AdSense all from one dashboard, removing the need to manually paste tracking code anywhere.

Step 4: Connect Site Kit to Your Google Account
- Open Site Kit and click Start Setup.
- Sign in using the same Google account that owns your GA4 property.
- Grant the requested permissions so Site Kit can access your data.
- When prompted, select Google Analytics, then choose your GA4 property and web data stream.
- Complete the wizard.
WebGomu Tip: Avoid installing GA4 through more than one method at once, for example, Site Kit plus a manually pasted tracking code. Running both simultaneously double-counts your traffic and skews every report going forward. Pick one method and stick with it.

Step 5: Verify Tracking Is Working
Go to your GA4 property, open the Realtime report, then load your website in a separate browser tab. You should see at least one active user appear within a minute or two, confirming the connection is working correctly.
Choosing Between Site Kit and MonsterInsights
| Plugin | Best For | Price |
|---|---|---|
| Site Kit by Google | Official, Google-maintained, connects Analytics + Search Console together | Free |
| MonsterInsights | More detailed in-dashboard reports and beginner-friendly explanations | Free (Pro from roughly $99/year) |
Site Kit is the recommended default in this guide because it’s official, free, and pairs naturally with the Search Console setup you likely already have. MonsterInsights is a genuinely solid alternative if you prefer more detailed reporting directly inside WordPress.
What to Check First, Once Connected
- Acquisition report — where your visitors are actually coming from (organic search, social, direct, referral)
- Engagement report — which pages hold attention longest
- Realtime report — useful right after publishing something new, to confirm visitors are landing on it
Give it a week or two of real data before drawing conclusions, a few days of traffic isn’t enough to spot a meaningful pattern yet.
Troubleshooting
Realtime report shows no active users, even after I visited my own site
Confirm you’re not running an ad blocker or privacy extension that blocks analytics scripts, these can prevent your own visit from registering. Try an incognito window as a cleaner test.
I already had Universal Analytics set up, what happens to that old data?
Universal Analytics stopped collecting new data in 2023, and its historical data isn’t accessible within GA4. Setting up GA4 fresh, as covered in this guide, is the only path forward now.
My numbers look inflated compared to what I’d expect
Check whether GA4 tracking code has been installed through more than one method (a plugin and a manual code paste, for example), running both simultaneously double-counts traffic.
Common Mistakes
- Installing GA4 through multiple methods at once, resulting in inflated, unreliable data.
- Checking data too soon and drawing conclusions from just a day or two of traffic.
- Forgetting to keep Enhanced Measurement enabled, missing out on automatic scroll and click tracking.
- Not verifying the connection with the Realtime report before considering setup complete.
Recommended Tools
- Site Kit by Google — official, free, and the simplest path for most beginners
- MonsterInsights — solid alternative for more detailed in-dashboard reporting
Key Takeaways
- GA4 is the only current version of Google Analytics, Universal Analytics stopped collecting data in 2023.
- Site Kit by Google is the simplest, official way to connect GA4 to WordPress with no code required.
- Never run more than one GA4 installation method simultaneously.
- Verify tracking with the Realtime report immediately after setup.
Frequently Asked Questions
Is Google Analytics 4 free?
Yes, GA4 is completely free for standard use, with no cost to create a property or track a typical website’s traffic.
Do I need to know how to code to install GA4?
No. Using Site Kit by Google, the entire setup happens through guided menus and a setup wizard, no code editing required.
What happened to my old Universal Analytics data?
Universal Analytics stopped processing new data in 2023, and its historical data is no longer accessible. GA4 setup starts fresh from the point of installation.
How long does it take for GA4 data to start appearing?
Real-time data appears within minutes of a correctly connected setup. Full reports typically need a day or two to populate meaningfully.
Can I use both Site Kit and MonsterInsights at the same time?
It’s best to choose one. Running multiple GA4 installation methods simultaneously can result in duplicate tracking and inflated, unreliable data.
Resources Links
Author:

Christoper Enolpe
Founder of WebGomu • WordPress Freelancer with 10+ Years of Experience
Christoper is the founder of WebGomu and a WordPress freelancer with over 10 years of hands-on experience building, optimizing, and maintaining WordPress websites. He writes practical, beginner-friendly guides based on real-world experience, covering WordPress, SEO, website performance, and AI tools to help readers build better websites with confidence.
Learn more: https://webgomu.com/about-us/
Get one WordPress tip every week
Start Here

The Ultimate Beginner’s Guide to WordPress (2026): Build Your First Website Without Coding
Popular Guides
More from the blog
How to Automate Email Newsletters from Your Blog (2026)
Connecting WordPress to Zapier/Make: A Beginner’s Guide (2026)
