UTM code or “Urchin Tracking Module” code is a string of text added to the end of a URL to track where your website’s web traffic is coming from. UTM stands for Urchin Tracking Module, originally developed as part of the Urchin Traffic Monitor system by Urchin Software. Google purchased Urchin Software in 2005, and UTM codes became a core part of Google Analytics for tracking and analyzing web traffic sources. UTM codes narrow down the source, medium, campaign, and even the term that directed the traffic there in the first place.
UTM codes help you understand the performance of your marketing channels with accurate attribution data. You can calculate the impact of your campaigns and determine which channels are bringing in the most traffic and conversions. UTM tracking works by adding specific parameters to your URLs, allowing you to track web traffic from various sources and analyze the effectiveness of your digital campaigns. Without UTMs, it’s difficult to accurately measure the success of your marketing efforts and make data-driven decisions.
Introduction to UTM Tracking
UTM tracking is a fundamental part of digital marketing that empowers marketers to measure and optimize their campaigns with precision. By adding UTM parameters to your URLs, you can track the effectiveness of your marketing campaigns across different channels and understand exactly where your website traffic is coming from. This level of insight is invaluable for digital marketers looking to maximize campaign performance and refine their marketing strategies.
With UTM tracking codes, you can see which marketing campaigns are driving the most valuable traffic, which sources are converting best, and how users interact with your content. Google Analytics is one of the most widely used analytics tools for tracking UTM parameters, providing detailed reports that help you analyze campaign performance and make data-driven decisions. Whether you’re running digital marketing campaigns on social media, email, or paid ads, adding UTM parameters to your links ensures you capture the data needed to track the effectiveness of your efforts and continually improve your results.
Understanding UTM Parameters
UTM parameters are small snippets of code that you add to the end of your URLs to track the performance of your digital marketing campaigns. These parameters allow you to pinpoint exactly where your website traffic is coming from and how users are engaging with your content. The five core UTM parameters are:
- utm_campaign: Identifies the specific marketing campaign, such as a product launch or seasonal promotion.
- utm_source: Tracks the source of your traffic, like facebook, google, or a newsletter.
- utm_medium: Specifies the marketing channel, such as social, email, or paid search.
- utm_term: Captures specific keywords used in paid search ads, helping you understand which search terms are driving clicks.
- utm_content: Differentiates between similar content or links within the same campaign, such as different call-to-action buttons.
For example, using utm_source=facebook and utm_medium=social in your URLs helps you track the performance of your social media campaigns and see which posts are generating the most engagement. To ensure accurate tracking and avoid duplicate entries in your analytics, it’s essential to use consistent naming conventions for your UTM parameters. This consistency makes it easier to analyze campaign performance and gain valuable insights into your digital marketing efforts.
Why are UTMs important?
UTMs allow you to track the effectiveness of your marketing campaigns. You can see which channels and traffic sources – even specific posts and terms – are driving traffic to your website and how that traffic is interacting with your content. You can also measure how much traffic each campaign generates. With this information, you can make data-driven decisions about where to allocate your marketing budget. It is also important to correctly attribute conversions, as accurate attribution ensures you are measuring campaign performance and revenue impact effectively.
For example, if you run an ad campaign on Facebook and another one on Instagram, UTM codes can show the platform that’s driving better traffic and sales. You can also track the performance of individual ads, landing pages, and creatives within each campaign, and analyze performance data to optimize your ads for best results.
What can you track with UTMs?
UTM codes are highly customizable, which means you can create unique codes for each campaign, channel, and content. This allows you to track the performance of individual elements within a campaign and make informed decisions about which elements to optimize or eliminate. Using different UTM tags for the same url helps you distinguish between campaigns that direct to the same landing page, ensuring accurate attribution and segmentation.
But with high customization comes complexity (at first glance). Let’s take a UTM example and break it down:
Learn how to segment and organize your customers with customer tags in Shopify and leverage powerful analytics in Peel Insights: https://apps.shopify.com/peel-insights?utm_source=g2&utm_medium=profile&utm_content=trial_cta
While this link seems long and confusing at first, it’s actually pretty straightforward:
The string of keywords after the question mark (“?”) are UTM codes, which mark the start of the UTM parameters in the URL.
- utm_source=g2 : This UTM code shows the source as G2.
- utm_medium=profile: This shows the “medium” of exactly where the traffic is coming from. In this case, it’s our profile on G2.
- utm_content=trial_cta: The content refers to the exact post or button that pushed the audience to land on the final page. In this case, it’s the trial button.
UTM parameters are essential campaign parameters for accurate tracking and analytics, as they help you monitor and manage your marketing campaigns effectively.
There are five utm parameters that you can track with UTM codes: source, medium, campaign, term, and content.
Here’s a breakdown of each parameter:
1. Source: UTM source code tracks the specific website a customer came from ahead of their purchase. This is known as the campaign source. For example, if you’re running a campaign on a third-party website and you want to track how many users clicked through to your website from that campaign, you can use the source parameter to identify the source of the traffic.
UTM Example code: &utm_source=quora, where the source of the traffic is Quora.
2. Medium: This parameter tracks the channel a customer came from, like email, social media, organic search, paid search, and referral. This is referred to as the campaign medium.
UTM Example code: &utm_medium=cpc, where the traffic came via a paid ad.
3. Campaign: This parameter tracks specific marketing campaigns. For example, if you’re running a launch campaign, you can use the UTM campaign code to identify traffic and conversions that came specifically from that campaign.
UTM Example code: &utm_campaign=launch-campaign
4. Term: This parameter tracks the search term that a customer used to find your page.
UTM Example code: &utm_term=nonstick-cookware
5. Content: UTM content code tracks where the customer clicked ahead of their purchase.
UTM Example code: &utm_content=sidebar-CTA
How to Create UTMs
You can create UTM codes in two ways: manually or by using a URL builder. Best practices for utm tagging include maintaining consistent naming conventions and verifying that your tags are implemented correctly for accurate tracking.
There’s a free Google Campaign URL Builder, which is integrated with Google Analytics. Here’s a step-by-step guide to creating utm links using google's Campaign URL Builder:

