A form field isn't filled
Diagnostics shows the campaign values, but your form's hidden field or email stays empty. Here's what to check.
- Applies to
- UTMTrackr 1.32.2 · UTMTrackr Lite 1.1.5
- Edition
- UTMTrackr
- UTMTrackr Lite
- Last updated
On this page
UTMTrackr captured the campaign (Diagnostics shows it), but a field in your form, or a line in your notification email, is empty. If Diagnostics shows nothing either, start with Campaign values aren't captured.
1. Check the field name
UTMTrackr fills a field only when its name or id is exactly the tracked key, for example utm_source or gclid. UTM Source, source or utm-source won't be filled. The keys are listed in UTM parameters and click IDs explained.
The easiest fix is to let UTMTrackr add the fields: see Add tracking fields in one click. (UTMTrackr Lite does this for Contact Form 7 and WPForms.)
2. Check your form plugin's own setting
Each form plugin has its own way of taking a value. Follow its article. UTMTrackr Lite supports Contact Form 7 and WPForms; the others are available in UTMTrackr.
- Contact Form 7: hidden tags such as
[hidden utm_source], and mail tags such as[utm_source]. - WPForms
- Gravity Forms (available in UTMTrackr): the field needs Allow field to be populated dynamically, with the Parameter Name set to the key.
- Fluent Forms, Ninja Forms, Forminator, Formidable Forms (available in UTMTrackr)
- Any other form (available in UTMTrackr): a custom field mapping.
3. Check the key is tracked
Click IDs, attribution values and visitor details have their own switches under Settings → General. A field for a key that's switched off stays empty. Custom parameters must be added under Field Mapping → Custom URL Parameters.
4. Forms that appear later
UTMTrackr fills fields when the page loads, again after half a second and after 1.5 seconds, and when WPForms or Gravity Forms finish loading a form, and after Contact Form 7 sends one. (Gravity Forms is in UTMTrackr only.) A form that appears later still, for example in a popup opened by a click, may load after that. Ask your developer to call window.UTMTrackr.fillFields() after the form appears.
For forms from supported form plugins, UTMTrackr also fills any empty tracking field when the form is sent, on the server. That doesn't apply to custom field mappings, which are filled in the browser only.
5. Similar field names
Legacy Substring Matching (Settings → Advanced) fills any field whose name merely contains a key. It's off by default because it can fill the wrong field. Turn it on only for an old custom form that can't be renamed.
Related articles
Still need help?
Contact support. What support covers is in our support policy.
Using UTMTrackr Lite? Ask on its WordPress.org support forum.