Campaign Tracking 10 min read

UTM Parameters Explained: The Complete Guide to Campaign Tracking

SourceStream Team ·

UTM parameters are tags you add to the end of a URL to track where your traffic comes from. When someone clicks a link with UTM parameters, Google Analytics and other analytics tools record those tags, letting you see exactly which campaigns, channels, and content drive visits and conversions.

If you run any form of digital marketing, UTM parameters are the foundation of campaign tracking. They are free, universal, and supported by every major analytics and marketing platform. Yet most marketers either do not use them or use them inconsistently, leaving massive gaps in their attribution data.

The Five UTM Parameters

UTM stands for Urchin Tracking Module, named after Urchin Software, the company Google acquired to build Google Analytics. There are five standard UTM parameters:

utm_source (Required)

Identifies which platform or site sent the traffic. This is the name of the referrer.

  • Examples: google, facebook, linkedin, newsletter, partner_site

utm_medium (Required)

Identifies the marketing medium or traffic type. This describes how the traffic arrived.

  • Examples: cpc (cost per click), email, social, organic, referral, display

utm_campaign (Required)

Identifies the specific campaign, promotion, or initiative. This is the name you give your campaign.

  • Examples: spring_sale_2026, brand_awareness_q1, product_launch_attribution

utm_term (Optional)

Identifies the keyword or targeting criteria for paid search campaigns. Google Ads can auto-populate this, but it is useful for manual tracking too.

  • Examples: marketing+attribution, lead+tracking+software

utm_content (Optional)

Differentiates between variations of the same campaign. Use this for A/B testing or distinguishing between different links pointing to the same URL.

  • Examples: header_cta, sidebar_banner, blue_button, video_ad

How to Build UTM URLs

A UTM-tagged URL follows a simple structure. You add the parameters after a question mark, separated by ampersands:

https://yoursite.com/landing-page?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale

Some tips for building UTM URLs:

  • Use lowercase for all values. UTM parameters are case-sensitive. Google, google, and GOOGLE will show up as three different sources in your analytics. Stick to lowercase to keep your data clean.
  • Use underscores instead of spaces. Spaces in URLs get encoded as %20, which makes reports harder to read. Use underscores or hyphens: spring_sale, not spring sale.
  • Be specific but concise. Your campaign names should be descriptive enough to identify the campaign months later. fb_retargeting_demo_request_q1_2026 is better than campaign1.
  • Create a naming convention document. Share it with your team so everyone uses the same source, medium, and campaign naming patterns. Inconsistent naming is the most common UTM mistake.

UTM Parameters for Every Channel

Google Ads

Google Ads has auto-tagging enabled by default, which appends a gclid parameter to your URLs. This works well for Google Analytics but does not carry over into your CRM. For complete attribution, use both auto-tagging and manual UTM parameters:

https://yoursite.com/landing?utm_source=google&utm_medium=cpc&utm_campaign=brand_terms&utm_term={keyword}

Google Ads supports dynamic parameters using curly braces. {keyword} is automatically replaced with the actual keyword that triggered the ad.

Facebook and Instagram Ads

Facebook appends fbclid automatically, but like gclid, this is only useful within Facebook's ecosystem. Add UTM parameters to your ad URLs:

https://yoursite.com/landing?utm_source=facebook&utm_medium=paid_social&utm_campaign=lead_gen_q1&utm_content=video_ad_v2

Facebook Ads Manager also supports dynamic parameters like {{campaign.name}} and {{adset.name}} for automatic population.

LinkedIn Ads

https://yoursite.com/landing?utm_source=linkedin&utm_medium=paid_social&utm_campaign=b2b_decision_makers&utm_content=carousel_ad

Email Marketing

Tag every link in every email. This includes newsletter links, drip campaign links, and promotional emails:

https://yoursite.com/blog-post?utm_source=mailchimp&utm_medium=email&utm_campaign=weekly_newsletter_mar_2026&utm_content=top_article_link

