UTM parameters
Tags added to a link (utm_source, utm_medium, utm_campaign and so on) that record which ad or channel brought a visitor to your website.
Website forms should capture UTM values with each enquiry. Meta and Google lead forms carry their own campaign and form IDs, which serve the same purpose.
Related: Closed-loop attribution