Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Hidden fields showing {utm_source} instead of real values

TRK-279Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A hidden field is a form field visitors cannot see. Marketers use them to store campaign data such as utm_source, utm_medium, utm_campaign, gclid or fbclid with each lead. The data should come from the page URL when the visitor arrives.

This issue happens when someone types a placeholder such as {utm_source}, {{utm_source}} or [utm_source] into the field's default value, and nothing replaces it. The form then submits the placeholder text as if it were real data. Your CRM fills up with leads whose source is literally {utm_source}.

It is different from hidden fields that arrive empty. Here the field is filled, but with the wrong text, so it looks like data and is easy to miss in reports.

Why it costs you leads or sales

You do not lose the lead itself. You lose the knowledge of where it came from. Reports group every affected lead under one meaningless source, so you cannot tell which ads, emails or partners produce customers.

That leads to bad budget decisions. Good campaigns look weak, workflows that route leads by source misfire, and offline conversion uploads that rely on gclid fail because the click ID is not real.

Where the placeholder breaks attribution
  1. Ad clickURL has utm_source=google
  2. Landing pageForm loads with default value {utm_source}
  3. Form submitPlaceholder is never replaced
  4. CRM contactSource = {utm_source}
  5. Source reportsCampaign cannot be identified

The visitor arrives with real UTMs, but the form submits the raw placeholder text.

Leads by recorded sourceExample numbers
Leads by recorded source (example)google: 20 leads; facebook: 10 leads; {utm_source}: 55 leads; direct: 15 leads0214220105515googlefacebook{utm_source}directleads

Example: 100 leads in a month. Placeholder leads pile up under one useless source.

How to check if your site has it

Check for literal placeholders
  1. Open your CRM contact list

    Add your source, medium and campaign columns. Sort or filter for values containing { or [ or %7B.

  2. Look at the form's hidden field settings

    Open the form editor and check the default value of each hidden field. Text in braces or brackets is a warning sign.

  3. Submit a test lead with UTMs

    Visit your page with ?utm_source=test&utm_medium=check&utm_campaign=hidden-test added to the URL, submit the form, then open the new contact.

  4. Inspect the field in the browser

    Right-click the page, choose Inspect, and search for input type="hidden". If the value attribute still shows the placeholder after load, nothing is replacing it.

What a broken hidden field looks like in the page sourcehtml
<input type="hidden" name="utm_source" value="{utm_source}">

How to fix it

The fix is the same everywhere: stop relying on a typed placeholder and let something read the real value from the URL. Use your form tool's built-in option if it has one. If not, use a small script.

Fix by platform
  1. Use your form plugin's dynamic value

    Gravity Forms: enable Allow field to be populated dynamically and set the parameter name to utm_source. Contact Form 7 and WPForms need a plugin or snippet; WPForms hidden fields accept smart tags, so check the smart tag list instead of typing braces.

  2. Remove typed placeholders

    Clear any default value like {utm_source} unless the plugin documents it as a real smart tag.

Fill hidden fields from the URL (and keep them for later pages)javascript
(function () {
  var keys = ['utm_source','utm_medium','utm_campaign','utm_term','utm_content','gclid','fbclid'];
  var params = new URLSearchParams(window.location.search);
  keys.forEach(function (k) {
    var v = params.get(k);
    if (v) { try { sessionStorage.setItem(k, v); } catch (e) {} }
  });
  function fill() {
    keys.forEach(function (k) {
      var v = null;
      try { v = sessionStorage.getItem(k); } catch (e) {}
      if (!v) return;
      document.querySelectorAll('input[name="' + k + '"]').forEach(function (el) {
        el.value = v;
      });
    });
  }
  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', fill);
  } else { fill(); }
})();
Hidden field before and after

Before

  • Default value typed as {utm_source}
  • CRM source shows {utm_source}
  • Campaign reports are unusable

After

  • Value filled from the URL or saved session
  • CRM source shows google, facebook, newsletter
  • Reports match real campaigns
Try the placeholderInteractive
Placeholder typed as default value

Placeholder typed

Leads or data lost

The form submits the text {utm_source} and the CRM stores it as the lead source.

Toggle to see how the hidden field value changes what reaches your CRM.

How to confirm it's fixed

Confirmation checks
  • Open the page with ?utm_source=test&utm_medium=check&utm_campaign=fix-verify
  • Inspect the hidden inputs and confirm the values show test, check and fix-verify
  • Submit the form with a test email
  • Open the new CRM contact and confirm source, medium and campaign match
  • Repeat on mobile and on a second page that has the form
  • Search the CRM for any new values containing { or [

How to prevent it happening again

Prevention habits
  • Never type placeholders into default values unless the tool documents them as real merge tags
  • Keep one documented list of hidden field names and how each is filled
  • Test with a tagged URL after every form, theme or tag change
  • Add a CRM view that flags source values containing { or [
  • Re-test when you swap form tools or embed a new form version

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs your real form journey on a schedule and a payload rule can catch a literal placeholder in the data the form sends. That check applies to the form submission the robot makes, so it can flag a value like {utm_source} when it appears in that payload.

What it does not do: it does not audit every hidden field on every form, and it does not scan your CRM for old leads that already hold placeholder text. It also cannot judge whether a correct-looking value is the right campaign for a real visitor.

To cover the rest by hand, filter your CRM source, medium and campaign fields for values containing {, [ or %7B, and run the tagged-URL test above after each change. FunnelGuard test visits use utm_source=funnelguard and fg_test=1, so filter those test leads out of your reports.

Questions people ask

Why does my CRM show {utm_source} instead of the real source?

The form's hidden field has {utm_source} typed as its default value and nothing replaces it with the URL value. The form submits that text as it is. Use a dynamic parameter option or a script to fill the field from the URL.

How do I populate hidden fields with UTM parameters?

Read the parameters from the page URL with JavaScript (URLSearchParams) and set each hidden input's value before the form is submitted. Many form tools also offer a built-in option that maps a URL parameter name to a hidden field. Match the field name to the parameter name.

Is {utm_source} a real merge tag?

Not by default. Curly braces only work as merge tags when your specific tool documents them, and each tool uses its own syntax. In ad platforms they are URL templates filled in by the ad network, not by your form.

What is the difference between empty hidden fields and placeholder hidden fields?

Empty fields submit nothing, so the CRM source is blank. Placeholder fields submit the raw text, so the CRM looks filled but holds a meaningless value. Placeholders are harder to spot because they appear as data.

Can I fix leads that already have {utm_source} saved?

The original source usually cannot be recovered from the form data. You can bulk-edit those contacts to an unknown or legacy value so they stay out of campaign reports. If you have ad platform click exports, you may match some leads by time and email.

Can FunnelGuard detect placeholder text in hidden fields?

Partly. A payload rule can catch a literal placeholder in the data its test form submission sends. It does not scan every field on every form or the leads already in your CRM, so you should also check the CRM by hand.

Why do UTM values disappear on the second page before the form?

The parameters are only in the URL of the landing page. If the visitor clicks to another page, the URL no longer holds them. Save them in sessionStorage or a cookie on the first page, as the script above does, and fill the form from there.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: payload rule could catch.

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.