How to Find and Fix 404 Error Pages Using Web Analytics
How to Find and Fix 404 Error Pages Using Web Analytics
TL;DR — Quick Answer
1 min readTrack 404 errors by adding a custom event to your 404 template. Analyze the most common broken URLs, identify referral sources sending traffic to them, set up 301 redirects, and fix internal links to recover lost traffic and SEO value.
404 errors silently damage your website's user experience, SEO performance, and conversion rates. Web analytics can help you identify these broken pages.
Why 404 Errors Matter
User Experience
Visitors who hit a 404 page are likely to leave entirely.
SEO Impact
Search engines may reduce crawl frequency and link equity is lost from backlinks to broken URLs.
Lost Revenue
A 404 on a product or pricing page means a lost sale or lead.
How to Track 404 Errors
Custom Event Tracking
Add a snippet to your 404 template that triggers an analytics event with the requested URL as a property. This captures the exact URL, referral source, and any UTM parameters.
Pageview Goal Tracking
Set up a pageview goal that triggers when your 404 page is visited.
Server Log Analysis
Server logs record every 404 response for comprehensive monitoring.
Analyzing 404 Error Data
Most Common 404 URLs
Highest-priority fixes.
Referral Sources
External sites with broken links can be contacted. Fix internal broken links directly.
Search Engine Traffic
Set up 301 redirects for URLs still appearing in search results.
Trends Over Time
A sudden spike might indicate a migration issue or popular link pointing to a deleted page.
Fixing 404 Errors
Set Up 301 Redirects
Redirect old URLs to relevant existing pages to preserve SEO value.
Fix Internal Links
Search your site for links pointing to non-existent pages.
Create a Helpful 404 Page
Include search functionality, links to popular pages, and a way to report broken links.
Monitor After Fixes
Verify that 404 rates decline and set up ongoing monitoring.
Was this article helpful?
Let us know what you think!
Before you go...
Related Articles
How to Investigate and Diagnose a Drop in Website Traffic
A systematic 9-step approach to diagnosing why your website traffic dropped, from checking analytics channels and pages to investigating algorithm updates and competitor activity.
How to Verify That Your Web Analytics Tool Is Working Correctly
A step-by-step checklist to confirm your analytics script is installed correctly, tracking pageviews, recording goals, and not double-counting visitors.
How Google Analytics Affects Website Performance: A Lighthouse Analysis
Google Lighthouse testing reveals how analytics scripts impact Core Web Vitals, page load times, and search rankings -- and why lighter alternatives improve SEO performance.