update link and analytics