UTM Tracking: Turn Campaign Tags Into Lead Intelligence

You already tag your links with UTM parameters. AttributionHub captures those parameters in every form submission so campaign data flows into your CRM automatically — connecting ad spend to real leads.

What Is UTM Tracking?

UTM tracking uses five standard URL parameters — utm_source, utm_medium, utm_campaign, utm_term, and utm_content — to tag your marketing links and identify where traffic comes from. When someone clicks a tagged link, the UTM values appear in the landing page URL and are picked up by analytics tools.

The problem is that most analytics platforms (including Google Analytics) track UTM data at the session level, not the lead level. You can see that a campaign sent 500 visitors, but you can't see which of those visitors actually filled out your form and became a lead.

UTM tracking with AttributionHub solves this gap. The script reads UTM parameters from the URL, stores them in the visitor's browser, and injects them into hidden form fields when the visitor submits a form. The result: every lead in your CRM carries the exact campaign, source, and medium that generated it.

Why UTM Tracking Matters

You're investing time and money in campaigns across Google Ads, LinkedIn, Facebook, email newsletters, partner promotions, and more. Each one has its own budget and goals. UTM tracking is the mechanism that tells you what's actually working.

Attribute Leads to Specific Campaigns

See which campaign name, ad group, and keyword produced each form submission. Go beyond session-level analytics to lead-level attribution.

Calculate True Cost Per Lead

When you know which campaign generated each lead, you can calculate cost per lead at the campaign level and compare it across channels.

Optimize Ad Spend in Real Time

Stop waiting for end-of-quarter reports. UTM data in your CRM lets you see which campaigns generate leads daily and adjust spend accordingly.

Align Marketing and Sales

Sales reps see the campaign and keyword that attracted each lead. They can reference the content or offer that brought the prospect in.

The Five UTM Parameters

If you're tagging campaign links, you should know what each of the five standard UTM parameters does and how it maps to your reports.

ParameterPurposeExample
utm_sourceIdentifies the traffic sourcegoogle, facebook, linkedin, mailchimp, partner-blog
utm_mediumIdentifies the marketing mediumcpc, organic, social, email, referral, display
utm_campaignNames the specific campaignspring-sale-2024, brand-awareness, product-launch
utm_termCaptures the paid keywordmarketing attribution, lead tracking software
utm_contentDifferentiates ad variationshero-cta, sidebar-banner, blue-button, video-ad

A fully tagged URL looks like this:

https://yoursite.com/demo?utm_source=google&utm_medium=cpc&utm_campaign=spring-sale&utm_term=lead+tracking&utm_content=hero-cta

How UTM Tracking Works with AttributionHub

Step 1: Tag Your Campaign Links

Add UTM parameters to all your marketing links — ads, emails, social posts, partner links. Use a consistent naming convention so your reporting is clean. If you need help building tagged URLs, the UTM builder tool generates properly formatted links.

Step 2: The Script Captures UTM Values on Arrival

When a visitor clicks your tagged link and lands on your site, the AttributionHub script reads each UTM parameter from the URL. It also reads click IDs like gclid (Google Ads), fbclid (Meta), msclkid (Bing), ttclid (TikTok), and li_fat_id (LinkedIn) for additional platform identification.

The captured data is stored in the visitor's browser using first-party storage. No cookies are required. The data persists across page views and sessions, so if a visitor browses five pages before reaching your form, the UTM values are still available.

Step 3: UTM Data Populates Hidden Form Fields

When the visitor reaches a form, AttributionHub finds hidden fields and populates them with the stored UTM values. This works with any form builder that supports hidden fields — HubSpot, Gravity Forms, Webflow, Typeform, Contact Form 7, Marketo, and standard HTML forms.

Step 4: Leads Arrive in Your CRM with Campaign Data

The form submission delivers the lead's contact information alongside the full set of UTM parameters. Map these values to custom fields in your CRM (HubSpot, Salesforce, Pipedrive, etc.) and your lead records include the campaign context permanently.

Try UTM Tracking in the Playground

Want to see UTM parameter capture in action? The AttributionHub Playground lets you simulate clicks from tagged campaign links and watch UTM values flow through detection, storage, and form population in real time. Test different source, medium, and campaign combinations and see exactly what your CRM would receive — without installing anything.

See the playground documentation for details.

