add analytics to redirection