How to Use Google Analytics to Track 404 Errors

As a website owner or digital marketer, you know how critical it is to keep an eye on your website’s performance. One of the most important metrics to monitor is the number of 404 errors that your website generates. A 404 error occurs when a user tries to access a page that no longer exists, and it can negatively impact user experience and SEO. Fortunately, Google Analytics provides a simple way to track 404 errors on your website. In this post, we’ll explain how to use Google Analytics to track 404 errors.

Step 1: Create a Custom Segment

To track 404 errors in Google Analytics, you need to create a custom segment. Here’s how:

  1. Log in to your Google Analytics account and select the website you want to track.
  2. Click on the “Admin” tab at the bottom left of the screen.
  3. Under the “View” column, click on “Segments.”
  4. Click the “+ New Segment” button.
  5. Give your segment a name, such as “404 Errors.”
  6. Click the “Conditions” tab.
  7. Under “Filter,” select “Page.”
  8. Set the filter to “Include,” “Page,” and “contains.”
  9. In the text box next to “contains,” enter “/404.html”.
  10. Click the “Save” button.

Step 2: Monitor the Custom Segment

Once you’ve created the custom segment, you can use it to track 404 errors on your website. To do this:

  1. Click on “Reporting” at the top of the page.
  2. Click on the “Audience” tab in the left-hand navigation.
  3. Click on “Overview.”
  4. At the top of the page, click on the drop-down menu next to “All Users” and select your custom segment.
  5. You will now see data on the number of sessions and pageviews that resulted in a 404 error.

Step 3: Analyze and Fix the Errors

Now that you’re tracking 404 errors, it’s time to analyze the data and fix the errors. Here are some tips:

  1. Review the pages that are generating the most 404 errors. Look for patterns, such as outdated content or broken links.
  2. Fix the errors by redirecting the URL to a working page, removing the link, or updating the content.
  3. Keep an eye on your custom segment to ensure that new 404 errors are not cropping up.


By using Google Analytics to track 404 errors, you can gain valuable insights into how users are interacting with your website and identify areas for improvement. By fixing these errors, you can improve user experience and SEO, leading to increased engagement and conversions. Use the steps outlined in this post to start tracking 404 errors on your website today.

Leave a Comment

Your email address will not be published. Required fields are marked *