How To Use Google Analytics to Look for 404-Errors on Your Site

Just recently I was slightly involved in the migration of a site. The migration was somewhat successful, although a lot of planning and check lists were lagging. Although I have not been involved in a lot of migrations of websites, I know what to look out for. Unfortunately I was only consulted in a late stage of the plan, and with my current responsibilities, I did not have more time to invest in the project. I guess the team had to learn it the hard way…

One new learning for myself is how to use Google Analytics Advanced segments to setup alerts for 404-error messages. The 404 ‘Page not found’ error message is the nightmare for any project lead in a site migration. The 404 means you did a particular bad job in making sure the user experience was not impacted by the migration.

So if you see something like this in your web analytics, it means you either fix the issue real fast, or start updating your resume:

Page not found 404 error #FAIL

And although it does not look that bad, only 2.6% of page impression throw in a 404 in this report, the details speak louder than words. The report above here is on a full 30 days time frame. If you isolate the days after the site migration, the error rate is on average a whooping 12%!!! WOW, talking about a bad user experience here!

Setting up Advanced Segments to track the 404 Page not Found error message

The Google Advanced segments can come in handy here to track on a daily basis how many page impressions resulted in a 404-error. This can help identifying the problem, alert you when something is going terribly wrong, and maybe most important: collect enough data and reports to hold everybody accountable for their responsibilities. Data doesn’t lie :)

In Google Analytics simply open up a new custom advanced segment to track specific pages with the title of the 404-error page you have set up on your site. This will allow you to track each functionality within Google Analytics against this specific segment. And it’s so easy to set up:

  1. Go to advanced segments
  2. Create a new segment
  3. Under Dimensions, open the Content drop down
  4. Drag Page Title to the box: dimension or metric
  5. Now type in the title of your 404-error page in the Value box
  6. Give the segment a name


In all the dashboards of the reports within Google Analytics you can simply choose the advanced segment as a reporting layer. In the image below you can see the standard dashboard with the traffic on the 404-error page reported as part of the total. The red –arrow and highlighted box points out where to select which advanced segment you can choose.


It’s fairly easy to screen which URL’s are throwing a 404 error if you know your way around in Google Analytics. Just select the Content by Title under the Content tab in the left navigation menu (Red box). Then select the 404-error page for a detailed report. The icon in front of every page which is being reported is the URL you would need to fix (here highlighted in the Orange Box).


These are all the URL’s on your site which throw a bad user experience for the people that try to access it. All these people will see the following message. And although their experience has already been ruined, just make sure you learn from your mistakes and fix the issues!


The possibilities are endless. You can slice and dice the date to see which referral sources have caused the 404-error. So if the referral is coming from a non-search engine, you even are able to harvest link juice which would have be gone forever if you didn’t fix the issue.

Or you can look for referral keywords which get a 404-error. I bet you will see high rankings on  these keywords. If you don’t take action, you will loose these rankings, and any potential traffic associated with it.

Hack It, Break It, but always Fix It

You only lasted 5 Minutes; So Disappointing!

Wow, how can you piss me off more than sending me a direct spam message on Twitter directly after I returned the favor of following you. Resulting in being followed and un-followed within 5 minutes. New record for me! Follow Un-Follow Within 5 Minutes.

image site down

The site went down today due to high traffic volume after the announcement the maximum unemployment benefit for new claims will increase from $255 to $265 after July 5. site down = FAIL

As the term is a trending keyword on the Google Search trends for today, the traffic send to the site is surging.

A second trending search term which must be sending a lot of traffic to the site must be Alabama unemployment.

Alabama Unemployment

So many Social Media consultants always warn website owners to have the  servers prepared for Social Media success. A homepager on DIGG or StumbleUpon can take your website down easily. It appears the government need some advice on scaling traffic to their website!

With the government site down, people eligible for the unemployment help for storm victims will have to call the special number: 1-866-234-5382.

For those that need more information:

People who live in or worked in these counties and became unemployed due to the severe storms, flooding, tornadoes, and straight-line winds during the period of May 6-8 may be eligible for the assistance under the Disaster Unemployment Assistance (DUA) program, which was triggered when President Obama designated the area as a disaster area on June 3.

All claimants are also receiving an additional $25 a week, which is part of the Federal Stimulus package. The additional $25 is expected to continue through the end of 2009.

Surtees stressed only claims filed on or after July 5 will be eligible for the $10 increase.

FAIL: Parking in San Francisco

You know the feeling. You run to your car, because you know there is street cleaning today. Unfortunately you are already too late, and there is a parking ticket on your car... $50 wasted. Well at least the city can put that money to work... Yeah Right!

But how funny is it that these little parking police cars will park anywhere, even when there is a sign they can't!