Quick: which social network is bringing in the most traffic to your website right now?
It’s OK if you don’t know off the top of your head. (I don’t memorize that sort of stuff either!) But wouldn’t it be great if you could pull up the answer in just a few seconds whenever your boss asks you this?
What about revenue broken down by social network?
What about the percentage of traffic generated by social versus email?
You can track it all, and you can track it for free: all you need are Google Analytics and a little bit of UTM link codes.
I’d love to share with you how that’s done. =)
Jump to any section of this post
- 1 A Quick-and-Simple Overview of UTM Codes
- 2 The 3 Essential Questions a UTM Link Can Answer
- 3 How to use UTM codes and parameters in your social media links
- 4 How to track your social media UTMs in Google Analytics
- 5 Case Study: Using UTM parameters to tell the story of Star Wars
- 6 Quick recap on UTM parameters in social media
- 7 Summary (and a few goodies)
A Quick-and-Simple Overview of UTM Codes
What are UTM codes, and why are they so important?
“UTM” stands for “Urchin tracking module.” Urchin Software Corporation was acquired by Google in 2005, and their software laid the groundwork for what we now know as Google Analytics.
UTM codes are bits of text you can add to a link that tell Google Analytics (as well as other analytics tools) a little bit more information about each link. Here’s a sample of what one looks like:
Why are UTMs important?
If you’re spending a lot of time in social media, you might be publishing hundreds of new links per day.
UTM codes help you track the performance of each of those links so you can see where your traffic is coming from.
You can use the UTM variables within the link to track general information, like how much traffic you’re getting from social media. You can use them to track the fine details also, like how much revenue you get from your Twitter bio.
There are many, many ways to track links with UTM codes.
And the good news: If you settle on a strategic way to tag your links now, you’ll save yourself a lot of time (and headache!) in the future.
I’m about to share an approach to UTM tagging that has been especially helpful for me when it comes to measuring the success of my links, and I hope it will be for you, too. =)
But before we jump into that, let’s quickly set our expectations for what a well-tagged URL can accomplish for you.
The 3 Essential Questions a UTM Link Can Answer
When all UTM’ed up, a link should be able to help you answer some basic questions about your web traffic:
- Where is the traffic coming from?
- How is it getting to me?
- Why is it coming to me?
Essentially, UTM codes tell the story of how your traffic is coming to you.
This works by using three (or four) elements called “UTM parameters,” which we’ll cover in detail below:
- Content (optional)
That’s why a UTM-tagged URL looks like this:
See all those “utm_” bits? That’s where we’re labeling the traffic that comes from this link.
Of course, typing that long string of characters is pretty scary, so most people use URL generators. These nifty tools let you plug in the values for each of those parameters, and then the tools do the magic of stringing them together into a nice URL. Some popular generators include:
The UTM parameters, in turn, tell Google Analytics how to sort your incoming traffic. If you’re tracking your links across social media (and across the rest of your digital content!), you’ll get a lot more goodness out of Google Analytics’ Acquisitions features—because you’re giving GA more to track.
Here are the different places to find UTM information within your Google Analytics dashboard:
- Acquisition > All Traffic > Source/Medium
- Acquisition > Campaigns > All Campaigns
Now, let’s look at how to use UTM codes and parameters in your social media links.
With UTM codes, we’re trying to help Google Analytics tell us the story of how our social media traffic is getting to us. We’re trying to answer three questions:
- Where’s the traffic coming from?
- How is it coming to me?
- Why is it coming to me?
The good news is: choosing your UTM parameters is as simple as answering those questions for every link you publish. Let’s look at how that works together.
tl;dr — You can use the name of the social platform you’re sharing the link to (e.g., Twitter, Facebook) as the “source” UTM tag.
The “source” parameter is all about answering the question, “Where is my traffic coming from?”
By adding the parameter
&utm_source= to your links, you’re tagging every visit that comes from that link in a way that says, “this visit came from such and such.”
So, your “Source” UTM parameter will simply state where the traffic is coming from.
Now, I say, “simply,” but there are a multitude of ways that this could be done. For example, if you were tweeting to your followers about a sweet blog post you just wrote, you could answer the question “Where is the traffic going to come from?” a few ways.
- It’s coming from you, the sharer.
- It’s coming from Twitter, the place where it’s being shared.
- It’s coming from your followers, the ones reading it.
There are all kinds of ways you could think about this.
But Google recommends using the “source” field to describe the “referrer,” or the entity that’s actually sending the traffic your way. In this example, a good source tag would be simply “Twitter.” There are a few good reasons for this:
- You will eventually want to track ALL of your traffic from Twitter in one place (simplicity FTW!)
- In the case of social media links, this makes even more sense. If someone shares or Retweets your links, then the traffic isn’t really coming from you anymore—but it’s still coming from the same social media platform!
In social media, I’ve found the simplest approach is to use the social platform you’re sharing the link to as the “source” UTM tag. When I share a link to Facebook are tagged with “
tl;dr — Consider setting “social” as your medium tag for all links shared on social media.
This parameter is all about answering the question, “How is my traffic coming to me?”
By adding the parameter
&utm_medium= to your links, you’re tagging every visit that comes from that link in a way that says, “this visit came via _______.”
This is a little less straightforward than the source tag we looked at, because for every way to describe where the traffic is coming from, there are probably 10 ways to describe how it’s getting to you!
That’s why it can be helpful to establish some UTM conventions up front. If you give yourself a general list of options for the “medium” tag, then this part of the link-tracking process can be a lot easier.
Google suggests using a general name of the marketing medium for this parameter on their URL builder:
That helps keep it simple! For tagging UTM codes on social media, a really simple approach is to always use “social” as your medium. You don’t have to do this, but I’ve found it makes it very easy to sort the traffic in my high-level marketing channels—especially if I’m taking Google’s advice on this when I’m tagging other links.
Just FYI, here are some other “medium” tags you might consider for non-social links:
- Blog-guest (for when you’re guest posting on an influencer’s blog)
- Blog-syndicated (for when you’re sharing your articles with syndication sites)
Now for the last of the questions: why is the traffic coming to you?
This is what the “campaign” UTM parameter is all about. By adding the parameter
&utm_campaign= to your links, you’re tagging every visit that comes from that link in a way that says, “this traffic is coming from this effort.”
There are SO MANY ways to use this tag! And the beauty of it is that if you’re consistent with your source and medium UTM parameters, you have a lot of flexibility when it comes to tracking campaigns.
Here are a few ways to think of using the campaign parameter:
- Use it for special promotions. Doing a new product launch? Try “launch-[Product Name]” as your campaign.
- Use it for personas. If a post is crafted especially for one buyer persona, you may want to consider tagging that link accordingly. For example, you could try “manager-mandy” or “practitioner-pam” as your campaign values.
- Use it for business objectives. Is that blog post you’re tweeting about going to generate leads, sales, or thought leadership? You might try using campaign values like, “contact,” “complete,” or “lead.”
Note: be empathetic with your tags, as your readers can see them in the URL bar of their browsers. =)
And once you’ve been tagging and tracking your links with UTMs, you can get a really good feel for where your traffic is coming from by hopping into Google Analytics.
Google Analytics makes it really smooth for organizing and analyzing these UTMs. You can see UTM campaign, source, and medium all from the same Google Analytics dashboard.
- Go to Acquisition > Campaigns > All Campaigns
- Click to view the Primary Dimension of Campaign, Source, or Medium
Case Study: Using UTM parameters to tell the story of Star Wars
Remember the end of Star Wars, when Luke Skywalker and the Rebel Alliance race to blow up the Death Star before the evil Galactic Empire destroys the rebel base?
What if we told that story . . . with UTM tags?
Luke Skywalker is flying to the Death Star. Let’s assume Luke represents web traffic coming from a tagged link. We’ll make Deathstar.is the target URL the rebels are sending “traffic” to.
The source of that traffic? That would be the Rebel Base. Which means that if we were to express that in UTM terms, we’d have . . .
So we know that the Death Star is where Luke Skywalker (the traffic) is flying to, and we know the source of that traffic (Rebel Base). Now . . . how’s Luke getting there? In his trusty X-wing fighter, that’s how!
Now, what if we added that to our UTM story? It would look a little something like this . . .
So we know that Luke Skywalker (the traffic) is flying to the Death Star (the destination URL). He’s flying from the rebel base (the source) in his trusty X-wing fighter (the medium).
But why? Why is that traffic coming to the Death Star in the first place?
Because the Rebels want to save their base and later save the galaxy from the likes of Darth Vader.
So, if we were to sum up this story in UTM tags, we would need a campaign tag to tie this all together. We’ll choose “stop-darth-vader” for this one. =)
So, here’s the story of Star Wars in UTM-tagged URL form!
- Destination URL = where the traffic’s going (the Death Star)
- Source UTM tag = where the traffic’s coming from (the rebel base)
- Medium UTM tag = how the traffic’s getting there (X-wing fighters)
- Campaign UTM tag = why the traffic’s going there (to stop Darth Vader)
We’re about to jump into how to track these in Google Analytics, but first, let’s do a super-quick recap on what we’ve covered:
- The “source” UTM tag = the referrer (Facebook, Twitter, LinkedIn, YouTube, etc.)
- The “medium” UTM tag = how the traffic gets to you (for most social media links, this will just be “social”)
- The “campaign” UTM tag = why the traffic is coming to you (launch, persona, promotion, etc.)
Here’s a quick tip for Buffer for Business users: you can automate your UTM tags in Buffer! Here’s how.
First, go to “Settings” in your Buffer account and select “Link Shortening.”
Then, scroll down toward the bottom. You’ll see the “Google Analytics Campaign Tracking” section. You’re just two steps away from customizing your Buffer links:
- Toggle that “Enable Campaign Tracking” switch to “Yep.”
- Click the “Customize Campaign Tracking” button.
Behold, your own custom Google Analytics tagging options! =) I’ve got my Twitter account set up so that every link I tweet through buffer is tagged accordingly:
- Source = twitter
- Medium = social
- Campaign = jeffrey-the-red (a form of my Twitter handle)
BOOM! Now all my tweeted links are automatically sorted. (Yours can be, too.)
Summary (and a few goodies)
Now you know how to use UTM tags, and you’re ready to keep track of all your social traffic.
Now, Buffer’s a great tool for automatically tagging links to be used on social . . . but what if you want to tag LOTS of links in social and outside of social? What if you’re running a huge campaign that encompasses blog posts, PPC ads, tweets, and emails?
That’s a lot of links to build one at a time.
So let’s make it easier! We’ve put together a UTM tagger template spreadsheet that helps you generate lots of UTM tagged URLs for any campaign—and it just takes a few seconds to tag ALL your links at once!
If you’d like to use this template, I’d love to send you a copy! You can enter your email address below and I’ll send it right along. We’ll also keep you in the know about Buffer updates and new blog posts. =)