added google analytics error logging