Use Site Kit if
- You want setup without editing your site's source code
- You also want Search Console numbers on the WordPress dashboard
- Several people manage the site and each can connect their own Google account
Two documented ways to add GA4 to WordPress, the Site Kit plugin or the gtag.js snippet, with the Measurement ID path and a check that data arrives.
Add GA4 to WordPress with Google's Site Kit plugin, or paste the Google tag into your site's head yourself. Either way you need the Measurement ID from your web data stream, which starts with "G-". Pick one method, not both, then confirm with Tag Assistant or the Realtime report.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Google's own tag guide says it recommends Google Tag Manager for deploying tags. Site Kit also lists Tag Manager among the tools it can set up, so that route exists on WordPress too. This page covers the two direct routes.
In Google Analytics, go to Admin. Under Data collection and modification, click Data streams, then click the web stream for your site.
Under Stream Details, copy the Measurement ID. Google's help page says it starts with "G-" or "AW-".
Click Add stream, choose Web, enter your site URL and a stream name, then click Create stream. Google recommends leaving enhanced measurement on, and says you can switch individual events off later.
Google's setup page says you must be an Editor or above on the Google Analytics account at the property level to add a data stream.
| Requirement | What the listing says |
|---|---|
| WordPress and PHP | WordPress version 5.2+ and PHP version 7.4+ |
| Public site | Not in maintenance mode, accessible only via password, or otherwise blocked |
| REST API | Must be available. Check under Tools > Site Health |
| Cost | The plugin is free and open source |
In WordPress go to Plugins > Add New, search for Site Kit by Google, then install and activate it.
Follow the setup flow in the new Site Kit menu. The plugin listing says that with multiple WordPress admins, each admin must connect their own Google account.
The plugin listing says to connect additional Google tools under Site Kit > Settings. Analytics is one of the tools it supports.
<head> tag on every page you want to measure.On WordPress the head is printed by the theme's header.php through the wp_head() function, which fires the wp_head action. WordPress's hook reference says that although this is theme-dependent, it is one of the most essential theme hooks and is widely supported. Add your snippet through that hook, in a child theme or a code-snippet plugin, so a theme update does not erase it. Replace TAG_ID with your Measurement ID.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAG_ID');
</script>Google says Analytics sends a page_view event automatically when the config command is called, unless you set send_page_view to false. If you see the library load but no hits, check the Console for errors. Site Kit's listing adds that a "gathering data" message can last a few days after connecting a new Google service.
Open the live site in Chrome, open Developer Tools, go to the Network tab and refresh. Requests to googletagmanager.com mean the tag is firing. For Analytics, Google says to filter for google-analytics.com or analytics.google.com.
Go to tagassistant.google.com, click Add domain, enter your URL starting with "https://" or "http://", and click Connect. Your tag ID should appear under Google tags found.
Google says data collection may take up to 30 minutes to begin, after which the Realtime report should show your own visit.
3 questions people ask next, answered from the sources on this page.
In Admin, under Data collection and modification, open Data streams and click your web stream. Copy the Measurement ID under Stream Details. Google's help page says it starts with "G-" or "AW-".
No. Google documents pasting the Google tag immediately after the opening head tag on each page. A plugin such as Site Kit does that for you without editing code.
Google says data collection may take up to 30 minutes to begin, and the Realtime report can then confirm it. Site Kit's own dashboard can show a gathering data message for a few days after you connect a new service.
Run the free audit, then approve the fixes. Every change can be undone.