Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Typeform/Jotform hidden fields (UTMs) not passed: how to fix

CNV-081High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Hidden fields are form fields visitors never see. They hold data such as utm_source, utm_medium, utm_campaign or gclid, and are saved with each response. Typeform and Jotform do not read your page URL on their own. The values must be passed to the form, and the field names must match.

Why it costs you leads or sales

The lead still comes in, so nothing looks broken. But you cannot tell which campaign produced it. Reports show blank or direct sources, CRM routing by source fails, and you may cut budget on ads that actually work. If you send conversions back to ad platforms from the response data, they lose the click link too.

Where the UTMs get lost
  1. Ad clickURL has utm_source=google
  2. Landing pageForm embed has no values
  3. Form submitHidden fields empty
  4. CRM / reportSource shows blank

The visitor arrives tagged, but the form never receives the values.

Leads with a known sourceExample numbers
Leads with a known source (example)Before fix: 5 %; After fix: 90 %03469590Before fixAfter fix%

Example: share of form leads that carry a campaign source before and after the fix. Numbers are illustrative.

How to check if your site has it

Test it by hand
  1. Open a tagged URL

    Use a private window and add ?utm_source=test&utm_medium=check&utm_campaign=hidden-test to the page that holds the form.

  2. Submit a test response

    Fill in the form with a test name and an email you control.

  3. Read the response

    In Typeform open Results, then the response. In Jotform open Submissions. Look for the hidden field values.

  4. Check the field names

    Compare the names in the form builder with the parameter names. They must match exactly, including case.

  5. Test a second page

    Click through to another page before the form, then submit again. If the values vanish, they are lost on navigation.

How to fix it

First add the hidden fields in the form. In Typeform, open the form, go to Logic, then Hidden fields, and add utm_source, utm_medium, utm_campaign, utm_term, utm_content. In Jotform, add a Hidden Input (Form Builder, Add Element, Widgets or Basic) and set its unique name to the same parameter name. Then pass the values from the page.

Typeform embed that copies page UTMs into hidden fieldshtml
<div id="tf"></div>
<script src="//embed.typeform.com/next/embed.js"></script>
<script>
  var p = new URLSearchParams(window.location.search);
  var hidden = {};
  ['utm_source','utm_medium','utm_campaign','utm_term','utm_content','gclid'].forEach(function(k){
    hidden[k] = p.get(k) || sessionStorage.getItem(k) || '';
    if (p.get(k)) sessionStorage.setItem(k, p.get(k));
  });
  window.tf.createWidget('YOUR_FORM_ID', {
    container: document.getElementById('tf'),
    hidden: hidden
  });
</script>
Pass the values on your platform
  1. Add the embed in a Custom HTML block

    Paste the script above into a Custom HTML block, or into a code snippet plugin for sitewide use. Some page builders strip script tags, so test after saving.

  2. Clear caches

    Purge page and CDN cache so the new code is served.

How to confirm it's fixed

Confirmation checklist
  • A tagged URL produces a response with all hidden fields filled.
  • Values still arrive after visiting a second page first.
  • Field names match the parameter names exactly.
  • The CRM or sheet receiving the response shows the source columns.
  • Untagged visits still submit without errors.

How to prevent it happening again

Keep a short list of the parameter names your team uses and reuse it in every new form. Whenever someone duplicates a form, rebuilds a page, or changes a redirect or theme, run the tagged-URL test again. Tell anyone who edits embeds that the script, not only the form ID, matters.

How FunnelGuard handles this

FunnelGuard detects this today. Its robot visitor runs your journey on a schedule with marked test traffic, including utm_source=funnelguard, submits the form, and checks the payload and whether the UTM values persist through to the submission. If they go missing, you get one alert after a re-check from a second region, with a screenshot and a likely cause. It does not fix the embed for you. The Free plan covers 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.

Questions people ask

Why are my Typeform hidden fields empty?

Usually the page never passed the values in. Typeform does not read your page URL by itself, so the embed needs a hidden object, or the form link needs the parameters. Also check that the hidden field names in Logic match the parameter names exactly.

How do I pass UTM parameters to an embedded Typeform?

Add the hidden fields in Typeform under Logic, then Hidden fields. In the embed code, read the page's query string and pass the values in the hidden option of the widget. Test with a tagged URL and check the response.

Why is my Jotform hidden field not saving the UTM?

The field's unique name probably differs from the URL parameter, or the form sits in an iframe that never receives the parent page's parameters. Match the names exactly and make sure the parameters reach the iframe source.

Are Typeform hidden field names case sensitive?

Treat them as case sensitive. Use the same lowercase names, such as utm_source, in the form and in your code so nothing mismatches.

Why do UTMs disappear when visitors click to another page before the form?

The new page URL no longer carries the parameters. Save them in sessionStorage or a cookie on the first page, then read them when the form loads.

Can a redirect stop UTMs reaching my form?

Yes. A redirect that drops the query string removes the UTMs before any script can read them. Check redirects with a tagged URL and make sure they keep the query string.

Does FunnelGuard check if my form passes UTMs?

Yes. It runs your form journey with marked test traffic and checks the payload and whether UTM values persist to the submission. It alerts you if they are missing.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: payload / UTM persistence.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.