Added google analytics
Reset on error