- Navigate to google's Campaign URL Builder.
- Enter the URL of the page you want to track.
- Fill in the fields, including source, medium, and campaign name, to add utm parameters.
- Optional fields include term and content.
- Once you’ve filled in the necessary fields, click “Generate URL” to generate a unique tracking url for your campaign.
- Copy the generated utm code and use it in your campaign.
UTM codes can become lengthy and unwieldy, which can make them difficult to use and share. To optimize your codes, you can use URL shorteners like Bitly or TinyURL to condense your UTM codes into shorter, more manageable links. When running email campaigns, make sure to tag your email links with UTM parameters to accurately track performance.
How to View UTM Code Performance in Google Analytics
Once you’ve created your UTM codes and incorporated them into your campaigns, you need to track their performance. Google Analytics is a powerful tool for tracking UTM code performance, including the ability to view UTM code data alongside other website performance metrics. Using an analytics platform for campaign measurement helps you monitor and analyze your digital marketing campaign more effectively.
If you’re already using Google Analytics, it’ll automatically sync the UTM codes’ traffic to your dashboard.
Here’s a quick overview of how to view your UTM code performance in Google Analytics:
- Log in to your Google Analytics account and navigate to the “Acquisition” section.
- Click “Campaigns” to view your campaign data.
- Select “All Campaigns” to view data for all campaigns, or select a specific campaign to view data for that campaign only.
- Use the “Primary Dimension” dropdown menu to view data by source, medium, campaign, or other UTM parameter.
- Use the “Secondary Dimension” dropdown menu to view data by other metrics, such as the landing page or device category.
By analyzing this data, you can gain valuable insights and deeper insights into your campaign performance, allowing you to optimize your digital marketing campaign for better results.
Reading UTM Tags
Understanding how to read UTM tags is key to unlocking the full potential of your campaign data. When you use UTM tags in your URLs, analytics platforms like Google Analytics can break down your website traffic by source, medium, campaign name, and even specific keywords. This allows you to see exactly how each marketing campaign is performing and which channels are delivering the best results.
To analyze UTM-tagged URLs, head to the Acquisition section in Google Analytics. Here, you can filter your reports by campaign data, such as utm_campaign for a specific campaign or utm_term for tracking keywords in a google ads campaign. By reviewing this UTM data, you’ll gain valuable insights into which marketing strategies are most effective, which channels are driving the most conversions, and how to optimize your digital marketing campaigns for even better performance. With this information, you can make informed decisions and continually improve your marketing results.
Best Practices for UTM Tracking
1. Establish a naming convention and stay consistent
Choose a clear and consistent naming convention for your UTM parameters and stick to it across all of your campaigns. This will give you organized UTM tracking data and make it easier to analyze and compare performance across campaigns.
2. Keep UTM names short and consistent
Keep your UTM names short and simple to avoid confusion and errors. Consistency is key, so use the same names for each parameter across all of your campaigns. It’ll also make it easier to share links with your audience.
3. Track UTM performance across CRM and analytics platforms
Make sure you're tracking UTM performance across all of your marketing platforms, including your CRM if it has UTM tracking capabilities. This will help you get a complete picture of your marketing performance and make data-driven decisions about where to allocate your resources.
4. Pay attention to capitalization
UTM codes are case-sensitive, so use consistent capitalization when creating your codes. If you’ve created a UTM code with small case letters, keep it consistent when sharing links.
5. Don’t neglect other metrics
Don't rely on UTM tracking data alone to make decisions about your marketing strategy. Use it in conjunction with other performance metrics to get a complete picture of your marketing performance.
Common UTM Tracking Mistakes
Even experienced marketers can make mistakes when using UTM tracking, which can lead to inaccurate campaign data and misguided decisions. One of the most common errors is failing to use consistent naming conventions for UTM parameters. Inconsistent names can create duplicate entries in your analytics, making it difficult to track campaign performance accurately.
Another frequent mistake is adding UTM parameters to internal links within your website. This can disrupt user behavior tracking in analytics platforms and skew your data. It’s best to use UTM tracking only on links that send traffic from external sources. Additionally, avoid using capital letters in your UTM parameters, as analytics tools treat utm_source=Google and utm_source=google as separate entries, leading to fragmented data.
Finally, always use utm_source and utm_medium correctly, especially for paid search campaigns. For example, using utm_source=google and utm_medium=cpc ensures you can accurately track the performance of your paid ads. By following these best practices, you’ll maintain clean, reliable campaign data and get the most out of your UTM tracking efforts.
UTM Tracking Tools
To streamline the process of creating and managing UTM tracking codes, digital marketers rely on a variety of UTM tracking tools. Google’s Campaign URL Builder is a popular choice, making it easy to generate properly formatted URLs with UTM tracking codes for your marketing campaigns. This tool integrates seamlessly with Google Analytics, allowing for accurate tracking and detailed reporting on campaign performance.
Other analytics platforms, such as Adobe Analytics and CRM systems, also support UTM tracking parameters, enabling you to analyze campaign data across multiple tools. For marketers running paid ads, platforms like Google Ads provide built-in support for UTM codes, helping you track the effectiveness of your paid campaigns and optimize your marketing strategies.
By using these UTM tracking tools and adhering to best practices, digital marketers can ensure accurate tracking, gain valuable insights into which channels are driving the most traffic and conversions, and make data-driven decisions to improve the performance of their digital marketing campaigns.
Start Tracking Attribution Channel Performance with UTMs in Peel
You’ll be creating a lot of UTM codes across your campaigns. But it can take days and weeks to manually pull all the data into one sheet—not great when you need to move fast to stay ahead of the competition!
You can automate UTM data tracking with an analytics tool like Peel, which makes it easy to automate attribution tracking with UTMs and gain access to UTMs as segment values for retention metrics.
Start with a 7-day free trial here.