Tracking form submissions from Typeform, Jotform and native forms

Updated · 5 min read

Short answer

Track form submissions with an explicit submit event rather than a thank-you page view where possible, and store UTMs and click IDs in hidden fields so every submission record carries its own source. Typeform and Jotform both support hidden fields filled from the URL. Then remove duplicate submissions by a clear rule before calculating cost per lead.

A form submission is two things at once: a signal you send to the ad platform, and a record that lands in your inbox or CRM. Most tracking setups only get the first one right, which is why the platform shows 200 leads and nobody can say which ad the actual enquiries came from. This guide covers both halves for the three kinds of forms people use most, and how to stop duplicates from inflating the count.

Make the submission record carry its own source

The most useful single habit in lead tracking is this: the form entry itself should contain the UTMs, click ID and landing page of the person who filled it in. If that data lives only in an analytics tool, you can count leads by campaign but not tell which person came from where. If it lives on the record, every downstream question (who booked, who signed, who paid) can be answered by campaign.

You do that with hidden fields, filled automatically, which the visitor never sees.

Hidden fields for native forms

For a form you control in your own HTML or page builder, add hidden inputs and fill them with a small script. Read from the URL first, and fall back to values stored on an earlier page so visitors who browse before enquiring still carry their source:

<input type="hidden" name="utm_source">
<input type="hidden" name="utm_medium">
<input type="hidden" name="utm_campaign">
<input type="hidden" name="utm_content">
<input type="hidden" name="gclid">
<input type="hidden" name="fbclid">

<script>
  const keys = ['utm_source','utm_medium','utm_campaign','utm_content','gclid','fbclid'];
  const params = new URLSearchParams(location.search);
  keys.forEach(k => {
    if (params.get(k)) localStorage.setItem(k, params.get(k));
    const v = localStorage.getItem(k);
    document.querySelectorAll(`input[name="${k}"]`).forEach(el => { if (v) el.value = v; });
  });
</script>

The storing step needs to run on every page, not only the form page, so put it in site-wide code. Decide whether the first or the latest source wins when someone arrives twice; most lead businesses keep the first touch on the record and the latest touch in a second set of fields. Many page builders have their own hidden field element that can read a URL parameter directly, which saves writing code.

Hidden fields in Typeform and Jotform

Typeform. Hidden fields are declared in the form's settings, then filled with values passed in the form URL or through the embed code. Typeform's URL format for hidden fields has differed from ordinary query strings, so check its current documentation. When embedding, the embed library accepts hidden field values, and many teams pass the stored UTMs from the host page into it. Typeform's embed also offers a submit callback, which is where you fire your browser conversion event.

Jotform. Add a hidden box field for each value, then prefill it by passing the field's unique name as a URL parameter. Jotform's settings also offer ways to pull URL parameters into fields automatically. Because embedded Jotforms often load in an iframe, the parent page cannot see the submission directly, so either redirect to a thank-you page on your domain after submission or use whatever submission signal Jotform currently provides for embeds.

For both, run one test submission from a URL with obvious test UTMs and open the response. If the hidden fields are blank, nothing downstream will work.

Submit event or thank-you page

Two ways to tell the ad platform a form was sent:

Method Fires when Breaks when
Thank-you page view The visitor loads the confirmation URL Refreshes, bookmarks and direct visits fire it again; inline success messages never fire it
Submit event The form tool or your script confirms a successful submission The tool hides submission inside an iframe with no signal, or the event fires on click before validation

Explicit events are usually more accurate, provided they fire on confirmed success rather than on the button click. A click-based trigger counts people who hit submit with an invalid phone number and never fixed it. The full comparison is in thank-you page tracking vs event tracking.

If you also send the lead from your server, give the browser event and the server event the same event ID so the platform counts one lead, as described in deduplicating browser and server conversion events.

Duplicate submissions: a worked example

Take an immigration law firm in Brisbane running Google and Meta ads for skilled-visa and partner-visa consultations. Over 30 days, its enquiry form logged 236 submissions against A$7,480 of ad spend.

A review of the entries found:

Unique, genuine enquirers: 236 − 29 − 14 − 6 = 187.

Count Cost per lead
Raw submissions 236 A$31.69
After removing duplicates and spam 187 A$40.00

The raw figure understates the real cost of an enquiry by about 21%. If the firm had set its bidding targets from the raw number, it would be paying for leads it never actually got.

Write the rule down and apply it the same way every month: for example, "same email or phone within seven days is one lead; keep the first record and attach later submissions as notes". The CRM side of that cleanup is covered in duplicate leads in your CRM and what they do to CPL. On the form itself, disabling the submit button after the first click and showing a clear success message remove most of the ten-minute duplicates at the source.

Keep sensitive answers out of ad platforms

Forms for legal, medical and financial services often ask questions that should never reach an ad network. Send the platform only what it needs to recognise a lead, such as an event name and hashed contact details where your consent setup allows, never the visa type, case details or free-text answers. Check the page URL too, since some form tools put answers into the confirmation URL, which pixels then capture. Platforms have their own policies on sensitive categories, and a privacy lawyer can tell you what applies to your practice.

FAQ

Why are my Typeform hidden fields empty?

The values were not passed in the URL or embed code in the format Typeform expects, the hidden field names do not match exactly, or the UTMs were lost before reaching the page that hosts the form. Test with a URL containing obvious test values and check the response.

Should hidden fields store the first or the latest UTM source?

For most lead businesses, store the first source on the record because it shows which ad created the enquiry, and keep the latest source in separate fields if you also want to see what brought them back.

How do I stop people submitting the form twice?

Disable the submit button after the first click, show an unmistakable success message, and redirect or replace the form after success. Then apply a written duplicate rule in your CRM for the repeats that still get through.

Can I track a Jotform embedded in an iframe?

Yes, but the parent page cannot read the iframe directly. Redirect to a thank-you page on your own domain after submission, or use the submission signal Jotform provides for embeds, and rely on hidden fields to carry the source into the entry.

See your own numbers with the source attached

Adtrix connects Meta and Google Ads read-only, shows each ad next to its spend and reported results, and keeps CRM leads and booked calls in their own lane.

Start a 14-day trial See pricing