Collecting Analytics Data On Your 404 Error Page



Author: Anil Batra

404 errors are a fact of life on the internet. 404 error is a message returned by a server in response to a request for a page that does not exist on the server (http 404 error code).

Let me illustrate this with an example:

A visitor comes to a site, bookmarks a page and then leaves the site.

Next week the owner of the site decides to launch a new site completely replacing the old pages with the new pages (urls were different).

Next month the visitor comes back to the site via the bookmark but the page she bookmarked does not exist as it was removed during the site redesign.

She will get a 404 error message from the server.

Reasons for 404 Errors

404 errors can occur due to numerous reasons:

1. Misspelled links - A misspelled URL in a hyperlink on the site can causing a broken link and hence a 404 error message.

2. Bad Site Map - A site map is an xml file containing a list of all the pages on the site. It is usually meant for the search engines to index the pages on a site. A misspelling in a site map can cause the search engines to look for the pages that do exist on the server. Generally theses pages (broken links) won’t be visible to the visitors but they will show up in the search engines indexing report such as the Google webmaster tools. Some sites also show the site maps to the visitors as a form of site navigation; in those cases the visitors will see the 404 errors.

3. Site Redesign - Site redesigns are a leading cause of the missing pages. Site owners redesign the sites, completely replacing the old pages without thoroughly thinking about the pages that might have been linked all over the web, indexed by the search engines, bookmarked by the visitors etc. Visitors who clicks on old links, bookmark etc. are greeted with the 404 error messages when they click on those links to arrive on the site.

4. Server Unavailable - 404 error messages can also occur when the server is unavailable.

Below is an example of a standard 404 error message

404 Error Message

If standard 404 error page is the first page that a visitor sees when she arrive on a site, what will her reaction? As shown in the picture above, you can’t even tell which site this page belongs to. It is a dead end. Visitors don’t know where to go. What would a visitor do in this situation? She will most likely leave the site. She will go back to where she came from. The site has just failed to engage her.

Let's imagine a similar situation in the offline world. Think about how you would feel if you enter a local supermarket looking for a toothbrush and are immediately taken to the location in the store where the toothbrushes aisle is suppose to be. When you arrive at that location, not only that you don't find the aisle because the supermarket recently rearranged the store and move the aisle but also that the whole supermarket goes dark and all you see is the exit door. You will, for sure, run towards the exit door. That's what a standard 404 error pages does, the site goes dark and the only thing a visitors sees is the back button or the close button on the browser.

Custom 404 Error Pages

Now imagine that instead of the store going dark, the customer sees a friendly associate who politely says "Sorry, we recently rearranged our store and the aisle you are looking for have been moved. May I show you the new location of the aisle" (or some flavor of it). Friendly associate on the web in this situation is called "Custom 404 error page (message)", which will say "Sorry the page you are looking for does not exists anymore or has been moved, here are few links that might help you" (or some flavor of it).

A custom 404 error page allows the site to provide a message other than a generic server error message (Figure 1). A custom 404 is an opportunity for the sites to engage the visitors whom they might have lost otherwise.

How do you create a custom 404 error page?

Create a page with a message that you want your visitors to see when they encounter 404 error messages and save it as 404.html (you can use other names and the page extensions as well). Web servers have a setting which allows you to set the page that you want the visitors to see when they encounter the 404 errors. In this case you might set it to 404.html. (Contact your IT department or hosting companies to get further details).

Here is an example of a custom 404 error page.

There are several ways to customize your 404 error page. Be creative when designing the 404 page, this is your last chance to reengage a visitors. (I will show you some examples in future post)

Web Analytics and 404 error page

Another benefit of creating a custom 404 page is that you can put your web analytics tag on the page to report and analyze the 404 pages. Web Analytics reports can show you the pages (links) that are causing 404 error messages on your site. You can also find out which pages have the bad links, what keywords, external links etc. are driving users to those non-existent pages.

Tracking 404 pages in Web Analytics

Here is an example of Google Analytics Code to track the 404 pages.

Google Analytics Tracking code

This code appends "404:" in front of the page name that triggers the 404 error so that it is easy for me to filter the Google Analytics reports for the 404 error pages.

The same concept can be used in the other web analytics tools such as Omniture, Webtrends, Unica, Coremetrics etc.

There are two reports that I frequently use to analyze the 404 pages

1. Top Content

Google Anayltics Top Content

