ยท5 min read

Install Google Analytics 4 on WordPress: 3 methods (2026)

How to install GA4 on WordPress in 2026: via Google Site Kit, a dedicated plugin or Google Tag Manager. Step-by-step guide with verification.

install google analytics 4 wordpressgoogle analytics wordpressga4 wordpress pluginsite kit wordpress ga4

By Matheo Zimmer

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.


Site Kit is Google's official plugin. It connects GA4, Search Console and other Google tools in a few clicks.

Install

  1. In WordPress admin โ†’ Plugins โ†’ Add new
  2. Search for "Site Kit by Google"
  3. Install then Activate

Configuration

  1. The plugin shows a setup wizard โ†’ click "Start setup"
  2. Connect your Google account (the one with GA4 access)
  3. Site Kit offers to automatically link:
    • Google Search Console โœ“ (accept)
    • Google Analytics 4 โœ“ (accept)
  4. Select your existing GA4 property (or create a new one)
  5. 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.

  1. Plugins โ†’ Add new โ†’ search "GA Google Analytics" (author: Jeff Starr)
  2. Install and activate
  3. Go to Settings โ†’ Google Analytics
  4. Enter your Measurement ID (G-XXXXXXXXXX) in the dedicated field
  5. Select position: "Header" (recommended)
  6. 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.

  1. Install MonsterInsights
  2. Follow the Google connection wizard
  3. Select your GA4 property

MonsterInsights adds a few extra tracking features (forms, e-commerce) but the free version is enough for a basic install.


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)

  1. Install and activate GTM4WP
  2. Go to Settings โ†’ Google Tag Manager
  3. Enter your GTM container ID (format GTM-XXXXXXX)
  4. Enable the option "Enable the noscript snippet in the body"
  5. Save

Step 2: configure GA4 in GTM

  1. In the GTM interface โ†’ Tags โ†’ New
  2. Type: Google Analytics: GA4 Event
  3. Configuration: enter your GA4 Measurement ID (G-XXXXXXXXXX)
  4. Trigger: All Pages
  5. Name the tag "GA4 - Configuration"
  6. Submit โ†’ Publish

The complete GTM + GA4 guide is available here: Integrate Google Tag Manager with GA4.


Which method to choose?

SituationRecommended method
Beginner, simple showcase siteGoogle Site Kit
You want a lightweight pluginGA Google Analytics (Jeff Starr)
You already use GTMGTM4WP + GA4 tag in GTM
WooCommerce site (e-commerce)Site Kit or GTM (for purchase tracking)

Verify the install works

Quick test:

  1. Open a private window in your browser
  2. Visit your WordPress site
  3. 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 not UA-)
  • 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:

  1. Change data retention to 50 months: by default GA4 only keeps 14 months
  2. Configure a conversion: without this GA4 doesn't measure what matters (forms, purchases)
  3. 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

Frequently asked questions

Three options depending on context: (1) Site Kit by Google (free, official, recommended for 90% of cases), (2) A dedicated GA4 plugin like 'GA Google Analytics' if you only want tracking without the rest of Site Kit, (3) Google Tag Manager via a GTM plugin if you plan to add other tags (Facebook Pixel, etc.). Avoid editing functions.php manually: it's fragile across theme updates.

Ready to automate your GA4 reports?

Connect your Google Analytics 4 in 5 minutes. 14-day free trial, no credit card.

Try NarratIQ free