The Mysterious UTM Code Explained
By Norann Oleson • 10/11/2012
One UTM code per day keeps the analysts at play
An Urchin Traffic Monitor (UTM) code is the way that businesses track sales from their origination point (like a tweet or a brochure) down the funnel to their conversion page. In Google Analytics, these codes can be tracked under the general “Traffic Sources” area just like any other source.
In physical media a business could send a postcard that promotes an easy-to-remember custom URL. The business could then redirect that URL to a new one that includes a UTM code. That UTM code can be tracked in Google Analytics to tell you how many sales came directly from your postcard effort.
In digital media it’s even easier. You can include UTM codes in Tweets, Facebook posts and email to keep track of where all of your sales originate. It’s the best way to discover your most effective sales funnels.
A typical URL with a UTM tracking code looks something like this:
http://www.yourwebsite.com/?utm_source=yoursource&utm_medium=yourmedium&utm_campaign=yourcampaignname
The source is where your link is hosted, like search, affiliate website or email campaign name or anywhere else.
The medium is how it’s delivered, like a postcard, PPC, email or social media.
The campaign is typically what you’re promoting, or the special way you’re promoting it (like a holiday sale).
If you’re using this UTM code to monitor PPC, you can add a value for term, which can be the keyword you’re targeting. If you’re A/B testing, the value for content would be a variation between the pages you’re testing, like “headline” or “image”.
Google Analytics can help out with all of this with their Google Analytics URL Builder while you’re still getting the hang of it. Google Adwords has the ability to do auto-tagging but when using another network, sending emails or using banner ads, you need to manually tag the links with UTM codes yourself.
Installing UTM tracking codes
Urchin has already provided a pretty basic thousand-foot view of how to install UTM tracking codes and it goes something like this:
- Copy UTM files into the website document root
- Enable Cookies in Logging
- Implement UTM tracking code into your HTML
- Set Urchin 6 Profile to use UTM
- Check for correct implementation
How to use UTM tracking codes
Here’s an example of how you might track a promotion from Twitter:
Let’s say you have a new ebook about cats that you want to track from a tweet sent at 9am on October 20th, 2012.
Use the Google Analytics URL Builder to add in your destination URL (the landing page).
- Your source might be “twitter”
- Your medium might be “121020-tweet” (that’s the year, month, day, then “tweet”)
- Your name might be “cat-ebook”
Your new URL would look like this – http://www.yourwebsite.com/?utm_source=twitter&utm_medium=121020-tweet&utm_campaign=cat-ebook
Or let’s try something more traditional, like an email campaign. You’re trying to promote an event in your email newsletter.
- Your source might be “promo” (because you’re sending from your promotional email template)
- Your medium would be “email” (because you’re sending an email)
- Your campaign might be “2012-cat-conference” (because you’re promoting your 2012 conference about cats)
The URL you’ll use in that email would look like this – http://www.yourwebsite.com/?utm_source=promo&utm_medium=email&utm_campaign=2012-cat-conference
Some publishers also choose to use a unique UTM code for every link in their newsletter so that they can track which links get the most clicks.
How to track UTM codes
In Google Analytics, you can find your traffic from UTM codes by looking at Traffic Sources > Campaigns. Take a look behind the hood of Mequoda to see what a properly working UTM code dashboard looks like:

Since Mequoda doesn’t use PPC, we know this traffic is from our emails. If we did use PPC then we could set the Primary Dimension to Source or Medium to see where the traffic came from.
Publishers with more diverse streams of traffic, like affiliates, partner ads and PPC, have a robust dashboard to filter through. You can use this data from UTM codes to determine your best sources of traffic so that you know you’re always spending your ad budget in the right places.
If you’d like to discover how to build more trackable and effective marketing campaigns, we can teach you how to do it. For more information, contact Ann-Marie by email or phone at 617-886-5177.
Related Posts
Posted in Google Website Analytics









February 15th, 2013 at 2:28 am
Hello, I would have a question regarding this topic.
Let’s say I’ve got 10 campaigns, each one with an own UTM-code. In Google Analytics I can see the Visits, Pages per Visit, Average Visit Duration, etc, as shown above in the screenshot.
That’s fine, but how can I see the number of conversions (=sales)from each of these 10 campaigns?
Thank you!
February 15th, 2013 at 1:17 pm
When you want to track conversions you need to set up a goal for each campaign. Go to the Admin tab of Google Analytics and follow the steps to add a goal. Here is a link you might find helpful that explains goals and funnels.
https://support.google.com/analytics/bin/answer.py?hl=en&answer=1012040&topic=1007030&ctx=topic
May 17th, 2013 at 1:58 pm
[...] campaigns. One of the easiest ways to do this is with Google’s URL Builder. This tool applies a UTM tracking code to the destination URL you are directing traffic to. You can apply this tracking method to Twitter, [...]