How to Track Form Lead Sources with UTM Parameters

To track where form leads come from, add UTM tags to campaign links, save them in hidden form fields, and send them to the CRM. Start with 3 tags: utm_source, utm_medium, and utm_campaign.
The process comes down to four steps:
- Standardize links for email, paid search, and social.
- Save first-touch and latest-touch data separately using clear storage and consent rules.
- Test the path from click to CRM to check field mapping and prevent duplicate conversions.
- Compare lead volume, quality, cost, and pipeline, with missing attribution shown alongside results.
UTMs connect tagged visits to leads - not every step in a buyer’s journey. Consistent naming and tested form-to-CRM tracking make those reports more useful.
How to Track Form Lead Sources With UTMs
Step 1: Set UTM Naming Rules and Build Links
Put one person in charge of a shared link registry so source, medium, and campaign names stay consistent across email, paid search, and social. Record each approved URL, destination, owner, launch date, audience, and UTM values. Agree on how to use these fields across channels before building links.
Define the 5 UTM Parameters
| Parameter | Purpose | Example value |
|---|---|---|
utm_source |
Names the site, platform, publisher, or sender that sends the visit | newsletter |
utm_medium |
Names the marketing channel or delivery method | email |
utm_campaign |
Groups links for a specific promotion, launch, or initiative | 2026_product_launch |
utm_term |
Records a paid keyword, audience, or targeting identifier | project_management_software |
utm_content |
Tells apart links, placements, messages, or ad versions within a campaign | header_button |
Require utm_source, utm_medium, and utm_campaign on every link. Use lowercase values and stick to one separator, such as underscores. Keep campaign names the same across channels, and use utm_content for variations in copy, visuals, or placement.
Choose Tags for Email, Paid Search, and Social
| Channel | Source | Medium | Campaign | Optional fields |
|---|---|---|---|---|
newsletter |
email |
2026_product_launch |
utm_content=header_button |
|
| Google paid search | google |
cpc |
2026_product_launch |
utm_term=project_management_software |
| LinkedIn organic | linkedin |
organic_social |
2026_product_launch |
utm_content=company_post |
| LinkedIn paid social | linkedin |
paid_social |
2026_product_launch |
utm_term=operations_managers; utm_content=video_a |
Use the same campaign name across channels, but change source and medium to match each channel. Use the platform name for utm_source. Make sure your analytics channel rules match your utm_medium values, or set up custom channel groups.
For Google Ads, preserve supported click IDs and check how auto-tagging works with manual UTMs. Manual source and medium values don't replace the advertising integration.
Once you've agreed on the values, build your final URLs from a template to keep the format consistent across campaigns.
Build and Test Tagged URLs
Hypothetical tagged URL:
https://example.com/demo?utm_source=newsletter&utm_medium=email&utm_campaign=2026_product_launch&utm_content=header_button
The ? starts the query string, and & separates its parameters. If the destination already has a query string, add UTMs with & - not a second ?. URL-encode spaces or reserved characters as needed, and put parameters before fragments such as #pricing.
Use a controlled template or URL builder, then test the published destination in a private browser window and on mobile. Check HTTPS, required tags, spelling, and redirects, including shortened links. Confirm that the final URL keeps its UTM values. Don't tag internal links; track on-site navigation with event or placement tracking instead.
Next, pass those same UTMs into hidden form fields to create high-converting lead forms where each submission keeps its source data.
sbb-itb-5f36581
Step 2: Save UTM Data With Each Submission
Once a tagged click brings someone to the page, capture the UTM values before they submit the form.
Set First-Touch and Latest-Touch Rules
Define first touch as the first campaign-tagged visit, and document that rule. Store separate first-touch and latest-touch values for source, medium, campaign, term, and content. Keep first-touch values throughout your attribution window. Update latest-touch values only when a visit includes valid UTM values.
Decide whether an untagged return visit leaves the latest campaign unchanged. Document that decision, along with your attribution window, storage expiration, retention, and consent requirements.
Store first-touch and latest-touch landing-page paths and referring-page paths separately. Keep utm_term and utm_content tied to their matching campaign - never carry them over from a previous visit. Record a server-side submission timestamp.
Keep stored data limited: approved UTM values and page paths, with no sensitive query data. Use these rules to determine which values the form saves on submission.
Pass UTM Data Into Form Fields
Read UTM parameters with URLSearchParams, validate them, and save them in approved browser storage. Session storage works if attribution only needs to last for the current browser session. Longer windows need an approved approach with an explicit expiration.
Populate hidden fields when the page loads. At submission, check for missing, duplicated, malformed, and overlong values.
For embedded forms, check how values pass from the parent page into the form. Don't assume they share storage. Test cross-domain and cross-subdomain journeys separately, plus refreshes, multi-page navigation, return visits, and cases where browser storage is denied.
If a supported integration handles UTM capture, confirm which fields it records and whether it follows your first-touch and latest-touch rules.
Set Up Attribution Fields in Reform
In Reform, create hidden fields for each UTM key, then map them to the matching CRM properties. To save both first-touch and latest-touch values, create a separate set of hidden fields for each.
Navigate away from the landing page, then submit a test lead and compare the Reform and CRM records. Test embedded and cross-domain behavior directly rather than assuming support.
Step 3: Sync and Test Attribution Data
Map Attribution Fields to Analytics and CRM Records
Once you’ve stored the UTM values, sync them to your analytics and CRM records.
Map each saved UTM field to its matching CRM property and analytics event parameter. Keep first-touch and latest-touch fields separate, with timestamps for both. Use a non-personal submission ID to connect the form, analytics, and CRM records. Link the submission to its campaign record with a non-personal ID, too.
Update latest-touch fields without overwriting first-touch data.
Custom event parameters do not populate GA4 acquisition reports by default. In Google Analytics 4 (GA4), you may need corresponding custom dimensions before those parameter values appear in reports. When reports don’t match, check GA4’s source, medium, and campaign dimensions separately from the UTM values attached to your successful form-submission event.
Generate a random submission ID and keep it unchanged during integration retries. That lets your workflow detect duplicates. Never include names, email addresses, or phone numbers in URLs, UTM values, or analytics events.
Test the Full Submission Workflow
With the mapping in place, test the submission path from start to finish. For each email, paid-search, and social link:
- Open the link in a new browser session, visit another page, and submit the form.
- Inspect the submitted Reform record and note its submission ID.
- Find the matching analytics event and CRM record. Compare source, medium, campaign, and timestamps.
- Check that the submission links to the correct campaign record.
- Confirm that one valid submission creates one conversion event.
- Test validation errors, duplicate clicks, page refreshes, and integration retries. Watch for false conversions and duplicate records.
Next, test tagged and untagged return visits, redirects, embedded forms, and both granted and denied consent. Check each against your documented attribution rules. Consent restrictions may legitimately cause differences between analytics and CRM records.
Use direct only when the analytics platform classifies the visit that way. Use unknown when you can’t determine the source, and missing when expected UTM fields never reached the record.
Step 4: Compare Campaign Performance
Once attribution is synced, group submissions by source/medium. Then compare results by campaign, term, and content.
Report Lead Volume, Quality, and Cost
Use the same reporting window, time zone, and refresh date across all channels.
In this example, monthly submissions exclude retries, tests, and spam. Qualified leads pass email validation, match the target market, and receive sales acceptance within 14 days. Conversion rate = submissions ÷ unique tagged campaign sessions: 8,000 for email, 7,500 for paid search, and 6,000 for social. Costs include media spend and allocated platform fees, excluding agency and creative costs. Cost per lead and cost per qualified lead divide cost by submissions and qualified leads, respectively.
Channel Source/medium Submissions Qualified leads Conversion rate Cost per lead Cost per qualified lead Attributed pipeline newsletter/email 240 54 3.0% $4.17 $18.52 $72,000 Paid search google/cpc 310 81 4.1% $25.81 $98.77 $128,000 Social linkedin/paid_social 150 33 2.5% $16.67 $75.76 $49,500 Total - 700 168 3.4% $16.43 $68.45 $249,500
Pipeline means credited opportunity value, counted once per opportunity. Don't count the same opportunity in multiple channel totals or mix attribution models. Use N/A when costs aren't available or ratios are undefined.
Check for Missing or Inconsistent Attribution
Next, check attribution completeness to help explain gaps in the results.
Show UTM completeness beside performance: submissions with nonblank source, medium, and campaign divided by all submissions. Track CRM sync completeness and the share of qualified leads with usable attribution, too. Missing or malformed UTM values may explain gaps in channel lead counts.
Each week, check for blank or malformed UTM fields, capitalization differences, unexpected medium names, duplicate submissions, multi-step form repeat visits that overwrite latest-touch values. Track term and content only where used; both are optional. Fix naming at the link source and standardize reporting values without deleting raw data.
Retest whenever links, redirects, forms, consent settings, or CRM integrations change. UTMs describe tagged visits - not a complete cross-device journey. Cookie restrictions, consent choices, ad blockers, redirects, deleted cookies, and CRM matching rules can all interrupt that journey's tracking.
Publish the attribution model, lookback window, and completeness rate alongside pipeline or revenue. Attributed revenue assigns credit; it doesn't prove a campaign caused a sale. Use controlled experiments when you need causal evidence.
Conclusion: Start Small and Verify Your Tracking
Start with one email campaign, one paid search campaign, and one social campaign. Use the same naming standard for all three so you can trace each lead to its source, medium, and campaign. Once the tags are consistent, check that every submission saves that data. Store first-touch and latest-touch values separately, then map both to your analytics and CRM fields. This keeps the lead’s origin and most recent engagement intact.
Next, test the full path from click to CRM record. Submit one test from each channel, plus one as a returning visitor. Check that the correct values appear in form records and reports, and retest whenever forms or integrations change. Only scale after the data lands in the right fields every time.
FAQs
How long should I retain UTM data?
There’s no one-size-fits-all retention period. Document and enforce a policy based on your organization’s reporting needs. Set an expiration for each field, and clear or update stored values when someone withdraws consent.
Session cookies expire when the session ends. To keep UTM values across page visits until form submission, use consent-aware, first-party storage. Apply the same retention rules across your CRM and analytics tools.
Which attribution model fits my sales cycle?
Your attribution model should reflect how long deals take to close and how many conversions you track. For sales cycles under 30 days, time-decay attribution often works well because recent actions tend to have the most influence. For B2B cycles lasting 90–180 days, a W-shaped model is recommended to highlight key pipeline transitions.
Set your attribution window to 1.5 times your average sales cycle to account for the full customer journey.
How can I attribute leads from untagged links?
Separate visits that arrived without UTM parameters from those that lost tracking data along the way. Use consent-aware first-party storage to keep UTM values across page visits, redirects, and multi-step forms.
For untagged arrivals, leave UTM fields blank. Don’t invent or hardcode defaults like “direct” or “unknown” - they distort analytics. If a returning visitor already has attribution from a tagged session, keep that attribution rather than replacing it with blanks.
Related Blog Posts
Get new content delivered straight to your inbox
The Response
Updates on the Reform platform, insights on optimizing conversion rates, and tips to craft forms that convert.
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.

.webp)


