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.
- Ad clickURL has utm_source=google
- Landing pageForm embed has no values
- Form submitHidden fields empty
- CRM / reportSource shows blank
The visitor arrives tagged, but the form never receives the values.
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
Open a tagged URL
Use a private window and add
?utm_source=test&utm_medium=check&utm_campaign=hidden-testto the page that holds the form.Submit a test response
Fill in the form with a test name and an email you control.
Read the response
In Typeform open Results, then the response. In Jotform open Submissions. Look for the hidden field values.
Check the field names
Compare the names in the form builder with the parameter names. They must match exactly, including case.
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.
<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>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.
Clear caches
Purge page and CDN cache so the new code is served.
Use an Embed element
Add an Embed element where the form should sit and paste the script. Publish, as embeds do not run in the Designer.
Add to a custom Liquid section
Paste the script into a Custom Liquid section on the page. The values are read in the browser, so URL parameters work.
Store UTMs on arrival
Add a Custom HTML tag on All Pages that saves UTMs to sessionStorage, so the form page can read them after navigation.
Use an Embed Code element
Add an HTML embed and paste the script. It runs in an iframe, so it may not see the parent page URL. Test it, and if empty, pass values via a link that carries the UTMs straight to the form page.
Persist and pass
Save UTMs on the first page load, then read them wherever the form loads. Make sure redirects keep the query string.
How to confirm it's fixed
- 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.
Related issues
- CNV-076Partial lead capture (step 1 email) not storedFix guide
- CNV-077Quiz answers not passed to CRMFix guide
- CNV-075Quiz result not saved with the leadFix guide
- CNV-079Multi-step form resets on refreshFix guide
- CNV-070Back button loses earlier answersFix guide
- CNV-069Next button does nothing on step NFix guide