Link tracking for external analytics