Tracking 404 pages is a part of being a web master. I was using a service called Link Patch, but they recently shut down. Why this never occurred to me before I don't know, but I thought, why not just track 404s as an Event in Google analytics. I tried it and it worked like a charm.
Here is the code I placed on my 404 page:
This will place the url for the page in the events menu under the "Error" category
What I love about this approach is that:
- Groups multiple errors together to help me track trends
- Allows me to filter and get reports across date ranges
- Get reports emailed to me on a weekly, monthly, quarterly or yearly basis
I think this is going to be a great shift. I just sorry I didn't set it up earlier!