WordPress is the most-used platform in the world and one of the simplest on which to install GA4: no code modification required. Three methods exist depending on your level and configuration. Here's which to choose and how to proceed.
Before you start
You need:
- WordPress administrator access (not just editor)
- A Google Analytics 4 account with a property created
- The GA4 Measurement ID in the format
G-XXXXXXXXXX(available in GA4 โ Admin โ Data streams)
If you haven't created your GA4 property yet, start with the general GA4 install guide before coming back here.
Method 1: Google Site Kit (recommended for beginners)
Site Kit is Google's official plugin. It connects GA4, Search Console and other Google tools in a few clicks.
Install
- In WordPress admin โ Plugins โ Add new
- Search for "Site Kit by Google"
- Install then Activate
Configuration
- The plugin shows a setup wizard โ click "Start setup"
- Connect your Google account (the one with GA4 access)
- Site Kit offers to automatically link:
- Google Search Console โ (accept)
- Google Analytics 4 โ (accept)
- Select your existing GA4 property (or create a new one)
- Complete setup
The GA4 tag is now active on every WordPress page.
Verification
Site Kit displays a dashboard directly in the WordPress admin with your GA4 metrics. If data appears (even in real time in GA4 โ Reports โ Realtime), the install was successful.
Pros: official Google, zero code, also connects Search Console automatically. Cons: heavy plugin, may slightly slow the WordPress admin, less event-level control.
Method 2: dedicated GA4 plugin (lighter)
If you don't want to install the full Site Kit, several lightweight plugins only inject the GA4 tag.
Recommended plugin: "GA Google Analytics"
- Plugins โ Add new โ search "GA Google Analytics" (author: Jeff Starr)
- Install and activate
- Go to Settings โ Google Analytics
- Enter your Measurement ID (
G-XXXXXXXXXX) in the dedicated field - Select position: "Header" (recommended)
- Save
The GA4 snippet is injected in the <head> of every page.
Alternative: MonsterInsights
MonsterInsights offers a free version that connects GA4 via OAuth (like Site Kit) and shows reports in the WordPress admin.
- Install MonsterInsights
- Follow the Google connection wizard
- Select your GA4 property
MonsterInsights adds a few extra tracking features (forms, e-commerce) but the free version is enough for a basic install.
Method 3: Google Tag Manager (recommended if you have other tags)
If your WordPress site already uses GTM, or if you plan to add other scripts (Facebook Pixel, Hotjar, etc.), go through GTM rather than a direct GA4 plugin.
Step 1: install GTM on WordPress
Recommended plugin: "GTM4WP" (Google Tag Manager for WordPress)
- Install and activate GTM4WP
- Go to Settings โ Google Tag Manager
- Enter your GTM container ID (format
GTM-XXXXXXX) - Enable the option "Enable the noscript snippet in the body"
- Save
Step 2: configure GA4 in GTM
- In the GTM interface โ Tags โ New
- Type: Google Analytics: GA4 Event
- Configuration: enter your GA4 Measurement ID (
G-XXXXXXXXXX) - Trigger: All Pages
- Name the tag "GA4 - Configuration"
- Submit โ Publish
The complete GTM + GA4 guide is available here: Integrate Google Tag Manager with GA4.
Which method to choose?
| Situation | Recommended method |
|---|---|
| Beginner, simple showcase site | Google Site Kit |
| You want a lightweight plugin | GA Google Analytics (Jeff Starr) |
| You already use GTM | GTM4WP + GA4 tag in GTM |
| WooCommerce site (e-commerce) | Site Kit or GTM (for purchase tracking) |
Verify the install works
Quick test:
- Open a private window in your browser
- Visit your WordPress site
- In GA4 โ Reports โ Realtime: you should appear as an active visitor
If nothing shows up after 30 seconds:
- Check the Measurement ID is correct (format
G-and notUA-) - Temporarily disable your ad blocker (it can block the tag)
- If you have a cache plugin, clear the cache
Next steps after install
Once GA4 is active on WordPress:
- Change data retention to 50 months: by default GA4 only keeps 14 months
- Configure a conversion: without this GA4 doesn't measure what matters (forms, purchases)
- GDPR / Consent setup: see GA4 and GDPR cookies consent
If you manage GA4 for multiple WordPress clients, NarratIQ centralises all their properties and generates the monthly PDF report in 30 seconds.
Install guides on other platforms
- GA4 install: general guide: the full procedure across all platforms, with verification and initial setup
- Install GA4 on Shopify: if you also manage e-commerce shops
- Install GA4 on Next.js: for custom React/Next.js sites