Added google analytics
Redirect on error listener