@Siton_Systems - thanks for your reply. Here is one of the live links: https://www.speak.ae/learn/kids-summer-camp
This is the original post: How to use Hidden Fields to Include your Current URL, Referring Page URL, and form names using one line of JavaScript
The issue I have is not with google analytics but with getting two forms on one page (one form is desktop visible on desktop and another on Table/mobile) to capture the UTM parameters of both forms. I have tried with creating unique IDs for each hidden field but not luck either.