add analytics and fix links