SEO INSIGHTS
How to track error 404 pages and broken links in Google Analytics

How to track error 404 pages and broken links in Google Analytics

How to track 404 error pages

The Invisible Customer: How to Track 404 Errors & Broken Links in Google Analytics

Somewhere on your website right now, a visitor just knocked on a door that doesn't exist. They didn't complain. They didn't email you. They just left — and went to your competitor instead.

This is the story of the customers Google Analytics can help you hear, even when you never see them.

What Is a 404 Error, Really? (In Plain English)

A 404 error happens when someone clicks a link expecting to find a page, but the page isn't there. Maybe it was deleted. Maybe the web address changed. Maybe someone just typed it wrong.

Most people treat this as a small technical bug. It isn't. A 404 is a missed conversation with a real person who wanted something from you.

Why Most Businesses Never Notice They're Losing Customers This Way

Here's the tricky part: 404 errors don't show up in your normal traffic reports. Your visitor count might look completely fine while dozens of people are quietly hitting dead ends every week.

Think of it like running a shop with a broken doorbell. Customers walk up, ring it, hear nothing, and walk away. You never even know they were there.

The problem isn't that people leave — it's that you don't know they left, or why.

Step 1: Hear the Knock — Setting Up 404 Tracking in GA4

Before you can fix anything, you need Google Analytics to actually notice when someone lands on a broken page.

Tagging Your 404 Page So GA4 Notices It

Most websites already have a dedicated "Page Not Found" page. In GA4, you can track visits to this page like any other event. If you're using a platform like WordPress or Shopify, plugins can do this automatically. If you manage GA4 directly, an event trigger set to fire only on your 404 page URL works well.

Once this is live, every broken visit gets logged — not lost.

The One Report That Reveals All Your Broken Links

Go to Reports → Engagement → Pages and Screens in GA4. Search for your 404 page title. This single report shows you exactly how many people hit a dead page, and how often.

This is the report that turns invisible problems into visible numbers.

Step 2: Understand Intent — What Was This Visitor Looking For?

Finding the broken link is only half the job. The real value comes from understanding why it broke.

Reading the "Page Referrer" Clue

In the same report, add the Page Referrer dimension. This tells you where the visitor came from — a Google search result, an old bookmark, or a link inside your own website menu.

This one clue tells you what the person actually wanted.

The 3 "Causes of Death" for Broken Links

Every broken link fits into one of three categories:

  • Deleted page — the content was removed, but nothing replaced it
  • Changed URL — the page still exists, but the address changed
  • Bad link — someone linked to the wrong address, either on your site or another one

Knowing the cause tells you the correct fix — guessing doesn't.

Step 3: Answer the Door — Fixing Broken Links the Smart Way

Redirect With Intent, Not Just to the Homepage

Sending every broken link to your homepage feels easy, but it often frustrates visitors further. If someone was looking for a specific product, redirect them to that product's closest live alternative instead. A relevant redirect can save a sale. A lazy one can lose it.

Fixing the Biggest Leaks First

Not all broken links deserve equal attention. Sort your 404 report by visit volume, and fix the highest-traffic broken pages first. Five minutes spent on your biggest leak beats an hour spent on a link nobody clicks.

A Simple System to Catch Future 404s Before They Pile Up

Broken links aren't a one-time cleanup — they build up gradually as your website grows and changes. Set a recurring reminder to check your 404 report once a month. Ten minutes now prevents a messy, traffic-losing backlog later.

Small, regular checks beat big, rare clean-ups.

FAQ

What is a 404 error in Google Analytics? A 404 error occurs when a visitor tries to reach a page on your website that no longer exists or was moved. Google Analytics can track these visits if your 404 page is tagged properly.

How do I find broken links in GA4? Go to Reports → Engagement → Pages and Screens, then search for your "Page Not Found" title. This shows every session that landed on a broken page.

Do 404 pages hurt my Google ranking (SEO)? A few 404s are normal and won't hurt your SEO. But a large number of broken links, especially high-traffic ones left unfixed, can hurt user experience and, over time, your search rankings too.

How often should I check for broken links? Once a month is a good habit for most websites. Larger sites that change frequently may benefit from checking every one to two weeks.

What's the difference between a 404 and a redirect (301)? A 404 tells the visitor a page doesn't exist. A 301 redirect automatically sends them to a new, correct page instead — this is almost always the better experience.


Don't let another invisible customer walk away. Open your GA4 account today, run the report above, and turn one lost visitor into one saved sale.