Blog / What is a UTM Code?

What is a UTM Code? The Complete Guide to Campaign Tracking

Published on caseconverter.co.uk· 6 min read

In the world of digital marketing, data is king. Understanding where your website traffic comes from is crucial for making informed decisions, optimising your marketing spend, and ultimately, growing your business. This is where UTM codes come in. They are the unsung heroes of campaign tracking, providing the granular data you need to measure the effectiveness of your marketing efforts. But what exactly are they, and how do you use them correctly?

This comprehensive guide will walk you through everything you need to know about UTM codes. We will explore what they are, how they work with tools like Google Analytics, best practices for creating them, and common mistakes to avoid.

What are UTM Parameters?

UTM stands for Urchin Tracking Module. The name comes from Urchin Tracker, a web analytics software that served as the base for Google Analytics. UTM parameters, or UTM codes, are short snippets of text added to the end of a URL to help you track the performance of your marketing campaigns.

When a user clicks on a link with UTM parameters, those tags are sent back to your Google Analytics account. This allows you to see exactly which campaigns, sources, and mediums are driving traffic to your website. Instead of seeing a vague referral source like "facebook.com", you can pinpoint the exact post, ad, or link that brought the user to your site.

There are five standard UTM parameters you can use:

  • utm_source: Identifies the source of your traffic, such as a search engine, newsletter, or social media platform. (e.g., google, facebook, mailchimp)
  • utm_medium: Identifies the marketing medium, such as email, social, or cost-per-click (CPC). (e.g., cpc, social, email)
  • utm_campaign: Identifies a specific campaign or promotion. (e.g., summer_sale, new_product_launch)
  • utm_term: Used for paid search campaigns to track the keywords for your ad. (e.g., utm_tracking_guide)
  • utm_content: Used to differentiate similar content or links within the same ad. For example, if you have two call-to-action links in the same email message. (e.g., logolink, textlink)

Of these, utm_source, utm_medium, and utm_campaign are the most important and are required for effective tracking.

How Do UTM Codes Work with Google Analytics?

When you add UTM parameters to a URL, you are essentially creating a unique signpost for your traffic. When a user clicks that link, your analytics tool, most commonly Google Analytics, reads the parameters from the URL and attributes that user's session to the values you have set.

For example, imagine you are running a summer sale campaign on Facebook. You might create a URL like this:

https://www.yourwebsite.co.uk/?utm_source=facebook&utm_medium=social&utm_campaign=summer_sale

When someone clicks this link, Google Analytics will record that the visit came from:

  • Source: facebook
  • Medium: social
  • Campaign: summer_sale

This data is then available in your Google Analytics reports, specifically under the "Acquisition" section. You can see which campaigns are driving the most traffic, conversions, and engagement. This level of detail is invaluable for understanding your return on investment (ROI) and making data-driven decisions about future marketing activities.

Best Practices for Naming Conventions

Consistency is the key to successful UTM tracking. Without a clear and consistent naming convention, your data can quickly become a messy, unusable jumble. Here are some best practices to follow:

  1. Be Consistent: Decide on a naming convention and stick to it. Create a shared document for your team to ensure everyone is using the same structure and terminology.
  2. Use Lowercase: Google Analytics is case-sensitive. Facebook, facebook, and FB will all be treated as different sources. To avoid this, always use lowercase for all your UTM parameters.
  3. Use Dashes or Underscores for Spaces: Do not use spaces in your UTM parameters. Use dashes (-) or underscores (_) to separate words. For example, use summer-sale or summer_sale instead of summer sale.
  4. Keep it Simple and Descriptive: Your UTM parameters should be easy to understand. Anyone looking at your analytics should be able to quickly grasp what the source, medium, and campaign refer to.
  5. Use a UTM Builder Tool: Manually creating UTM-tagged URLs can be tedious and prone to errors. Using a tool like our own UTM Link Builder can save you time and ensure your links are formatted correctly.

Common Mistakes to Avoid

Even with the best intentions, it is easy to make mistakes when using UTM codes. Here are some of the most common pitfalls and how to avoid them:

  1. Tagging Internal Links: Never use UTM codes on internal links on your website. This will overwrite the original referral data and corrupt your tracking. For example, if a user arrives from an organic search and then clicks an internal UTM-tagged link, their session will be attributed to the internal campaign, not the organic search.
  2. Inconsistent Naming: As mentioned before, inconsistency is the enemy of clean data. A mix of cpc, CPC, and cost-per-click will fragment your data and make analysis difficult.
  3. Using Vague Names: Avoid generic names like test or promo. Be specific and descriptive so you can easily identify your campaigns later.
  4. Mixing Up Source and Medium: Understand the difference between utm_source and utm_medium. The source is where the traffic came from (e.g., google), while the medium is how it got there (e.g., cpc).
  5. Forgetting to Tag Links: One of the biggest mistakes is simply not using UTM codes at all. If you are running any kind of marketing campaign, you need to be tracking its performance. Make it a habit to tag every campaign link.

Conclusion

UTM codes are a powerful tool in any digital marketer’s arsenal. They provide the detailed data needed to track the performance of your campaigns, understand your audience, and make smarter marketing decisions. By following the best practices outlined in this guide and avoiding common mistakes, you can unlock the full potential of UTM tracking and gain a much clearer picture of your marketing effectiveness.

Ready to start creating your own trackable links? Head over to our UTM Link Builder to generate your first campaign URL in seconds.