You do wish to keep a track of 404 pages in your WordPress website. BUT what if instead of keeping a manual track of it by looking onto the log files, you will be getting an email alerts for 404 pages. Well this can be possible by simply including the following snippet at the top of your theme’s 404.php file and you can achieve this.

Snippet Source/Credit: WP Mix