
How to Create a Robots.txt File: A Simple Guide (2026)
A plain-English guide to creating a robots.txt file: write the rules, upload it to your site root, and test it in Search Console.

Last updated: November 2026
Google Analytics vs Google Search Console is a comparison every website owner runs into sooner or later. Both tools are free, both come from Google, and both tell you something about your website traffic. The short answer is simple: Search Console shows what happens before someone reaches your site from Google Search, and Analytics shows what happens after they arrive. You need both to see the full picture.
In this guide:
Search Console is about Google Search. It tells you how often your site shows up in search results, which search terms bring people in, and whether Google can read your pages at all. Analytics is about your visitors. It tells you who came to your site, where they came from, what they did once they arrived, and whether they bought something or filled in a form.
Think of it like a shop. Search Console tells you how many people saw your shop sign and walked through the door. Analytics tells you what they did inside, how long they stayed, and what they bought.
Google says it plainly in its own help pages: the source of truth for Search performance will always be Search Console, and Analytics is the source of truth for what people do on your site. Neither one replaces the other.
| What it answers | Google Search Console | Google Analytics (GA4) |
|---|---|---|
| Main question | How does my site do in Google Search? | What do people do on my site? |
| Traffic sources | Google Search only (web, image, video, news, Discover) | All sources: Google, Bing, social media, email, direct visits, ads |
| Key metrics | Impressions, clicks, average position, click-through rate | Users, sessions, engagement rate, events, key events |
| Shows search terms? | Yes, the exact queries people typed | Only after you link it to Search Console |
| Technical SEO data | Yes: indexing, sitemaps, page errors, mobile issues, Core Web Vitals | No |
| Real-time data | No | Yes, a live report of visitors right now |
| Data history | 16 months | Free accounts keep user-level data for 2 or 14 months (you choose) |
| Cost | Free | Free (Analytics 360 is the paid version for large companies) |
| Needs code on your site? | No, you verify ownership instead | Yes, a tracking tag must be on every page |
Search Console is Google’s free tool that shows how your site appears in Google Search. If you want the full picture of what Search Console does on its own, our guide to Google Search Console walks through it in plain language.
Here is what it does best:
The Performance report is the heart of the tool. It shows four numbers for any date range: total clicks from Google Search, total impressions (how often your pages appeared in results), average click-through rate, and average position. You can break these down by page, country, device, and search type (web, image, video, or news).
Best of all, it shows the exact search terms people typed before they clicked on your site. If you run a bakery in Austin, you might find that people find you by searching “best sourdough bread Austin” or “gluten free cake near me.” Those queries are gold for content ideas, and Analytics cannot show them on its own.
The Pages report shows which of your pages Google has indexed (added to its search results) and which ones it has not, with the reason for each one. A page might be blocked by a setting, return an error, or be marked as a duplicate of another page.
The Sitemaps section lets you send Google a list of your pages so it can find them faster. It also flags mobile usability problems and Core Web Vitals issues. You can read more in Google’s Search Console help pages.
If Google finds a security issue on your site, such as hacked content or malware, Search Console sends you an alert. It also tells you if a page has a manual action, which is a penalty Google applied by hand.

Google Analytics, in its current version called GA4, tracks what visitors do once they are on your website. It does not care how they found you. It cares what they did next.
GA4 counts users and sessions, and it splits them by channel: organic search, paid search, social media, email, referral links from other sites, and direct visits. This is how you learn that, say, 40 percent of your visitors come from Google and 25 percent from Instagram. Search Console could never tell you that, because it only sees Google Search.
Every action a visitor takes is an event in GA4: a page view, a scroll, a click on a button, a video play, a file download. You can mark the events that matter most, such as a purchase or a contact form submission, as key events. These are the old “conversions” under a new name.
GA4 shows you what is happening on your site right now, minute by minute. If you just sent out an email newsletter or published a post on social media, you can watch visitors arrive in real time. Search Console has no live view like this, because its data arrives with a delay of one to two days.

