How to Connect Google Analytics 4 and Search Console to WordPress with Site Kit
Connect Google Analytics 4 and Search Console to WordPress with Site Kit: requirements, setup, checking the tag, avoiding duplicates and fixing errors.
You want to know how many people visit your WordPress site, and which Google searches bring them. You don’t want to edit code or paste tracking snippets by hand.
This guide shows you how to connect two free Google tools to your site with Site Kit, Google’s official WordPress plugin:
- Google Analytics 4 (GA4) tells you what people do on your site.
- Search Console tells you how your site appears in Google search.
In this guide you’ll learn:
- What to check before you start, so you don’t add the tracking code twice (that can count visitors twice).
- How to install Site Kit, sign in with Google, and connect both tools, step by step.
- How to check that it’s working, and what to do if something goes wrong.
Site Kit adds the Google tag for you and connects Search Console automatically. Data can take a day or two to appear. By the end, you’ll be able to see your visitors and your search performance from your WordPress dashboard.
Who this guide is for
- WordPress site owners who want GA4 and Search Console data without editing theme code.
- Small businesses setting up a new site, or replacing a hand-pasted tracking code.
- Anyone who will later track form submissions as GA4 key events (see our Contact Form 7 GA4 guide).
What you need before you start
Site Kit’s documentation lists these requirements:
- WordPress 5.2+ and PHP 7.4+.
- A publicly accessible, live site. It can’t be in maintenance or "coming soon" mode, password-protected, or a staging site. Site Kit has a separate guide for staging.
- A working WordPress REST API. Check Tools → Site Health → Status: you want "The REST API is available" under Passed tests.
- A WordPress Administrator account. Site Kit’s permissions page says only Administrators can set it up.
- A Google account that you (or your client) will own long-term. If you set it up for a client, make sure you have access to their Google account first.
Contents
- Check for existing tracking codes
- Install and activate Site Kit
- Sign in with Google and verify your site
- Connect Search Console
- Connect Google Analytics 4
- Check that the tag is working
- Review the Analytics settings
- Optional: link Search Console inside GA4
- Common errors
- Troubleshooting
- Alternatives and limitations
- FAQ
Step 1: Check for existing tracking codes
Before installing, find out whether GA4 is already on your site. It might be in your theme settings, a header-code plugin, Google Tag Manager, or another analytics plugin. Two copies of the same tag can double-count your visitors, so the numbers would look bigger than they really are.
Site Kit’s FAQ says that if it finds an existing Analytics snippet during setup, it tells you. You can then:
- connect to that property without Site Kit inserting another snippet; or
- let Site Kit place the snippet; or
- pick a different property.
Rule of thumb: one place should own the GA4 tag. If you use Google Tag Manager for your GA4 events (as in our Contact Form 7 guide), keep the tag there, and let Site Kit connect to the property for reporting only (see Step 7).
Step 2: Install and activate Site Kit
- In WordPress, go to Plugins → Add New Plugin. The label varies slightly between WordPress versions.
- Search for Site Kit. Choose Site Kit by Google (author: Google).
- Click Install Now, then Activate.
Step 3: Sign in with Google and verify your site
- Go to Site Kit → Dashboard.
- On the setup screen, tick "Get visitor insights by connecting Google Analytics as part of setup". The usage-data sharing checkbox is optional.
- Click Sign in with Google and choose the Google account that will own the services.
- Grant the permissions Site Kit asks for (tick the boxes and click Continue).
- Verify ownership. If the site isn’t already verified, Site Kit adds a verification token as an HTML file (or a meta tag if the file fails) and checks it with Google’s verification service.
- Allow metrics. This lets Site Kit show data from your Google services inside WordPress.
You can click Exit setup at any point. When you return to Site Kit → Dashboard, it resumes where you left off.
Step 4: Connect Search Console
Search Console is required in Site Kit, and it’s connected during setup. When prompted, click Set up.
What Site Kit does, according to its Search Console page:
- No property yet: Site Kit creates a URL-prefix property for your exact site address (including
https://). - Existing URL-prefix property: it’s connected automatically.
- Existing Domain property: it’s connected automatically if your site is at the root (for example
https://example.com, nothttps://example.com/blog). It isn’t connected if you also have a manually verified URL-prefix property, which takes precedence.
You can view or change the connected property later under Site Kit → Settings → Connected Services → Search Console. Because Search Console is required, it can’t be disconnected.
Search Console data can show "gathering data" for about 48 hours after connecting.
Step 5: Connect Google Analytics 4
If you ticked the Analytics box in Step 3, Site Kit shows an Analytics step:
- Choose an existing Analytics account, property and web data stream, or let Site Kit create new ones for you.
- Approve any extra permissions, then choose the main goal of your site. This tailors the Key metrics on the dashboard.
- Click Complete setup (or Configure Analytics, depending on where you started).
Skipped it during setup? Connect it later: Site Kit → Settings → Connect More Services → Analytics → Set up Analytics.
About the Google tag: Site Kit’s documentation says it connects GA4 using a Google tag. If the selected GA4 property already has one, Site Kit uses it; if not, a new one is created. Google tag IDs start with GT-, and GA4 measurement IDs with G-. You’ll find both under Site Kit → Settings → Connected Services → Analytics.
Site Kit says it usually takes a day or two for Analytics data to appear in the dashboard.
Step 6: Check that the tag is working
Check 1: Site Health. Go to Tools → Site Health → Info, open Site Kit by Google, and find Analytics snippet placed. "Yes" means Site Kit placed it.
Check 2: page source. Open your site logged out (a private window), view the page source, and search for your GT- tag ID.
Check 3: GA4 Realtime. Visit your site in a private window, then open GA4’s Realtime report and check that your visit appears. We have not run this Realtime check ourselves.
Logged-in visits don’t count by default. Site Kit’s Analytics settings say logged-in users are excluded by default. Test in a private window, not while logged in.
Step 7: Review the Analytics settings
Go to Site Kit → Settings → Connected Services → Analytics → Edit. Site Kit’s documentation describes these options:
| Setting | What it does | Suggested |
|---|---|---|
| Account, Property and web data stream | Which GA4 data Site Kit uses | Your site’s GA4 property |
| Place Google Analytics code | Site Kit inserts the code on all pages. It’s on by default if no other snippet was found. | On, unless another tool (for example Tag Manager) already places GA4 |
| Exclude Analytics → All logged-in users | Leaves logged-in users out of tracking | Default (excluded) is sensible |
| Enable enhanced measurement | Turns on GA4’s automatic tracking of interactions, such as file downloads, form completions and video views, if the stream doesn’t already have it | Your choice. If you track forms with your own events, check you’re not counting them twice. |
| Enable plugin conversion tracking | Site Kit’s plugin conversion tracking feature | Read Site Kit’s page on it before enabling |
Consent: Site Kit can enable consent mode. Its docs say this ensures visitors from the EEA, Switzerland and the UK aren’t counted in GA4 until they grant consent. Check your privacy obligations; that’s outside the scope of this guide.
Step 8: Optional: link Search Console inside GA4
Site Kit shows both services in WordPress, but it’s a separate step to see Search Console data inside GA4’s reports. Google Analytics Help describes it:
- In GA4, go to Admin → Product links → Search Console links → Link.
- Choose your Search Console property (you must be a verified owner), then select your web data stream. Review and submit. You need the Editor role on the GA4 property.
- The Search Console report collection is unpublished by default. Publish it from Library.
Limits from Google’s help page:
- A web data stream can link to only one Search Console property, and vice versa.
- The reports hold up to 16 months of data.
- Data appears 48 hours after Search Console collects it.
Common errors
Taken from Site Kit’s setup troubleshooting documentation:
| Error | Cause | Fix |
|---|---|---|
| "Access blocked: Authorization Error / Error 400: admin_policy_enforced" | A Google Workspace admin restricts Site Kit’s access | Ask your Workspace admin (Security → API Controls → App Access Control) |
| "The necessary verification token could not be found on your site" | Google couldn’t see the token: site not public, firewall, or maintenance mode | Make the site public, then retry, or verify manually in Search Console first |
| "Looks like the URL of your site has changed" / "redirect_uri mismatch" | Site moved, switched to HTTPS, or a plugin changes URLs | Tools → Available Tools → Reset Site Kit, then set up again. This disconnects all users. |
| "Error: The response is not a valid JSON response" | Plugin conflict, server or REST API error, or a browser extension | Retry in a private window; check Site Health; use Troubleshooting Mode |
| "You are probably offline" | Network issue, or WordPress Address and Site Address don’t match | Make the two URLs consistent in Settings → General |
| cURL error 60 / cURL error 7 / "http request failed" | The server can’t reach sitekit.withgoogle.com |
Ask your host to allow the outgoing connection |
| Quota errors | Too many writes (for example creating properties) | Wait. Site Kit says per-user limits usually clear within an hour, daily ones within a day. |
| Sign-in loop | Site URL or admin path changed | Reset Site Kit, then set up again |
Troubleshooting
- Stuck on "gathering data": normal for up to about 48 hours (Search Console), or a day or two (Analytics). If it lasts longer, check Step 6.
- Another admin sees "insufficient permissions": other admins need access in Google too. Site Kit’s permissions page says other Administrators need at least the Viewer role on the GA4 property. You can also use dashboard sharing to show data to WordPress users without giving them Google access.
- The admin-bar Site Kit panel shows a mapSelect error: Site Kit says this can be caused by JavaScript minification. Exclude
/wp-content/plugins/google-site-kit/in your optimisation plugin. - Numbers differ from analytics.google.com: Site Kit shows data only for your site. If the measurement ID is used on other sites too, the filtered numbers will differ.
Alternatives and limitations
- Paste the Google tag manually (theme header or a header-code plugin). It’s simple, but you get no WordPress dashboard and have to manage consent yourself.
- Google Tag Manager: the best choice if you need custom events. See our CF7 GA4 guide.
- An SEO plugin’s analytics module: some SEO plugins offer their own Google integration. Choose one owner for the tag.
- Limitations:
- The site must be public.
- Only Administrators can set it up.
- Site Kit’s dashboard is a summary; detailed analysis still happens in GA4 and Search Console.
- Site Kit’s requirements say neither you nor your server can be in a country blocked by Google services.
FAQ
Is Site Kit free?
Yes. It’s a free plugin by Google on WordPress.org. Google Analytics and Search Console are also free.
Does Site Kit create a Search Console property for me?
Yes. If none exists, it creates a URL-prefix property for your site.
Can I use Site Kit and Google Tag Manager together?
Yes. Just make sure GA4 is placed only once: either by Site Kit ("Place Google Analytics code") or by Tag Manager.
Why don’t I see my own visits?
Logged-in users are excluded from Analytics tracking by default. Test in a private window.
Can I use it on a staging site?
Site Kit’s requirements say it should be a production environment, but it has a separate guide for staging setups.
Official references
- Site Kit docs: Install and setup, Analytics, Search Console, The Google tag, Permissions, Setup troubleshooting, Analytics troubleshooting
- WordPress.org: Site Kit by Google plugin page
- Google Analytics Help: Connect Search Console to Google Analytics
Next step
With Search Console connected, find your quick SEO wins: pages with high impressions but low clicks. Then start tracking leads as GA4 key events.
Last updated: 13 November 2026



