https://ssl ." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + " google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxx-x");
pageTracker._trackPageview("/404.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer);
</script>
This code sends a virtual page view of "/404.html?page=[pagename.html?queryparameter]&from=[referrer]" to your account, where [pagename.html?queryparameters] is the missing page name, and referrer is the page URL from where the user reached the 404 page.
4. Look for /404.html in the Top Content report to display 404 pages and associated page and the referring information
![]()
Drill down through Analytics to segment the data into paid and non-paid visits to identify sources of 404's.

5. Then decide on an appropriate course of action considering the following for each significant instance of the 404

Frequently we come across sites that don’t have Google Analytics tracking code installed on 404 error pages. This simple guide will show you how valuable the information is that can be obtained simply by implementing a piece of custom tracking code, and how to interpret it.
James fronts Online Marketing Consultancy at Coast Digital, developing fully integrated marketing strategies and solutions for brands and organisations. James works to maximise his clients’ return from investment around the core online marketing channels and disciplines, including Search; SEO and PPC, Affiliate Marketing, Social Media, Email, Display and Conversion Rate Optimisation.
James is a certified Google AdWords Professional, is Google Analytics IQ certified, and also provides training, external lectures and workshops on developing online marketing strategy and making the most of the search landscape. He has also authored a number of publications and guides, both technical and strategic.