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.
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
- Go to Plugins > Add New Plugin, search for Site Kit by Google, install and activate it.
- Open Site Kit in the menu and connect your Google account.
- 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
More how-tos for WordPress (self-hosted)
Sources
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.




