UTM Parameters: How to Use Them Correctly

July 9, 2025

30 min read

Futuristic cityscape with advanced technology infrastructure and neon lights in a desert setting at dusk

Introduction

Your marketing analytics sometimes seem like a train wreck, right? Well, you're not alone. Most marketers often spend hours in front of a computer building an entire campaign. What falls flat is successfully understanding how it all really worked. And here come UTM parameters—the little snippets of code attached to your URLs, which are simply the unsung heroes of campaign tracking. Certainly, although they have a magic of opening the treasure troves of powerful insights into Google Analytics, they will also tell you exactly where your traffic comes from and how your online marketing efforts perform across the channels. But here's the reality: Most teams still don't use UTM tracking appropriately. They either skip it or create messy, inconsistent tags that end up polluting their data. Without a proper data tracking system in place, your reports lie, or worse still, stay silent. Clean UTM tagging is not a single technical task; it is the foundation of the whole marketing analytics edifice. This ranges from dashboards tracking campaign performances to personalization triggers to budgetary decisions.

This blog will let you know how to use UTM parameters properly-without getting drowned in technical gibberish. Whether you are running paid ads, sending newsletters over emails, or sharing links through social media, get to learn how to build UTM codes using the Campaign URL Builder, deploy them across every touchpoint, and track everything inside Google Analytics UTM reports. Ready to finally get your head around tracking a marketing campaign? Let's dive into it.

Understanding UTM Parameters

Before going deeper into strategy and execution, it is best to clear up some basic fundamentals. UTM parameters are the backbone of accurate campaign tracking and one of the most vital components of any serious marketing analytics strategy. Used properly, they provide clean, structured data to tools such as Google Analytics to give you clear visibility on your online marketing performance.

What Does UTM Actually Stand For?

UTM stands for Urchin Tracking Module, which is an ancient reference to Urchin Software, which was acquired by Google in 2005 to form what we now know as Google Analytics. With this ancient name comes one of the more reliable ways of tagging URLs for accurate tracking data across all marketing channels. When UTM parameters are appended to your links, you are simply labeling your traffic sources. This way, when someone clicks a link, you know where they came from, how they got there, and which campaign drove them.

The 5 Core UTM Parameters (with Examples)

Graphic showing the core UTM parameters

In addition to understanding those, they should know about the other five elements, which are customarily referred to as core UTM Parameters. These parameters will each contribute to making a complete profile of user behavior tracking as well as marketing campaign tracking.

  1. utm_source: Origin of Traffic

    This tells where the traffic is coming from. It constitutes the platform or source that referred the user. 

    1. Example: utm_source=linkedin, utm_source=newsletter
    2. Use it for: Social media platforms, email platforms, referral websites, and partner sources.
  1. utm_medium: Medium of Marketing

    This tells you in an advertising message., It states what kind of online marketing channel was used.

    1. Example: utm_medium=email, utm_medium=cpc, utm_medium=social
    2. Use it for: Distinctions of email and paid search, as well as organic social versus display ads, etc.
  1. utm_campaign: Campaign Identifier

    It tracks the specific campaign whose associated traffic is reflected. This is like the project or campaign name for it.

    1. Example: utm_campaign=product_launch_q3, utm_campaign=webinar_signup
    2. Use it for: Measuring specific marketing pushes, launches, events, or seasonal promos.
  1. utm_term: Paid Keyword Target

    As mentioned above, this is mainly used on Google Ads or another paid search campaign; this parameter retains hold of the exact keyword responsible for the visit.

    1. For example: utm_term=b2b+web+personalization
    2. Use this for: Knowing which paid search terms will be valued for more traffic.
  1. utm_content: Version of Creative or CTA

    Differentiating between versions of content within the same ad or email is. It is mandatory for A/B testing.

    1. Example: utm_content=cta_banner_red, utm_content=text_link_footer
    2. Use it for: Telling which design, CTA, or placement resulted in the click.