Since I prefixed my 404 pages with "404:", I can easily filter out the 404 pages in this report. This report gives me all the pages that are triggering 404 error messages. This report also shows me how big the problem is and if I am losing visitors on these pages or not.

If your custom 404 page is unable to engage the visitors (high exit rate or bounce rate) then you should consider changing the content/design etc. of the page. (I am looking into how you can conduct A/B testing on a 404 page).

You can also drill down into each of the page and do further navigational analysis to see the pages that the visitors saw before they got the 404 error page.

Google Anayltics Drill Down

Google Anayltics Drill Down Other View

This leads you to the pages that have old/misspelled links. To track down the external links and sources, that have bad links to your site, you will need to look at the top landing pages report.

2. Top Landing Pages

Google Anaytics Top Landing Pages

A filter on "404:" in this report will show you the landing pages that result in the 404 errors. Use this report to drill down to the external sources of errors e.g. the external links, keywords etc. Below is an example of a report that shows that most of the 404 for a page on this site occurred from links in the emails.

Google Anaytics Entrance Resource

Further analysis of the emails led me to the malfunction links.

Do you have 404 error messages stories, examples to share? Send them to me.

About the Author:
Anil has over 10 years of experience in Consulting, Business Intelligence, Web Analytics, Online Advertising and Behavioral Targeting. Anil helps companies use Web channel data to improve online business results (lead generation, conversion, retention and self-help metrics). Anil has helped several fortune 500 customers effectively use web analytics and increase their ROI on the web. Anil has worked with customers such as Microsoft, SmartMoney.com, ESPN, T-Mobile, Hoovers, Realnetworks, Starbucks, and TheStreet.com Anil holds a B. Tech in Electronics and Communication Engineering from India and an MBA from University of Washington, Seattle. "


Total Word Count: 1473
Click here to View more Articles at: Invision-Graphics
Invision-Graphics Article Source:

Approved on Sunday, October 04 @ 12:07:16 EDT by Shawn DesRochers
 
Options
 Return to the main page Return Home

 Print Page Print Version

 Send to a Friend Send To A Friend

 Discuss Article Discuss Article

 Related Articles Related Articles

 Search Articles Search Articles

 Stories Archive Stories Archive

 Subscribe Newsletter Subscribe Newsletter

 Syndicate Article Topic: Web Development XML News Feed

 Contact US Contact US
Article Rating
Average Score: 5
Votes: 1

Collecting Analytics Data On Your 404 Error Page – Aticle Rated 5 Stars

Rate this article:
Collecting Analytics Data On Your 404 Error Page

Collecting Analytics Data On Your 404 Error Page – Aticle Rating 5 Stars
Collecting Analytics Data On Your 404 Error Page – Aticle Rating 4 Stars
Collecting Analytics Data On Your 404 Error Page – Aticle Rating 3 Stars
Collecting Analytics Data On Your 404 Error Page – Aticle Rating 2 Stars
Collecting Analytics Data On Your 404 Error Page – Aticle Rating 1 Star


Syndicate Article
 My Yahoo!
 Google
 NewsGator
 Stumbleupon
 PluckIT
 Rojo
 Bloglines
 My AOL
 Blogrolling
 ENewsblog
 NewsIsFree
 NetVibes
 del.icio.us
 Technorati
 Digg This
 FeedBurner
 FeedMailer
Sponsor Advertising
Blogging Fusion Blog Directory
Submit your blog to Blogging Fusion Blog Directory for FREE. Start increasing your backlinks and traffic today!

Text Advertising Info Text Advertising Info
Support US

Make a donation!
If you enjoy our services, make a donation today!

Google Support Ads
Related Links
More about Web Development
News by Admin


Advertise Here

Most read story about Web Development:
Create Dynamic Database Driven CSS Navigation Menus with Dreamweaver, PHP and MySQL

Book Advertising
Get this Book Now
Buy this Book Now!
Click Here
Comment on Article:"Collecting Analytics Data On Your 404 Error Page" Login | Create an Account | 0 comments
The following comments are owned by the individual who posted them. Invision-Graphics is not responsible for the content or the accuracy of the following statements.
No Comments Allowed for Anonymous, please Register
Related Categories
Technorati TagsTechnorati Tags


Click Here to Advertise
Affordable Hosting! http://www.invision-graphics.com/images/banners/468X60_VISIONHOSTING.gif
 Today: 35,880  Yesterday: 34,916  Total Hits: 41,500,254
Page Rendered in: 0.09s - Total Queries: 40 - MySQL DB: 20.4 mb's - Pages served in past 5 minutes: 151