How to Use Hidden Fields and UTM Tracking in Online Forms
Track marketing campaigns, ad sources, and prefill respondent data using hidden fields and UTM parameters in EesyForm without asking redundant questions.
If you run paid ads on Google, Meta, or LinkedIn, you know the frustration of opening your form responses and seeing twenty new signups — with zero idea which ad campaign actually produced them.
Asking visitors "Where did you hear about us?" is unreliable. People forget, misremember, or pick the first dropdown option just to get past the question.
The professional solution is hidden fields. Hidden fields let you capture UTM parameters, user IDs, and referral sources straight from the webpage URL without forcing respondents to answer extra questions.
Here is how hidden fields work in EesyForm and how to set them up in three minutes.
What are hidden fields?
A hidden field is a variable stored invisibly inside your form. Respondents never see it on their screen, but when they submit their answers, the hidden value is bundled right alongside their responses.
Common uses include:
- Marketing attribution: Capturing `utm_source`, `utm_medium`, `utm_campaign`, and `ad_id`.
- User identification: Passing a `user_id` or `account_id` from your logged-in SaaS application.
- Prefilling known data: Inserting an email address into a feedback survey sent via an email newsletter so the customer doesn't have to retype it.
How to set up hidden variables in EesyForm
Setting up hidden parameters in EesyForm requires no coding:
- Open your form in the Builder and click Settings (the gear icon).
- Scroll to the Hidden Variables section and click Add Variable.
- Name your variable to match your tracking parameter, such as `utm_source`, `utm_campaign`, or `ref`.
- Provide an optional default fallback value (like `direct` or `organic`).
- Click Save Changes.
EesyForm now automatically listens for that variable in the URL whenever someone views your form.
How to construct your tracking URLs
Once your hidden variables are configured, simply append them to your public form link (or embedded webpage) as URL query parameters using `?` and `&`:
``` https://forms.yourdomain.com/r/lead-form?utm_source=google&utm_medium=cpc&utm_campaign=summer_promo ```
When a prospect clicks your Google Ad, lands on the form, and submits their answers:
- The respondent only sees the regular conversational questions.
- Your response table and CSV exports will include dedicated columns for `utm_source: google`, `utm_medium: cpc`, and `utm_campaign: summer_promo`.
- Any connected integrations (Slack alerts, HubSpot contacts, Zapier webhooks) receive the UTM data automatically.
Prefilling data from email newsletters
If you send a survey to existing customers using Mailchimp, Brevo, or ConvertKit, you can prefill their email address so they never have to type it twice:
``` https://forms.yourdomain.com/r/feedback?email=|EMAIL| ```
The email service replaces `|EMAIL|` with the recipient's real address. When the customer opens the form, EesyForm quietly associates their submission with their email.
Start tracking your campaigns accurately
Hidden variables eliminate guesswork from your marketing analytics and keep your forms short, clean, and high-converting.
Log into your EesyForm dashboard or start with a free account today to add UTM tracking to your forms in minutes.