GA4 confuses people more than it should. Mostly because Google renamed everything and WordPress didn’t bother keeping up. Once you know the main ways to install it, you just pick what suits you and move on.
Below are the real, commonly used methods, step by step. No theory. Just how people actually do it.
Method 1: Using Google Site Kit (Google’s own plugin)
This is the easiest and safest option if you don’t want to touch code.
Steps:
-
Log into WordPress
-
Go to Plugins → Add New
-
Search Google Site Kit
-
Install and activate
-
Go to Site Kit → Dashboard
-
Sign in with your Google account
-
Select your GA4 property
-
Finish setup
That’s it. Tracking starts automatically.
Cost?
Free. Completely. No upsells.
Why people like it:
Google maintains it. Updates don’t usually break things.
Why some people don’t:
It adds a bit of bloat and extra menus. Nothing terrible, just clutter.
Method 2: Adding GA4 via header.php (manual, no plugin)
This is the old-school way. Clean and direct. Works on most classic themes.
Steps:
-
Go to Google Analytics
-
Copy the full GA4 tracking script (not just the G-ID)
-
Log into WordPress
-
Go to Appearance → Theme File Editor
-
Open header.php
-
Paste the script just before
</head> -
Click Update File
Done.
Cost?
Free.
Important reality check:
If you change themes later, the tracking disappears. People forget this all the time and wonder why traffic drops to zero.
Method 3: Using “Insert Headers and Footers” plugin
This is for people who want manual control but don’t want to edit theme files.
Steps:
-
Go to Plugins → Add New
-
Search Insert Headers and Footers
-
Install and activate
-
Go to Settings → Insert Headers and Footers
-
Paste the GA4 script into Header section
-
Save
Tracking works site-wide.
Cost?
Free. Paid version exists, but you don’t need it for this.
Why this works well:
Theme changes won’t remove your code.
Method 4: Using a performance / cache plugin (WP Rocket, etc.)
Many paid performance plugins include GA integration.
Steps (example flow):
-
Open your cache or performance plugin
-
Go to Analytics / Tracking / Integrations
-
Paste your G-ID
-
Save and clear cache
Cost?
The plugin usually costs €40–€60 per year. Analytics part itself is still free.
Good if:
You already use one of these plugins anyway.
Method 5: Full Site Editing (block themes)
Block themes don’t really use header.php the same way. This trips people up.
Steps:
-
Go to Appearance → Editor
-
Open Templates or Template Parts
-
Open Header
-
Add a Custom HTML block
-
Paste the GA4 tracking script
-
Save
This works, but it’s easier to mess up if you’re clicking too fast.
Cost?
Free.
Quick things people in Ireland usually get wrong
• They paste only the G-ID, not the script
• They install two plugins and double-track
• They forget to clear cache
• They check Analytics after five minutes and think it’s broken
GA4 can take a few hours to show data. Sometimes a full day. That’s normal.
What I’d actually recommend
If it’s your first time: Google Site Kit
If you want clean and simple: Insert Headers and Footers
If you’re comfortable with code and won’t change themes: header.php
GA4 isn’t hard. It’s just badly explained everywhere. Once it’s installed, leave it alone and let it collect data quietly in the background. That’s when it actually becomes useful.