Pass UTM Parameters as hidden fields in Forms

Hi,

I’m running multiple ads on Facebook and Google Ads, every time a user submits the form, it gets counted as one of the conversions. I need to pass UTM source and medium parameters as hidden fields so that the source gets captured along with other input fields. Can anyone help how to achieve this?

Thank you