How-to · WordPress (self-hosted)

Add Google Analytics to your WordPress site

How to connect Google Analytics 4 to your WordPress website, where the Measurement ID goes, and what to know about consent.

1 min readBy Wiredeo

A laptop and phone showing visitor charts on a wooden desk
Photo: Vagaro, Unsplash

Steps checked against the platform’s own help pages on 27 October 2026. Menus move; if yours look different, tell us and we’ll update this page.

WordPress has no Google Analytics setting of its own. The usual route is Google’s own free plugin, Site Kit by Google.

Steps

  1. Go to Plugins > Add New Plugin, search for Site Kit by Google, install and activate it.
  2. Open Site Kit in the menu and connect your Google account.
  3. In Site Kit’s settings, connect Analytics and choose or create your GA4 property.

Good to know

  • Each WordPress admin connects their own Google account to Site Kit.
  • Other analytics plugins work too; use only one, so pages aren’t counted twice.

Prefer something simpler or cookie-free? Compare options in Google Analytics vs Cloudflare vs Plausible vs Fathom, and track the five numbers that matter.

Add Google Analytics on other platforms

Compare all platforms for this task

More how-tos for WordPress (self-hosted)

Sources

  1. WordPress.org, Site Kit by Google plugin 2026

Filed under Getting foundRunning your site

Next step

Not sure where your own business stands?

A two-minute check-up shows where you are losing time and customers, and what to fix first.

Take the check-up Request an audit