How to Set Up Google Search Console and Google Analytics for a New WordPress Website

A lot of WordPress sites get built, designed, and even optimized for SEO… but then nothing tracks what’s actually happening.

You publish pages, maybe even start getting traffic, but you don’t really know where visitors are coming from, what they’re doing, or which pages are performing well. I see this often on new sites — everything looks finished, but there’s no measurement in place.

In most sites I build, analytics and Search Console are part of the final setup before or just after launch. It’s not complicated, but skipping it means you’re basically guessing instead of improving.

Quick Answer / Summary

To properly track a WordPress website, you need to:

  • Set up Google Analytics (GA4) to track visitors and behavior
  • Set up Google Search Console to track search performance
  • Connect both tools to your site using a plugin or tracking code
  • Verify your domain and submit your sitemap

Once this is done, you’ll be able to see traffic, search queries, indexing status, and performance data.

Why This Matters

Without tracking, you don’t know:

  • Which pages get traffic
  • What keywords bring visitors
  • Whether Google is indexing your content
  • Where users drop off or leave

Search Console shows how your site performs in search results. Analytics shows what users do once they arrive.

Together, they give you a clear picture of what’s working and what needs improvement.

Step-by-Step Instructions

1. Create a Google Analytics (GA4) Property

Go to Google Analytics and create a new property for your website.

During setup:

  • Choose GA4 (default)
  • Enter your website URL
  • Select your time zone and currency

Once created, you’ll get a Measurement ID (looks like: G-XXXXXXXXXX).

This is what connects your site to Analytics.


2. Add Google Analytics to WordPress

There are two common ways to do this.

Option A: Use a plugin (recommended for most sites)

  • Install a plugin like Site Kit by Google or WPCode
  • Paste your Measurement ID or connect your Google account

Option B: Add tracking code manually

  • Copy the GA4 script
  • Add it to your theme header (via theme settings or header plugin)

In most sites I build, I use a plugin. It’s faster, easier to manage, and avoids breaking anything. If you’re not sure which tools to install, it helps to review the essential WordPress plugins for new websites so you keep your setup simple and avoid unnecessary extras.


3. Create a Google Search Console Property

Go to Google Search Console and add your website.

You’ll be asked to choose between:

  • Domain property (recommended)
  • URL prefix

I usually recommend the domain property because it covers all versions (http, https, www, non-www).


4. Verify Your Website

Google needs proof you own the site.

Common verification methods:

  • DNS record (for domain property)
  • HTML tag
  • Plugin integration (if using Site Kit)

DNS verification is the most reliable, but plugins make it easier if you’re not comfortable editing DNS settings.


5. Submit Your Sitemap

Once verified:

  1. Go to Sitemaps in Search Console
  2. Enter your sitemap URL (usually): yourdomain.com/sitemap_index.xml
  3. Submit it

If you’re using an SEO plugin like Rank Math or Yoast, your sitemap is already generated.

Submitting it helps Google discover and index your pages faster.


Inside Google Analytics:

  • Go to Admin → Product Links → Search Console Links
  • Connect your Search Console property

This allows you to see search data directly inside Analytics.


7. Confirm Everything Is Working

After setup, check:

  • Analytics → Real-time reports (visit your site yourself)
  • Search Console → Indexing status
  • No verification errors

It can take a few hours to start seeing data, and a few days before meaningful insights appear.

Practical Tips From Experience

When I set this up on WordPress sites, a few patterns come up consistently.

Install tracking early, even before traffic starts
Data only starts collecting after setup. You can’t recover past data later.

Use one method only
Don’t install multiple analytics plugins or duplicate tracking codes. This leads to inflated or broken data.

Check your sitemap after publishing new content
Most plugins update it automatically, but it’s worth checking if pages aren’t indexing.

Look at Search Console before Analytics for SEO
If traffic is low, Analytics won’t tell you much. Search Console shows impressions and keywords even before clicks happen.

Common Mistakes

Not verifying the correct version of the domain
Setting up only http or www versions can lead to incomplete data. Domain property avoids this.

Forgetting to submit the sitemap
Google can still find pages, but it’s slower and less reliable.

Installing multiple tracking solutions
This often happens when people test plugins. It creates duplicate data and confusion.

Expecting immediate results
Search Console data can take a few days to appear. Rankings and impressions take longer.

Ignoring Search Console errors
Coverage issues, indexing errors, and warnings should be reviewed regularly.

When to Use This vs Alternatives

Use Google Analytics + Search Console when:

  • You want full control over your data
  • You’re focusing on SEO and organic traffic
  • You need detailed performance insights

Consider alternatives when:

  • You want simpler dashboards (tools like Plausible or Fathom)
  • You prefer privacy-focused analytics
  • You don’t need deep SEO data

In most WordPress builds, I still recommend using Google’s tools because they integrate directly with search performance.

Conclusion

Setting up Google Analytics and Search Console is one of those steps that doesn’t change how your site looks, but completely changes how you improve it.

Once both are connected, you stop guessing. You can see what pages work, what keywords bring traffic, and where to focus next.

It only takes a short setup, but it gives you ongoing data you’ll use for the life of the site.