Most email platforms (Mailchimp, ActiveCampaign, HubSpot) let you set UTM parameters at the campaign level so every link in the email is automatically tagged.

Organic Social Media

Even non-paid social posts should be tagged so you can distinguish organic social traffic from paid:

https://yoursite.com/blog-post?utm_source=twitter&utm_medium=organic_social&utm_campaign=blog_promotion

Partner and Referral Links

https://yoursite.com/landing?utm_source=partner_name&utm_medium=referral&utm_campaign=affiliate_q1

Common UTM Mistakes to Avoid

1. Inconsistent Naming

The single biggest UTM mistake is inconsistent naming. When one team member uses facebook and another uses Facebook or fb, you end up with fragmented data that is hard to analyze. Create a naming convention document and enforce it.

2. Using UTM Parameters on Internal Links

Never add UTM parameters to links within your own website. If you tag a link from your homepage to your pricing page with UTMs, Google Analytics will start a new session and attribute it to that internal link, breaking your actual source attribution.

3. Forgetting to Tag Campaigns

It only takes one untagged campaign to create a gap in your data. Make UTM tagging a mandatory step in your campaign launch checklist. No link goes live without UTM parameters.

4. Using UTMs Without a Landing Page Strategy

UTM parameters tell you where traffic came from, but if you send all campaigns to your homepage, you lose the ability to measure landing page performance. Pair UTM tracking with dedicated landing pages for your important campaigns.

5. Not Tracking Beyond the Click

UTM parameters get you halfway there. They tell you where traffic comes from. But to connect that traffic to actual leads and revenue, you need to carry the UTM data through your forms and into your CRM. This is where many marketers stop short.

From UTM Parameters to Lead Attribution

UTM parameters are incredibly valuable, but they have a critical limitation: they only exist in the URL. Once a visitor navigates to another page on your site, the UTM parameters disappear from the browser's address bar. If the visitor does not convert on the landing page (and most do not), the UTM data is lost unless you capture it.

Here is how to preserve UTM data throughout the visitor's entire journey:

  1. Capture UTMs on page load. A JavaScript snippet reads the UTM parameters from the URL when the visitor first arrives.
  2. Store them in first-party cookies. This preserves the data as the visitor navigates your site, even across multiple sessions.
  3. Populate hidden form fields. When the visitor reaches a form, the stored UTM data is automatically inserted into hidden fields.
  4. Submit with the form. The UTM data flows into your CRM alongside the lead's contact information.

SourceStream automates this entire process. Install one script, and it captures UTMs, stores them in first-party cookies, and populates hidden fields in any form on your site, including Contact Form 7, Gravity Forms, WPForms, HubSpot Forms, and more.

Building a UTM Tracking System

Here is a practical framework for implementing UTM tracking across your organization:

  1. Document your naming conventions. Create a simple spreadsheet or document listing acceptable values for source, medium, and campaign. Share it with everyone who creates marketing links.
  2. Use a UTM builder tool. Google's Campaign URL Builder or a spreadsheet template helps ensure consistency and reduces manual errors.
  3. Tag all existing campaigns. Go through your active ads, email sequences, and social posts. Update every link with proper UTM parameters.
  4. Install attribution tracking. Deploy a script that captures UTM data and stores it in first-party cookies so it persists across the visitor's session.
  5. Connect to your CRM. Add hidden fields to your forms and map them to CRM properties so every lead record includes attribution data.
  6. Review monthly. Check your UTM data for inconsistencies, missing tags, and opportunities to optimize.

UTM parameters are simple in concept but powerful in practice. They are the starting point for any serious marketing measurement program, and combined with a tool like SourceStream that carries UTM data through to your CRM, they give you complete visibility into which campaigns generate real business results.

Start tracking your lead sources today

SourceStream captures every marketing touchpoint and flows attribution data directly into your forms and CRM. Set up in under 5 minutes.

Try SourceStream Free for 14 Days

No credit card required