Skip to primary navigation Skip to content Skip to footer

Track Your Marketing Campaigns with UTM Codes

Last updated on February 12, 2021
11 minute read
Key Takeaways

  • What a UTM code is & why you need it to track traffic to your website
  • How to create & implement UTM codes
  • How to track UTM codes
Categories

Skill Level

Intermediate, Advanced
Actions

One of the most important steps in the lifecycle of any marketing campaign is the act of measuring your performance – you want to make sure that the efforts you are taking, and the money and resources being put towards those efforts – produce a result. However, monitoring and measuring digital performance can become increasingly complex and time-consuming as you continue to add marketing tactics – whether it be social media, emails, PPC, digital banners, or other efforts.

Fortunately, marketers can rely on a simple yet effective tool to make it easier to measure where your traffic is coming from and which campaigns are performing best, called UTM codes. This guide will cover what UTM codes are, how to create them, and how to use them to track your digital marketing efforts.

Pro-tip: Not sure where to spend your marketing budget to have the most impact? Check out this Compass guide. Looking to learn more about tracking ad performance on Facebook? Learn more about Facebook Pixels. Wondering how to optimize your PPC ads? Work your way through this PPC checklist

What are UTM codes, and how do they work?

UTM (Urchin Tracking Model) codes, also known as UTM tags or UTM parameters, are snippets of text or tags that you can append to the end of your URLs to identify and track where your traffic is coming from based on the various mediums your link is distributed in. More simply put, UTM tags are short text codes that you add to a URL or unique link in order to help you track the performance of a web page or campaign (Hootsuite). When a user clicks on a URL with a UTM tag, that information is sent back to Google Analytics so it can track the specific sources of your website traffic. 

For example, you can add a UTM tag to a URL that is included in your email newsletter, and later you can track all the traffic that came to your site from that specific URL. UTM codes are customizable and you can also create multiple versions, so you can track two different links that are on the same platform and see which one is performing better, regardless if they point to the same URL. Without the use of UTM codes, you can only obtain a high-level view of your incoming traffic in Google Analytics which can hurt both your performance and level of attribution. Creating a UTM code takes only a few minutes and will allow you to track individual sources and will remove the guesswork when you are trying to decide how well your Facebook post or email did in driving traffic or conversion. It’s a small change that can make a world of difference!

There’s a small caveat to keep in mind when using UTM codes: These tags stick to your URLs wherever they go. For example, if one of your subscribers clicks on a URL in your newsletter and shares it on their social media, and then one of their friends visits the URL from there, you’ll still see that traffic as coming from your newsletter rather than a social media post because the URL has a newsletter tag attached to it. However, UTM tags still give you helpful information about your traffic sources and are a useful marketing tool. 

How to Create UTM Codes

Creating UTM codes is easy, and you can get as specific as you want to track campaigns, sources of traffic, and even keywords. The easiest way to create them is by using the Google Analytics Campaign URL Builder. This is a free tool to help you create a custom UTM code, following this format will ensure your tags or parameters are easily picked up by Google Analytics!

Google Analytics URL Builder screenshot

 

Here’s a breakdown of the different fields you need to fill out: 

  • Website URL: This is the URL you want to track. 
  • Campaign Source: This refers to the main contributor or primary platform where the traffic is being generated, such as your newsletter, Facebook, or a website where you wrote a guest blog. 
  • Campaign Medium: This is where we get a bit more specific about the exact channel where your URL is being used, such as a PPC ad, a banner on your website, or a blog post. 
  • Campaign Name: This field is important to help you keep track of your different campaigns. For example, you might be tracking this URL as part of your summer season promotion, or you might be trying to keep track of a specific promo code that is sending people to your website. 
  • Campaign Term: This field is not required, but you should use it if you’re running PPC ads to help you keep track of the traffic for each different keyword you’re targeting.
  • Campaign Content: This field is also optional, but you can use it to further differentiate between ads. If, for example, you’re A/B testing a few different ads targeting the same keyword, you can add a different tag for each one. 

Once you’ve filled out the required fields, the tool will generate a URL including the UTM tags. 

Let’s take a look at an example of how we might create a URL. Say you’re creating a campaign to promote your winter dog sledding tours, and you want to track a URL in your newsletter and on social media. You might fill out the campaign builder form like this: 

For the Newsletter: 

  • Website URL: https://www.example.com
  • Campaign source: Newsletter 
  • Campaign medium: Email
  • Campaign name: winter-tours
  • Generated URL: https://www.example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=winter-tours

For the Social Media Post: 

  • Website URL: https://www.example.com
  • Campaign source: Facebook
  • Campaign medium: Social
  • Campaign name: winter-tours-post
  • Generated URL: https://www.example.com/?utm_source=facebook&utm_medium=social&utm_campaign=winter-tours-post

Depending on your campaign, you can further differentiate your URLs by tracking organic social media posts vs. paid ones, in-text links in your newsletter vs. buttons, and more. If you’re creating multiple social posts, you can number them individually (i.e. organic-post1, organic-post2) as a different UTM Campaign name — just be sure to create a spreadsheet where you can keep track of what posts are using which tags. The more specific you are with your UTM tags the better, as they not only can determine your main sources of traffic but can provide insight on adjustments and optimizations to make for future campaigns. 

Pro tip: Make sure you create a naming convention for your UTM codes that is easy to use and remember. It’s a good idea to use only lowercase letters so you never have to worry about being case-sensitive. If you need spaces between your words, it’s best to use dashes or underscores. Most importantly, keep your URLs clean by using as few words as possible. Make sure the words are descriptive so you can easily differentiate between different tags.

You can also use UTM codes for offline marketing campaigns such as radio and print ads. As you’ve seen in our examples, UTM codes can be quite long, so to use them for offline campaigns, you would need to shorten the generated URL using a tool like bit.ly. 

a close up of a logoHow to Track UTM Codes 

There are a couple of different ways to track your UTM codes in Google Analytics. 

One option is to go to Acquisition > All Traffic > Source/Medium to view all the different sources your traffic is coming from. The tags that you created will appear in this view, showing you the traffic numbers for each one.

a close up of text on a white backgroundAnother option is to go to Acquisition > Campaigns > All Campaigns. Here you can view traffic for the specific campaigns you’ve created.

If you want more detailed data on your campaign’s performance, you can also create a custom report, adding the medium, campaign, or source as a dimension depending on what metrics you want to view. 

If you’re running any type of marketing campaign, whether it’s a couple of social media posts or a comprehensive PPC strategy, UTM codes are crucial to help you understand where your traffic is coming from and how your different marketing tactics are performing. UTM codes are free and easy to generate, and they can help you better understand where to allocate your marketing budget. Get started with this great marketing tool today! For more resources, head over to our digital marketing guides.

Related Guides