Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Lead notification email missing UTM and source: how to fix it

DLV-018Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

When a visitor submits a form, your site emails the owner or sales team. That email should say where the visitor came from. A UTM is a tag added to a link, such as utm_source=google or utm_campaign=spring, that names the channel and campaign. A click ID such as gclid (Google Ads) or fbclid (Meta) does a similar job for ad platforms.

Why it costs you leads or sales

The lead is not lost, but its origin is. Sales cannot prioritise leads from high-intent channels. Marketing cannot match leads to spend, so budget decisions rely on guesses. Offline conversion uploads to Google Ads or Meta need a click ID, and without it you cannot send them.

Where the source gets lost
  1. Ad clickURL has utm_source and gclid
  2. Landing pageVisitor reads the page
  3. Form submitNo hidden UTM fields to store the data
  4. Notification emailName, email, message only
  5. Sales / CRMSource unknown

The visitor arrives with UTMs, but nothing saves them, so the email has no source.

Leads with a known sourceExample numbers
Leads with a known source (example)Before: 5 % of leads; After: 90 % of leads03469590BeforeAfter% of leads

Example: share of monthly leads that sales can attribute before and after adding source fields to the email.

How to check if your site has it

Test it yourself in five minutes
  1. Open your landing page with test UTMs

    Visit yoursite.com/page/?utm_source=test&utm_medium=cpc&utm_campaign=check&gclid=abc123 in a fresh private window.

  2. Submit the form

    Use a real address you can read, and a name like 'Test Lead'.

  3. Read the notification email

    Look for utm_source, utm_medium, utm_campaign, the gclid and the landing page URL.

  4. Check a second page

    Click to another page before submitting. Many setups lose UTMs after the first page view.

How to fix it

The method is the same everywhere. Read the UTMs from the URL, store them (a cookie or session storage keeps them across pages), fill hidden form fields on load, and include those fields in the notification email.

Store UTMs and fill hidden fieldsjavascript
(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) sessionStorage.setItem(k, v);
  });
  sessionStorage.setItem('landing_page', sessionStorage.getItem('landing_page') || window.location.href);
  document.addEventListener('DOMContentLoaded', function () {
    document.querySelectorAll('form').forEach(function (form) {
      keys.concat(['landing_page']).forEach(function (k) {
        var input = form.querySelector('[name="' + k + '"]');
        var val = sessionStorage.getItem(k);
        if (input && val) input.value = val;
      });
    });
  });
})();
Add the fields and the email line on your platform
  1. Add hidden fields

    In your form plugin (Gravity Forms, WPForms, Contact Form 7, Fluent Forms), add hidden fields named utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid and landing_page. Some plugins can fill UTMs from the URL by setting a dynamic default value; if not, use the script above.

  2. Add them to the email

    Open the form's notification settings and insert the hidden field tags into the message. In Contact Form 7 add lines like 'Source: [utm_source]' to the Mail tab.

Notification email content

Before

  • Name, email, message
  • No source or campaign
  • No click ID

After

  • Name, email, message
  • Source, medium, campaign
  • gclid, landing page and referrer

How to confirm it's fixed

Confirmation checklist
  • Submit a test with UTMs in the URL and see them in the email
  • Submit after visiting a second page and still see them
  • Submit with no UTMs and see the referrer and landing page
  • Check that the CRM record holds the same values
  • Test every form on the site, not just one

How to prevent it happening again

Source capture breaks quietly when a form is rebuilt, a plugin is updated or a theme changes. Keep the hidden fields in a shared form template. Note the field names in your launch checklist, and retest after every form or theme change. Make sure consent or cookie rules allow the storage you use, and say so in your privacy policy.

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs your lead form on a schedule, using marked test traffic (utm_source=funnelguard, fg_test=1). It then checks the content of the notification email that arrives, with a check called email_content has_source, to see whether source information is present. If it is 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 form for you.

The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.

Questions people ask

Why is my form notification email missing UTM parameters?

The form never stored them. UTMs live in the URL, and unless hidden fields or a script copy them into the submission, they are gone when the visitor submits. Add hidden fields and fill them from the URL.

How do I add UTM parameters to a contact form email?

Add hidden fields named utm_source, utm_medium and utm_campaign to the form. Fill them with JavaScript from the URL, then insert those fields into the notification email template in your form plugin.

Why do UTMs disappear after the visitor clicks to another page?

The URL changes, so the parameters are no longer in it. Save them in sessionStorage or a first-party cookie on the first page, then read them back when the form loads.

How do I track the source of leads that have no UTMs?

Capture document.referrer and the landing page URL in hidden fields. Organic search, direct and referral leads then still show a useful origin in the email.

Should I store the gclid in my form?

Yes, if you run Google Ads and want to upload offline conversions. Save the gclid in a hidden field and keep it with the lead in your CRM. Check your consent and privacy rules first.

Can I add the source to the email without changing the form?

Not reliably. The email can only print data that was submitted. Some form plugins add page URL or referrer as built-in smart tags, which helps a little, but UTMs need hidden fields.

How can I tell automatically if my notification lacks source info?

FunnelGuard runs your form on a schedule and checks the notification email content for source information. It alerts you if the source is missing.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_content has_source.

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.