Optional But Powerful: Custom Parameters (When the Standard Doesn't Suit)

Graphic showing the difference between custom and standard parameters

The five basic UTM parameters will serve most needs, but advanced marketers sometimes apply odd or custom UTM parameters for added context. For instance:

  • utm_audience=enterprise_CXO
  • utm_stage=mid_funnel
  • utm_segment=retargeting

Custom parameters don't show up in standard Google Analytics UTM reports, but they can be captured using Google Tag Manager or passed to a Customer Data Platform (CDP) like Fragmatic. This would facilitate advanced segmentation, personalization, and pinpoint ROI analysis on a cross-web analytics stack.

How Do UTM Parameters Work? How to Use Them Correctly

It explains how UTM tracking works, how to append these parameters to your URLs, how tools such as Google Analytics, Hubspot, and Salesforce read them, and the rules that marketers cannot trip over while trying to keep their data from becoming chaotic.

How UTMs Are Appended to URLs and Interpreted by Analytics Tools

UTM parameters are appended to a URL as query strings; tiny labels after a "?" in your link.  When anyone clicks on the link, the web analytics platform (like Google Analytics) captures these UTM values and attributes the session accordingly. This tells him exactly which online marketing effort led to the visit.

Breakdown of UTM Processing in GA4, HubSpot, and Salesforce

  1. Google Analytics (GA4)

    GA4 does automatic parsing of UTM parameters, where you can view everything on the Traffic Acquisition report, from sources to mediums and campaigns, among other things, you can assess in campaign tracking.

  1. HubSpot 

    HubSpot brings UTM data onto the timelines of contacts and forms, as well as on the reporting dashboards. When these things are done right, one can segment leads and award them with the relevant conversion to a specific marketing campaign using their UTM metadata.

  1. Salesforce 

    Integrated correctly, all UTM data would be passed from the form submissions into Salesforce as hidden fields. Hence, true end-to-end marketing analytics-from click to closed-won.

Do’s and Don’ts for Clean, Reliable UTM Tracking

graphic showing the do's and don'ts for using UTMs
  1. Use lowercase only: Analytical tools identify LinkedIn and linkedin as different sources. Stick to lowercase for all UTM values to keep data clean.
  2. Do not duplicate parameters on different sources: Never again make use of the same UTM values for campaigns or platforms that are unrelated. This pollutes attribution and distorts your ability to measure real performance fairly.
  3. Always define the source and medium: Do not use UTMs without both utm_source and utm_medium. Neither one of these is secondary, and both are important for any working Google Analytics UTM report.
  4. Avoid generalities such as "social" without a platform: Don't define utm_source=social. Instead, specify LinkedIn, Twitter, or Facebook for further insights.

How To Create UTM Codes

The creation of clean and consistent UTM codes is not merely an exercise in ticking the boxes, but actually is the foundation of reliable campaign tracking, accurate marketing analytics, and making smarter decisions. In this section, we walk you through exactly how to use UTM parameters in real-world campaigns both manually and automatically, and how to avoid the usual chaos in growing B2B marketing teams.

Graphic showing the process of creating UTM Code

Manual Method: UTM Builders (Like Google Campaign URL Builder)

Well, you can have a UTM-tagged URL manually constructed by adding query parameters to the end of your base link. But it really gets messy with marketers juggling between the multiplicity of channels and campaigns.

Online tools to minimize errors and keep data organized:

  1. Google's Campaign URL Builder

    A free Google app that helps create trackable links formed by all five UTM parameters.

  1. Fragmatic Campaign Builder 

    It is an inbuilt campaign URL maker from Fragmatic. It means to create a consistent UTM code all through your online sales funnel. It has its auto-suggested sources, mediums, and campaigns based on your previous use. It connects directly to Google Analytics and your CRM for real-time report generation.

Template for B2B Campaign Teams

To maintain UTM hygiene across teams, set up a shared spreadsheet (or use Fragmatic's campaign tracker) with the following structure:

Template for B2B Campaigns

This keeps everyone aligned, reduces duplicates, and ensures consistency across teams and tools.

Naming Conventions: Maintain Order, Adopt Clarity

Consistent naming conventions make your UTM data usable. Here are some rules to follow:

  • All lowercase: linkedIn, not LinkedIn
  • Use underscores instead of spaces or hyphens: q3_launch, not q3-launch
  • Specify:" Utm_source=social" or" utm_campaign=blast" is vague.
  • Include dates/versions whenever necessary: product_launch_q3_2025

A clean naming taxonomy will ensure that your Google Analytics UTM reports remain readable and credible, even after hundreds of campaigns.

Example: Structure UTM Code for Q3 Product Launch Email

Suppose you are trying to run a mail campaign about a new feature. 

  • Base URL: https://fragmatic.io/request-demo
  • Source: newsletter 
  • Medium: email
  • Campaign: q3_launch 
  • Content: cta_button_top

Final URL:

https://fragmatic.io/request-demo?utm_source=newsletter&utm_medium=email&utm_campaign=q3_launch&utm_content=cta_button_top

This helps your marketing analytics tools understand that this visitor came from a Q3 email campaign via a top CTA button, allowing you to compare it against other placements or campaigns with confidence.

Tools to Automate: HubSpot, Fragmatic, and many more.

  1. HubSpot tracks URLs 

    HubSpot comes with a campaign URL builder that natively tracks UTM parameters in all emails, ads, and CTAs. You can also pull UTM data into contact timelines and reporting dashboards for an even deeper history of campaign tracking.

  1. CDP + Personalization Layer

    Want to dive deeper? When UTM data went to your CDP, such as Fragmatic, you could even personalize web experiences by source, medium, or campaign—for instance, showing different versions of your landing page for users coming from utm_source=linkedin vs. utm_source=email.

Best Practices for Effective UTM Tracking

Setting up UTM tracking might be the first step, but simply designing it improperly will invite the wrath of misery to your marketing analytics. Most of the time, UTM chaos starts when platforms misinterpret data, or no one audits what’s already live. Keep your tracking free from data pollution, your dashboards actionable, and your Google Analytics report rock solid—all by following these best practices. 

Graphic showing the best practices for UTM tracking
  1. Create Central UTM Tagging Strategy or Spreadsheet

    One entity of badly used UTM could destroy your reporting. That's why the first step should actually be building a central UTM governance system. The Google sheet can be shared with the entire team, or a Notion doc may be built, or perhaps the inbuilt Campaign URL builder in Fragmatic can be used so that everyone in the organization uses the same nomenclature. The spreadsheet should contain the following:

    1. An approved source, medium, and campaign name list;

    2. Naming conventions guideline (ex., lower case, underscore, no space);

    3. A version history and naming glossary for past campaigns.

    Bonus: You may restrict editing capabilities on this spreadsheet so that only your ops or analytics lead can approve new additions.

  1. Maintain Cleanliness in the Taxonomy: Versioning, Date Format, Casing

    UTM tagged affiliate campaign links with non-uniformity could gain on your Google Analytics space in no time, having multiple instances of LinkedIn as they are: LinkedIn, linkedin.com, and LinkedIn-paid. On the other hand: 

    1. Use lowercase always rather than uppercase for the utm_source property.

    2. Always use underscores instead of spaces or hyphens for the utm_campaign parameter.

    3. Add style versioning or date format to campaign names for later referral.

    4. Please avoid those one-off names, which are not meant to be searchable or filterable nowadays. 

    Having a data track that is called clean and organized provides a lifeline that makes marketing campaign tracking scalable. And all these are pure creative bliss when reporting of data reporting is concerned. 

  1. Use the URL Shortener to Keep Short, Precise URLs 

    Long URLs with UTM codes get more cluttered as they are used in sources such as social media, messengers, chat, and other offline ways. For this, a URL shortener is a quick fix. Those tools will shorten the URL entirely for submission on Twitter, WhatsApp, or Facebook, but still keep the UTM parameter integrity completely untouched. 

    1. Branded short URLs, such as go.fragmatic.io/launch, promote trust and engagement with your customers.

    2. Always check that your URL shortening tool does not overwrite UTM tags in the redirection process. 

    3. Short doesn't mean dumb—such blindfolded UTMs are what help secure the data in your web analytics tool.

  1. Measure Performance: Tie UTM Values Back to CRM, CDP or Revenue

    Tagging links is only half the task. The other part is connecting the actual business impact. It means making sure UTM enters the flow of other downstream systems.

    1. In HubSpot, hidden fields are used to capture UTM data from form fills.

    2. In Salesforce, syncing UTM values into lead or opportunity objects.

    3. In Fragmatic, UTM data can flow into the CDP for segmentation, personalization, and revenue attribution.

    As soon as UTM values flow from click to close, the movement is from basic Google Analytics views to full-funnel marketing analytics, where the real ROI exists.

  1. Audit Regularly: How to Identify Broken or Abused UTMs

    Set some monthly or quarterly cadence to check on the live UTMs in all the campaigns. Look for:

    1. Spelling mistakes, mixed case, or inconsistent names (for example, LinkedIn, LinkedIn, or linkedin.com)

    2. Missing source or medium tags, which cause "direct/none" traffic in GA4 source/medium

    3. UTMs copied and pasted across unrelated campaigns

    4. Nonstandard parameters (e.g., utm_source=emailblast rather than email)

    Use tools like:

    1. GA4 Traffic Acquisition reports to filter and clean up inconsistent UTMs.

    2. Fragmatic dashboards to visualize UTM-tagged performance across content, channels, and audience segments.

    Cleaning your UTM hygiene is like cleaning your data lens—it sharpens your focus and makes certain that you're optimizing based on truth and not noise.

When to Use UTM Parameters?

Knowing how to use UTM parameters is only half the battle; the other half is knowing where to put them for the maximum insight and effectiveness. Strategic UTM placement down the funnel turns benign links into data signals that inform both marketing analytics and personalization engines. Here comes a rundown of the most significant places to apply to UTM; there are also some places where they definitely shouldn’t be.  Key Touch Points Along the Funnel: 

Graphic showing the channels where to use UTM Parameters
  1. Every click on every paid ad should land with UTM parameters in full set and loaded. Platforms such as Google Ads and Meta auto-tag links by default, for example, but you are better off applying your own structure on top of it to unify reporting across all platforms.

    Example: utm_source=linkedin&utm_medium=paid&utm_campaign=q3_demo_boost

    This way, you can compare ad performance across Google Analytics, your CDP, and your CRM while keeping all naming consistent with your campaign tracking model.

  1. Organic Social Posts

    Although social media can be considered free, one still needs to measure its effectiveness. Tagging the organic posts with UTMs allows for separating the traffic into LinkedIn posts, Twitter threads, and Facebook group discussions in your web analytics.

    Example: utm_source=linkedin&utm_medium=organic&utm_campaign=thoughtleadership_aug

    To keep links looking nice and easy to use, use a URL shortener in conjunction with your tags.

  1. Email Newsletters and Nurture Sequences

    Email is one of the most underrated use cases for UTMs. Every CTA, button, or link inside your email should have UTM parameters to distinguish between campaigns and placements.

    1. Use utm_source=newsletter

    2. Segment by nurture stage in utm_campaignUse utm_content to A/B test link types (e.g. button vs. text)

    This way, marketers will be able to assess the content that drives clicks and how email plays a part in the online marketing conversion.

  1. Influencer and Partner Content

    Whenever submitting a link through a partner, during co-marketing programs, or with influencers, UTM parameters should always be appended to specify the source and partner name.

    Example: utm_source=partner_xyz&utm_medium=referral&utm_campaign=co-branded_guide

    This feeds clean partner attribution into your Google Analytics UTM reports and CRM for accurate partner ROI tracking.

  1. QR Codes and Offline-to-Online Campaigns

    If you're running promotions through print ads, trade shows, or product packaging, embed UTM codes into your QR links.

    Example: utm_source=event_booth&utm_medium=qr&utm_campaign=2025_launch

    Scannable UTMs bring your offline marketing directly into your online marketing dashboards-completely unlocking omnichannel visibility.

Don't use UTMs on internal links (e.g., homepage banner to product page). Why?

  • It resets session attribution in Google Analytics, falsely attributing conversions to your own site
  • It breaks source/medium tracking, making your external channel performance look worse than it is
  • UTMs should be used only on links originating from outside the domain.

Bonus: Using UTMs in Ad Retargeting and Personalization Engines

UTMs aren't just for attribution; they can also power real-time personalization. Just look at the features of platforms such as Fragmatic:

  • Personalize landing page headlines for utm_source=linkedin
  • Trigger specific product tours for utm_campaign=demo_drive
  • Launch remarketing sequences for users with utm_medium=cpc

When UTM signals feed directly into your CDP or personalization engine, you move from tracking traffic to a tailored experience - a huge advantage in today's attention economy.

Conclusion

Precision is what matters today in online marketing. UTM parameters are simple at the surface, but they are among the most effective weapons in a marketer's analytics arsenal. Very simply put, if they are set right, each campaign performance can be unveiled, allowing great levels of attribution models in tools like Google Analytics, HubSpot, and Salesforce, and everything else between data tracking and actual revenue impact.

But UTM tracking doesn't end just at putting the tags; that should be a strategy. The parts that would make the best marketing teams from the rest would be clean taxonomy, structured naming conventions, centralized governance, and consistent auditing in their projects. Be it a paid LinkedIn campaign or nurture email, or even a QR code at your next trade show, each touchpoint offers insight in measurable formats. Forward-looking teams are currently doing more than just tagging across their UTMs. Instead of tracking campaigns that are representative of their customers, they're also using that data input to effect personalized experiences and fast-track conversions. That's where Fragmatic comes into being-automating all your UTM management and centralizing campaign tracking by turning traffic data into personalized real-time insights at scale. Winning in today's B2B landscape is not only about getting traffic to the site. It's knowing exactly where that traffic came from and what to do with it next.

Author Image
Vidhatanand

Vidhatanand is the CEO and CTO of Fragmatic, focused on developing technology for seamless, next-generation personalization at scale.