We need to figure out how this works with new ga.js tracking and how we are able to get this status codes very quickly out of drupal_get_headers() or any other appropriate way. The function drupal_access_denied() and drupal_not_found() should be helpful.

http://analytics.blogspot.com/2006/09/tip-tracking-404-pages.html

Comments

niklp’s picture

Please consider my article below if this is to be implemented - I am wondering if there is a way that the two (GA and customerror) can interact nicely, report errors effectively, and maintain usability all at the same time.

http://www.kinetasystems.com/blog/creating-custom-error-pages-in-drupal

Thanks.

hass’s picture

Title: Add 403 and 404 status code tracking » Add 404 status code tracking
Status: Active » Fixed

Patches are committed into D5 and D6.

403 tracking seems not possible in a dynamic way, because hook_footer seems to be skipped... :-(.

hass’s picture

Title: Add 404 status code tracking » Add 403 and 404 status code tracking
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.