Adding analytics for links