fix auth for analytics