How to Set Up Google Analytics and Search Console on WordPress

Dindin Solehudin
Google Analytics and Search Console connected to a WordPress site with sitemap, measurement ID and key events

You cannot improve what you do not measure. Two free Google tools give WordPress site owners almost everything they need: Google Analytics shows what visitors do on your site, and Google Search Console shows how your site appears in Google search. Together they answer the questions that matter: where visitors come from, which pages they read, and what people search to find you.

This guide explains the difference between the two tools, how to connect them to WordPress, and the reports worth checking every month.

Analytics and Search Console: What Each One Does

  • Google Analytics measures behavior on your site: visitors, sessions, traffic sources, pages viewed, time on page, conversions such as form submissions or purchases.
  • Google Search Console measures your presence in Google search: which queries show your pages, impressions, clicks, average position, indexing problems, Core Web Vitals and security issues.

Analytics starts when someone arrives. Search Console covers what happens before the click. You need both to see the full picture.

Difference between Google Search Console and Google Analytics for a WordPress site

Part 1: Set Up Google Search Console

Add your property

Sign in to Search Console with your Google account and add a property. A Domain property covers every version of your site, including www and non-www, http and https, and subdomains. It is verified by adding a DNS record at your domain registrar. A URL prefix property covers one exact address and can be verified with an HTML tag, a file upload or your Analytics account.

Verify ownership

For a domain property, copy the TXT record Google gives you and add it in your domain's DNS settings. Verification can take a few minutes to a few hours. For a URL prefix property, many SEO plugins let you paste the verification code in their settings.

Submit your sitemap

WordPress and most SEO plugins create an XML sitemap automatically, usually at /sitemap.xml or /sitemap_index.xml. In Search Console, open Sitemaps, enter the address and submit. Google uses it to discover new and updated pages faster.

Part 2: Set Up Google Analytics

Create a property and data stream

In Google Analytics, create an account and a property for your website, then add a web data stream with your site's URL. Google gives you a measurement ID that starts with G-.

Add the tracking code to WordPress

You have three common options:

  • A site kit or analytics plugin that connects your Google account and adds the code for you.
  • Google Tag Manager, useful if you manage several tracking tools.
  • Elementor Custom Code, where you paste the Google tag into the head of every page. See four ways to add custom code in Elementor.

Use only one method. Adding the same tag twice doubles your page views and makes the data useless.

Check that tracking works

Open your site in a private window and look at the Realtime report in Analytics. Your visit should appear within a minute.

Steps to set up Google Search Console and Google Analytics on WordPress

Part 3: Track What Actually Matters

Page views alone tell you little. Decide which actions matter for your goals and track them as key events.

  • Lead generation sites: form submissions, clicks on phone numbers and email links, quote requests.
  • Online stores: add to cart, begin checkout and purchase, ideally through an e-commerce integration.
  • Blogs: newsletter signups, clicks on affiliate links, and engagement with key articles.

For Elementor forms, a common approach is to redirect to a thank-you page after submission and count visits to that page as a conversion.

Part 4: Connect the Two Tools

Link Search Console to Analytics in the Analytics admin settings. You can then see search queries and landing page performance alongside behavior data, which makes it easier to spot pages that rank but do not convert, or convert well but get little search traffic.

The Monthly Reports Worth Checking

In Search Console

  • Performance: top queries and pages, sorted by clicks and impressions. Look for queries with many impressions and a low click rate, then improve those titles and descriptions.
  • Pages (indexing): pages that are not indexed and why.
  • Core Web Vitals: pages with poor speed or layout shift on mobile.
  • Enhancements: structured data errors, such as invalid breadcrumbs.

In Analytics

  • Traffic acquisition: where visitors come from: organic search, social, referral or direct.
  • Pages and screens: your most visited pages and how engaged visitors are.
  • Key events: how many leads, signups or sales each source brings.

Turn findings into action. Use the on-page checklist in the WordPress on-page SEO guide to improve pages with high impressions but few clicks.

Privacy and Consent

Analytics uses cookies, and in many regions you must ask for consent before tracking. Use a consent banner that blocks analytics until visitors agree, and mention analytics in your privacy policy. Configure data retention and disable data sharing you do not need.

Setting Goals Before Reading Reports

Data is only useful when it answers a question. Before opening the reports, write down what success looks like for your site this quarter: more newsletter signups, more quote requests, more sales from organic search, or more readers for a specific series of articles. Then pick two or three numbers that measure it, such as signups per month or organic sessions to your service pages.

Reviewing the same few numbers every month makes trends obvious. Looking at dozens of reports at random usually leads to confusion rather than decisions.

Common Setup Mistakes

  • Tracking code added twice, through a plugin and a theme setting at the same time, which doubles page views.
  • Your own visits counted, which distorts small sites. Exclude internal traffic or use a browser that blocks your own tracking.
  • Staging sites tracked with the live measurement ID.
  • Only the www or non-www version verified in Search Console, which hides part of the data. A domain property avoids this.
  • No key events defined, so you can see traffic but not results.

Frequently Asked Questions

Why are Analytics and Search Console numbers different?

They measure different things. Search Console counts clicks from Google search results, while Analytics counts sessions that loaded the tracking code, which excludes visitors who block tracking or decline consent.

How long until data appears?

Analytics shows realtime data immediately and full reports within a day. Search Console usually needs a few days before performance data appears for a new property.

Do these tools slow down my site?

The Google tag is small, but stacking many tracking scripts adds up. Keep only the tools you actually use, and load them through one method.

Can I use these tools on a Blogger site too?

Yes. Both tools work with any website. Blogger has a field for the Analytics measurement ID and supports Search Console verification, so you can measure before and after a migration and compare results. Our guide on migrating from Blogger to WordPress explains how to keep that data continuous.

Wrapping Up

Search Console shows how people find you in Google, and Analytics shows what they do once they arrive. Verify your domain, submit a sitemap, add one tracking method, define key events, link the tools, and review a handful of reports each month. That simple routine turns guesswork into clear, data-driven decisions.

Comments

Popular Posts