How to Track 404 (Not found) Errors in WooCommerce?

If a broken internal link is sending visitors to a dead end on your site, Track 404 (Not Found) Errors reports it to GA4 as a 404 Error event, so you can spot and fix it.

404 pages hurt both SEO and the shopping experience. Tracking them and fixing the links that lead to them helps keep your store easy to browse and easier for search engines to crawl.

Benefits

Enabling 404 tracking can help:

  • Catch broken internal links before customers report them
  • Improve SEO by identifying and fixing dead ends on your site
  • Keep the shopping and browsing experience smooth for visitors

How It Works

Whenever a visitor lands on your site's 404 page, the plugin sends a 404 Error  event to GA4. The event itself doesn't include which URL triggered it, GA4 automatically attaches the page's URL to every event through its standard page parameters, so you'll pair the event with GA4's Page path dimension to see exactly which broken link visitors hit.

How to Enable 404 Tracking

Step 1: Open Additional Tracking

Go to Ecommerce Tracking → Tracking Configuration and open the Additional Tracking section under Tracking Configuration.

Step 2: Turn on Track 404 Errors

Turn on Track 404 (Not Found) Errors.

Step 3: Save your settings

Save your changes. From this point on, every visit to your 404 page is reported to GA4.

Viewing This Data in GA4

Go to GA4 → Reports → Engagement → Events and open the 404 Error event to see how often visitors land on your 404 page.

To find which specific URLs are triggering it, add Page path and screen class as a secondary dimension on that event, or build an Explore report using the 404 Error  event alongside the Page path dimension. This shows you exactly which broken URLs visitors are hitting.

Example Use Cases

Cleaning up broken links after a redesign: If you recently restructured your store's URLs, enable 404 tracking to catch any old links that weren't redirected.

Fixing outdated marketing links: If an email campaign or ad points to a page that's since moved, 404 tracking helps you catch it and update the link.

Ongoing SEO maintenance: If you want a regular way to check for broken internal links, review the 404 Error event periodically alongside the Page path dimension.

Conclusion

Tracking 404 errors turns a silent problem- visitors hitting dead ends- into something visible in your GA4 reports. Turn it on, then pair the event with the Page path dimension in GA4 to find and fix the specific links causing it.

FAQs

1. Does this tell me which URL caused the 404?

Not directly from the event itself. Pair the 404 Error  event with GA4's Page path dimension (as a secondary dimension or in an Explore report) to see the specific URLs.

2. Where do I see this data in GA4?

Go to GA4 → Reports → Engagement → Events and open the 404 Error event.

No. It only reports when a 404 occurs. You'll still need to update or redirect the broken links yourself once you've identified them.

4. Will this affect my site's SEO on its own?

Not directly; tracking alone doesn't change your SEO. But using this data to find and fix broken links can improve both SEO and the browsing experience over time.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.