Some redirects for analytics and redirecting to back on login