add error tracker with logging in google analytics
fix error tracking