Blog

How Forms Send UTM Parameters to Your CRM

By
The Reform Team
Use AI to summarize text or ask questions

UTM parameters reach a CRM only when a form submits them and an integration writes them to matching CRM fields. Set up hidden inputs for the five standard UTM parameters: utm_source, utm_medium, utm_campaign, utm_term, and utm_content.

To keep attribution accurate:

  • Define first-touch and last-touch rules. Keep the earliest campaign separate from the latest qualifying tagged visit.
  • Save values across page visits with consent-aware storage, including any embed or redirect paths.
  • Map each hidden input to its CRM field. Check internal names and prevent blanks from replacing known values.
  • Test tagged, untagged, and returning visits. Compare form data, delivery logs, and CRM records, including contact updates and lead conversions.

Leave missing values blank or use a defined “Unknown” value - never invent campaign data. Recheck the workflow after changes to forms, consent settings, or integrations.

How UTM Parameters Reach Your CRM

How UTM Parameters Reach Your CRM

Set Attribution Rules and Create CRM Fields

Choose First-Touch and Last-Touch Rules

First touch keeps the earliest observed campaign. Last touch records the latest tagged visit that meets your rules before submission.

Write first-touch values once, and never overwrite them. Update last-touch values only when a new tagged visit meets your attribution rules. Untagged visits must not replace stored data. When parameters are missing, keep the existing values and save only the parameters provided.

These rules determine which values your hidden fields should write to the CRM.

Create CRM Fields for UTM Values

Create five dedicated text fields on the lead or contact record: utm_source, utm_medium, utm_campaign, utm_term, and utm_content. Where possible, match field names to incoming form keys. Store values in dedicated CRM properties - not notes - to make mapping and troubleshooting easier.

If you need both attribution models, create two clearly labeled field groups:

Use utm_source_original through utm_content_original for first touch and utm_source through utm_content for last touch.

Use text fields unless you enforce a controlled naming scheme. Allow enough characters for full campaign values, and document your naming convention.

Add extra fields only when your reports use them, such as landing_page_url, referrer, gclid, or fbclid. Document each field’s purpose and retention rule.

If leads become contacts, map each custom lead field to its matching contact field. Test both new-lead creation and existing-contact updates to confirm that stored attribution stays intact.

Next, connect these fields to hidden inputs so high converting forms can pass the values to the CRM.

Set Up Hidden Fields and CRM Mapping

Once your CRM fields are ready, connect the hidden inputs that feed them. Reform supports this workflow, but check URL capture, hidden fields, and CRM delivery for your specific form and integration.

Fill Hidden Fields With URL Parameters

Add hidden fields named utm_source, utm_medium, utm_campaign, utm_term, and utm_content. Set them to pull values from matching URL query parameters when the form loads. Hidden fields don’t populate automatically. Your form builder needs URL-parameter capture, a configured script, or another supported method.

Accept only approved parameter keys, decode values safely, trim whitespace, follow destination field length limits, and store only plain text. Keep personal information out of campaign URLs: those URLs can appear in browser history, analytics tools, referrer data, and logs.

Keep UTM Values Across Page Visits

UTM values can disappear if visitors change pages before submitting. Use consent-aware first-party storage to save those values until submission, then restore them when the form loads.

Apply the same first-touch or last-touch rule on every visit. Document when stored values expire, and clear or update them when consent is withdrawn.

Test embeds, redirects, subdomains, and cross-domain paths separately. An embedded form may not have access to the parent page’s URL or storage. Where supported, pass the values directly into the embed.

Map Form Values to CRM Fields

Map each hidden field to its matching CRM property. Check internal field names, not just display labels. Confirm that the integration can access and write to each property.

Inspect the form submission payload and the integration payload or webhook request. Verify that values reach the CRM during both record creation and updates. Also check how blank values are handled so they don’t overwrite existing attribution.

Fix Missing Values and Delivery Errors

Trace problems in this order: URL → storage → form payload → integration → CRM record. Separate parameters that were never supplied from values lost along the way.

Leave genuinely missing values blank, including intentionally omitted utm_term and utm_content. Classify traffic separately using a documented policy; missing UTMs alone don’t mean a visit was direct traffic. Keep campaign naming and capitalization consistent so equivalent values don’t split across reports.

With mapping in place, check each stage for these delivery issues.

Problem What to check or fix
Missing destination field Create the CRM property and reload the integration’s field list.
Internal name mismatch Select the destination field’s exact internal name.
CRM rejects a value Check field type, length, validation, and write permissions.
Unmapped property Add the mapping and publish the configuration.
Values disappear after page changes Check consent, storage expiration, redirects, and embed access.
Integration error Check delivery logs for authentication, rate-limit, webhook, or connector failures. Fix the cause and retry safely.

