Add client-side error tracking