update analytics on error pages