Beyond Paid Campaigns

Most people associate UTM tracking with paid ads, but the same parameters work just as well across every other marketing channel.

Email Marketing

Tag every link in your email campaigns and newsletters: ?utm_source=mailchimp&utm_medium=email&utm_campaign=weekly-digest

Now you can see which email campaigns produce leads, not just opens and clicks.

Social Media Posts

Tag links in your organic social posts: ?utm_source=linkedin&utm_medium=social&utm_campaign=thought-leadership

Track whether your social content strategy generates actual leads.

Partner and Affiliate Links

Give partners tagged links so you can track which partnerships drive form submissions: ?utm_source=partner-name&utm_medium=referral&utm_campaign=co-marketing-q1

QR Codes and Offline Marketing

Even offline campaigns benefit from UTM tracking. Print tagged URLs on QR codes for events, flyers, and billboards: ?utm_source=conference&utm_medium=qr-code&utm_campaign=saastr-2024

UTM Tracking vs. Google Analytics Campaigns

Google Analytics uses the same UTM parameters for campaign reporting. So why bother capturing UTMs in your form submissions too?

Google Analytics answers: How much traffic did this campaign send?

UTM tracking in your CRM answers: Which actual people did this campaign turn into leads, and did any of them become customers?

Different questions entirely. GA operates on anonymous sessions. AttributionHub captures UTM data at the individual lead level, attaching it to a real person's name, email, company, and deal value. That's what lets you calculate real campaign ROI — not just traffic metrics, but revenue.

Tips for Clean UTM Data

Be Consistent with Naming

UTM parameters are case-sensitive. utm_source=Google and utm_source=google show up as two different sources in your reports. Pick a convention (lowercase is the safe bet) and make sure your whole team sticks to it.

Tag Every External Link

Any link you control that points to your website should have UTM parameters. Ads, emails, social posts, partner links, press releases, guest blog posts — all of them. The only traffic that should arrive untagged is organic search and direct visits.

Make Campaign Names Readable

Use names your team will understand six months from now. utm_campaign=spring-sale-2024 beats utm_campaign=campaign-37 every time. Include the quarter or year for time-based campaigns.

Don't UTM-Tag Internal Links

This one trips people up. Never add UTM parameters to links within your own website. Internal UTM tags overwrite the original source attribution and mess up your data. Only tag links that point to your site from external sources.

First-Touch vs. Last-Touch UTM Tracking

A single visitor may interact with multiple campaigns before submitting a form. They might click a Google Ad in week one, read a blog post from an email in week two, and convert through a retargeting ad in week three.

AttributionHub captures both first-touch and last-touch attribution:

  • First-touch UTM records the original campaign that introduced the visitor. This tells you which campaigns generate awareness and fill the top of your funnel.

  • Last-touch UTM records the most recent campaign before conversion. This tells you which campaigns close deals and drive the final conversion.

Both sets of UTM data appear as separate hidden fields in your forms. You can report on either model — or both — in your CRM.

Frequently Asked Questions

Do UTM parameters work with Google Ads auto-tagging?

Yes. When Google Ads auto-tagging is enabled, each click appends a gclid parameter. AttributionHub captures the gclid alongside any UTM parameters you have set. The paid traffic documentation explains how click IDs and UTM parameters work together.

What happens if a visitor arrives without UTM parameters?

AttributionHub doesn't rely solely on UTM parameters. For un-tagged traffic, it reads the HTTP referrer and classifies the visit into the appropriate channel (Organic Search, Social, Referral, or Direct). UTM parameters are captured when present, but attribution still works without them.

Can I capture custom UTM parameters?

AttributionHub captures the five standard UTM parameters plus additional platform click IDs. If you use non-standard parameters, you can use the custom rules engine to define custom field mappings.

How do I verify that UTM tracking is working?

After installing the script, visit your site using a tagged URL and submit a test form. Check your form backend or CRM for the hidden field values. The verification guide walks you through the full testing process.

Will UTM tracking slow down my website?

No. The AttributionHub script is lightweight and loads asynchronously. It reads URL parameters and writes to localStorage — operations that take milliseconds. There is no visible impact on page load time or user experience.


Capture UTM Parameters in Every Lead

Install AttributionHub and start flowing campaign data into your CRM automatically. Works with all major form builders — no developer required.

Get Started Free
Loading footer...