Use events to track 404 pages.