To start tracking broken links, simply enable the “Track broken links” module.
This function works automatically and doesn’t require setup.
From that moment on, you will be able to view broken links in your Google Analytics or any other tracking tool’s dashboard.
Simply search for visited pages that contain the parameter “
broken_link“. For example:
Optionally, you can also choose to redirect visitors who click broken links to a page of your choice. If you do that it is good practice to set your custom 404 page to “noindex” so that it doesn’t show up in Google, Yahoo and other searches. You can set pages as “noindex” using almost any SEO plugin for WordPress.