Use test submissions to verify the full path after fixing delivery.

Test UTM Data From Visit to CRM Record

Once mapping is live, use these tests to check the full path from URL to CRM record.

Trace a Tagged Test Submission

Open the published page in a clean browser profile with these test UTMs added to the URL:

?utm_source=test&utm_medium=verification&utm_campaign=setup-check

Submit the form using a dedicated QA email address. Save the URL and expected values so you can compare them with the CRM record.

Before submitting, confirm that the hidden fields populate. Then check that the values stay in place through every page or form step. Check the payload, logs, and CRM record before marking the test complete.

Run a second fully tagged submission that includes both optional parameters. Verify that each reaches its own field:

utm_content=hidden-field-test&utm_term=sample-keyword

If your CRM supports lead-to-contact conversion, convert the QA record. Check that attribution carries over to the contact and any reporting fields you use.

Complete the tagged-visit test before checking untagged and returning visits.

Test Untagged and Returning Visits

For the untagged test, open a new browser profile or private window and use a new QA email address. Submit the form without URL parameters. The new record should have blank UTM fields.

Next, return through an untagged URL using the retained session from a tagged visit. Submit with the same QA email address used for that tagged visit. Known attribution should stay intact.

Then run two differently tagged visits using the same QA email address. Confirm that first-touch fields keep Visit A’s values and last-touch fields show Visit B’s values. Repeat this test for both a new contact and an existing contact. Check that the CRM updates the existing contact rather than creating a duplicate.

Test condition Expected result Fix if it fails
Clean session, tagged published page Hidden fields match the URL parameters Check URL capture and script timing
Navigate before submitting Values persist across page steps Check storage access and field restoration
Submission and delivery Payload, logs, and CRM fields match Trace the first mismatch
Separate fully tagged submission Both optional parameters reach their own fields Add missing fields or correct mappings
If your CRM converts leads to contacts Contact and reporting fields retain attribution Configure conversion field mapping
Clean session, untagged visit New record has blank UTM fields Remove stale storage or hardcoded fallbacks
Retained session, untagged return Known attribution remains unchanged Prevent blank-value overwrites
Retained session, second tagged visit First-touch stays; last-touch updates Review overwrite rules and record matching

Conclusion: Recheck Your UTM Workflow After Changes

Once the workflow is live, keep attribution rules, the CRM field dictionary, hidden-field names, field mappings, and storage behavior in one document.

Assign one owner to rerun the checklist after any change to a form, embed, consent setup, CRM, or integration. Record the test date, contact ID, expected values, and actual results.

If values disappear, trace the path from URL capture to hidden field to CRM delivery to find the first failing step. Treat the workflow as verified only when the CRM record matches the documented rules.

FAQs

Can I capture UTMs if visitors reject cookies?

Yes. Hidden fields can read UTM parameters directly from the current URL’s query string and submit them with the form - even when visitors reject cookies.

Cookies often store tracking data across page views or sessions. But you don’t need them to collect parameters from the current URL. Just make sure your hidden fields pull their values directly from those URL parameters.

Can partial UTMs mix data from different campaigns?

No, partial UTM parameters don’t automatically mix data from different campaigns. But incorrect handling can cause problems. Missing UTM fields stay empty for that submission.

To keep analytics from becoming distorted or fragmented, use one policy for blank fields. For example, use “Unknown” or “Unattributed” instead of setting different defaults across reports. Test submissions with partial UTMs to check that your system handles them according to your reporting model.

How can I safely test CRM attribution updates?

Test on the published page - not in the form editor. Open your browser’s developer tools and check the Network tab to confirm that UTM data appears in the submission payload. Then follow each test contact into the CRM. Check submission records, contact property history, and workflow logs.

Test both new and returning contacts using different parameter values, missing values, and uppercase and lowercase characters. Check the overwrite rules, too: first-conversion fields should stay unchanged, while latest-conversion fields should update as expected.

Related Blog Posts

Use AI to summarize text or ask questions

Discover proven form optimizations that drive real results for B2B, Lead/Demand Generation, and SaaS companies.

Lead Conversion Playbook

Get new content delivered straight to your inbox

By clicking Sign Up you're confirming that you agree with our Terms and Conditions.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
The Playbook

Drive real results with form optimizations

Tested across hundreds of experiments, our strategies deliver a 215% lift in qualified leads for B2B and SaaS companies.