If people ask me for LinkedIn (or Instagram in other contexts), I just get their number. It pierces the barrier of formality and makes it more personal. If the person is worth remembering (for friendship or work), connecting on LinkedIn isn’t going to be adding any value.