New website owners often compare the two tools and get worried. Search Console says 1,000 clicks last month, but Analytics says 700 sessions from organic search. Which one is wrong? Neither. They count different things, and there are five common reasons for the gap.
A click is one tap on a search result. A session is a visit. One person can click a result, leave, and click again later, which counts as two clicks but may count as one session or two, depending on timing. A person can also click a result and close the page before it loads, which counts as a click in Search Console but never becomes a session in Analytics.
Analytics only records a visit if its tag loads on the page. If the tag is missing from a page, blocked by a browser extension, or fails to load on a slow connection, that visit never shows up in GA4. Search Console does not need any code on your site, so it still counts the click.
When a visitor declines cookies or uses strict privacy settings, GA4 may not track them at all, or may track them without full detail. Search Console is not affected by cookie choices, because it counts search activity on Google’s side, not on your site.
Search Console reports in Pacific Time. GA4 reports in the time zone you set for your property. A click late at night on the last day of the month can land in the next month in a GA4 property set to Eastern Time. Over a month, this shifts a small number of visits across the boundary.
The “Organic Search” channel in GA4 includes Bing, DuckDuckGo, Yahoo, and every other search engine, not just Google. Search Console only covers Google. So GA4 organic search can be higher than Search Console clicks in some cases, even while the other factors push it lower.
The practical rule is simple: do not try to make the two numbers match. Watch whether the ratio between them stays stable over time. If clicks rise 20 percent and sessions rise about 20 percent too, both tools agree on the trend, and that is what matters.
Use this short list when you are not sure which tool to open:
A simple way to remember it: if the question starts with “how do I rank” or “what did people search,” open Search Console. If it starts with “what did visitors do” or “did it lead to a sale,” open Analytics.
You can connect the two tools so that Search Console data shows up inside GA4. Once linked, you can see search queries next to GA4 behaviour data, such as which search terms bring visitors who actually stay and buy. Here is how to do it in plain steps:
What you gain is a joined view: the exact search term, the landing page it led to, and what the visitor did after landing, all in one place. Before the link, you had to check two tools and guess at the connection.
One note: the linked reports in GA4 only show Search Console data. They do not change the numbers in Search Console itself. Search Console stays the source of truth for search data, as Google itself says. For the official steps, see Google’s guide to linking Search Console with Analytics.
For most small businesses, yes. Both tools are free, and each one covers a blind spot of the other. Search Console cannot tell you whether visitors buy anything. Analytics cannot tell you which search terms brought them in or whether Google can even read your pages.
There are a few cases where one tool matters more than the other. If your site gets almost all its visitors from Google Search, Search Console is your daily tool and Analytics is your weekly check. If most visitors come from social media, email, or ads, Analytics is your daily tool and Search Console is the one you check when rankings change.
Start with Search Console if you have to pick one first, because it tells you whether Google can find your site at all. Then add Analytics so you can see what those visitors do once they arrive. Together, they give you the full story, from the search box to the sale.
No. Search Console shows how your site performs in Google Search: impressions, clicks, queries, and indexing. Analytics shows what visitors do on your site: sessions, engagement, events, and key events.
Both are accurate for what they measure. Search Console is the source of truth for search performance, and Analytics is the source of truth for behaviour on your site. The numbers differ because clicks and sessions are not the same thing.
Yes. The tools work on their own, and many site owners start with Search Console only. You miss out on visitor behaviour data, such as engagement and key events, until you add Analytics.
Not on its own. GA4 does not receive the exact search terms from Google for privacy reasons. Once you link Search Console to GA4, the search queries appear in the GA4 Search Console reports.
Yes, if you want to grow it. Both are free, and setup takes under an hour for most sites. Search Console tells you whether Google can find your pages and what people search for. Analytics tells you whether those visitors do anything useful.

A plain-English guide to creating a robots.txt file: write the rules, upload it to your site root, and test it in Search Console.

Find out who really outranks you on Google, what they do better, and where the gaps are — with free tools and a simple 9-step plan.

Learn how to improve website speed with 13 simple steps using free tools. Fix images, caching, plugins, and hosting — no coding needed.