UTM Codes: The right way to Create UTM Tracking URLs on Google Analytics


How do if Facebook is a worthy investment, or should you’re getting enough traffic out of your recent promotional campaign? The reply: UTM tracking links.

UTM codes enable you to track where traffic is coming from, allowing you to properly measure each campaign’s, platform’s, or medium’s ROI.

On this blog post, you will learn what UTM codes are, how one can use them, and how one can construct them in each Google Analytics and HubSpot.

UTM codes are also often called UTM parameters — or tracking tags — because they enable you to “track” website traffic from its origin. Marketers customize this text to match the webpage the tagged URL is linked on, with a view to attribute the success of that campaign to specific pieces of content.

Now, you is perhaps considering, “Ginny, I actually have HubSpot, so I already know if my website traffic is coming from Google, email, social media, and similar marketing channels. What does a UTM code tell me that I do not already know?”

HubSpot Marketing Hub provides you with these high-level sources of traffic, but UTM also helps you drill down into specific pages and posts inside these traffic sources. If you happen to’re promoting a campaign on social media, for instance, you will understand how much traffic got here from social media. Constructing a UTM code, nevertheless, can inform you how much of that traffic got here from Facebook and even a selected post on Facebook.


UTM Code Example

UTM codes could be overwhelming at first, so let’s take a take a look at an example. Here’s a URL with its own UTM code:

http://blog.hubspot.com/9-reasons-you-cant-resist-list?utm_campaign=blog_post &utm_medium=social&utm_source=facebook

Let’s break this link down.

  • http://blog.hubspot.com/9-reasons-you-cant-resist-list: That is the bottom URL of the page.
  • ?: This signals to your analytics software that a string of UTM parameters will follow.
  • utm_campaign=blog_post: That is the primary UTM parameter, specifically for the campaign the visitor engaged with (on this case, a blog post campaign).
  • &: This denotes that one other UTM parameter will follow.
  • utm_medium=social: That is the second parameter, specifically for the channel the visitor got here from (on this case, social).
  • &: This denotes that one other UTM parameter will follow.
  • utm_source=facebook: That is the last parameter, specifically for the particular website the visitor got here from (on this case, Facebook).

In the instance above, you are saying that when traffic is available in from individuals who click this link, the traffic must be attributed to Facebook. The “medium” is social media, while the “source” is Facebook.

Adding these snippets of code after the query mark above doesn’t affect anything on the page — it just lets your analytics program know that somebody arrived through a certain source inside an overall marketing channel, as a part of a selected campaign.

UTM Code Advantages

As we’ve already covered, UTM codes are small snippets of code which you can add to the top of a URL to trace where website traffic is coming from. They could appear small, but they bring about big advantages to marketers. Listed here are just a number of:

  • Higher tracking: UTM codes permit you to track exactly where your website traffic is coming from, so you may see which marketing tactics are literally driving results. With UTM codes, you may see which sources, mediums, and campaigns are bringing in probably the most traffic, leads, and sales.
  • More accurate attribution: UTM codes also permit you to give credit where credit is due. For instance, if a visitor first finds your website through a Google search, then comes back later through a Facebook ad, you may see the whole customer journey and attribute the sale or conversion to each channels.

In summary, UTM codes are an easy but powerful technique to get more insight into your website traffic and marketing campaigns. They permit you to track sources and mediums more accurately, and offer you a transparent picture of which channels are driving probably the most value for your enterprise. Through the use of UTM codes consistently, you will find a way to make smarter marketing decisions and optimize your campaigns for higher results.

With that, let’s dive more deeply into the ways UTM code links help marketers accurately attribute lead sources.

How do UTM links help marketers?

Crucial elements of being a terrific marketer are with the ability to measure your success and measure your impact. Irrespective of which metrics you employ, you wish to prove to your boss (and the corporate) that you just’re value your salt.

You deserve your budget — and possibly need more of it — and also you need to dedicate time to the marketing activities that work. Constructing UTM codes that track your campaigns’ success is the most effective technique to prove it.

Counting on your analytics tool’s source and medium breakdown isn’t enough to prove whether a certain strategy is working. UTM links provide more granular data that permit you to drill right down to the particular source of the traffic. You should utilize the next UTM parameters, which we’ll cover in additional detail later:

  • Campaign
  • Source
  • Medium
  • Content
  • Term

With that in mind, UTM tracking codes can enable you to determine:

1. Where the traffic is coming from (Source).

First up, you’ll find a way to inform the particular website the traffic is coming from. Examples include:

  • Social web sites (Instagram, Facebook, Pinterest, YouTube, LinkedIn, etc)
  • Search engines like google (Google, Bing, Yahoo, etc)
  • Paid posts and sponsored listings (paid ads, sponsored posts, etc)
  • Other web sites (your individual site, competitor’s sites, publisher’s sites)

2. Which general channel the traffic got here from (Medium).

It’s also vital to know the final categorization of the source. That way, you may determine whether social media generally is a worthwhile investment, for example. Organic search, social, CPC, and email are a number of mediums you need to use.

3. What sort of content people clicked on (Content).

What gets probably the most clicks? A picture, a sidebar link, or a menu link? You may tell this information with the content UTM parameter. This is crucial for determining whether you want to add more images, as an illustration, or improve your sidebar link structure if no clicks are coming through that content.

4. Which term they used to access the page (Term).

UTM links may enable you to see which terms are driving traffic to a selected page. Through the use of the term parameter, you may determine which keywords are driving probably the most traffic to you, and which need more love.

Putting all of it together, here’s what a UTM-tracked URL can seem like:


Now, let’s take a better take a look at the definition of UTM tracking and the UTM parameters you need to use.

UTM Parameter Examples

UTM codes can track a medium and a source inside that medium. Where it gets more flexible is within the language you employ to explain that source. Perhaps you wish to attribute website traffic to a social network, a sort of content, and even the precise name of an commercial on the net.

Listed here are the five things you may track with UTM codes and why you would possibly track them:

1. Campaign

Campaign-based tracking tags group the entire content from one campaign in your analytics. The instance UTM code below would enable you to attribute website traffic to links that were placed as an element of a 20% discount promotion you are hosting.

Example: utm_campaign=20_off

2. Source

A source-based URL parameter can tell you which of them website is sending you traffic. You might add the instance code below to each link you post to your Facebook page, helping you to trace all traffic that comes from Facebook.

Example: utm_source=facebook

3. Medium

One of these tracking tag informs you of the medium that your tracked link is featured in. You should utilize the instance UTM code below to trace all traffic that comes from social media (versus other mediums, like email).

Example: utm_medium=social_media

4. Piece of Content

One of these UTM code is used to trace the particular kinds of content that time to the identical destination from a standard source and medium.

It’s often utilized in pay-per-click (PPC) campaigns or with two equivalent links on the identical page, as shown within the sample UTM code below.

Example: utm_content=sidebar_link or utm_content=header_link

5. Term

A term- or keyword-based tracking code identifies the keywords you’ve got paid for in a PPC ad. If you happen to pay for a Google Ads campaign to rank under the keyword, “marketing software,” you would possibly add the next UTM code to the top of the link you undergo Google to run this ad.

Example: utm_term=marketing+software

The very best part about UTM parameters is which you can make any combination you want of those codes — use the bare minimum (campaign, source, and medium) to trace all your links, or use all of them to get super specific about your tracking.

Okay, so that you’re on board with UTM codes … but how on earth do you set them up? It is simple.

Below are instructions for establishing and measuring UTM parameters in Google Analytics and HubSpot.

The right way to Construct UTM Codes in Google Analytics

Listed here are the steps involved in constructing UTM codes in Google Analytics.

1. Open Google’s Campaign URL Builder.

There are three several types of tracking tags you may create in Google, two of which enable you to track traffic to recent apps on app marketplaces. You may be using the Google Analytics Campaign URL Builder — the third option on this list.

2. Fill in each link attribute in the next form.

Visit the page linked above and click on the link to see this URL builder. Then, you will see the UTM builder shown below. Add the URL, Campaign, Source, and Medium information into their respective boxes.

how to build utm codes google analytics:  fill out the form

3. Use the link in your marketing campaign.

If you happen to’d wish to shorten it, you’ll have a tool like bit.ly … or simply use HubSpot’s URL Builder should you’re a HubSpot customer.

4. Measure your success.

If you happen to have already got Google Analytics arrange to your site, Google will mechanically track incoming campaigns. Like in HubSpot, you may access them under “Audience,” then “Sources,” then “Campaigns.” Click on each campaign to view the source and medium.

how to build utm codes google analytics: view campaigns

And that is it — you’ll need custom tracking codes arrange and running very quickly! In a number of weeks, you will find a way to make a case for what you would like because you’ll need the proper metrics available.

The right way to Construct UTM Codes in HubSpot

Here’s the way you’d go about constructing UTM codes in HubSpot.

1. Navigate to your Analytics Tools.

In your Marketing Hub dashboard, select “Reports” on the highest navigation bar. Then select “Analytics Tools” within the dropdown, as shown below.

How to Build UTM Codes in HubSpot: navigate to your analytics tool

2. Open the Tracking URL Builder.

Within the menu of analytics tools that appears, look to the very bottom-righthand corner. You will see the choice, “Tracking URL Builder.” Click this selection at the underside of the page, as shown within the red box below.

How to Build UTM Codes in HubSpot: open the tracking url builder

3. Open the Tracking URL form to create a recent UTM code.

Each time you create an online campaign that features no less than one UTM code, you will see this campaign listed on the page shown below.

This page outlines a tracking tag’s source, medium, term, content, and creation date, which you may see along the underside of the screenshot below. Click “Create Tracking URL” within the top-righthand corner.

How to Build UTM Codes in HubSpot: open the tracking URL form to create a new UTM code

4. Fill in each attribute of your UTM code and click on “Create.”

In the shape that appears, fill within the URL, Campaign, Source, and Medium fields. If you happen to’d wish to add Content and Term, you may achieve this in the underside two fields of this kind. Whenever you’re done, you will see an orange “Create” button turn into available at the underside.

Click it, and HubSpot will log your UTM code as a recent campaign, and this link can be ready to incorporate on any webpage from which you wish to track the traffic.

How to Build UTM Codes in HubSpot: fill in the attributes of your UTM code and click create

5. Use the shortened link in your marketing campaign.

How to Build UTM Codes in HubSpot: use the shortened link in your marketing campaign

6. Measure your success.

You may track your UTM parameters in your Traffic Analytics dashboard under “Other Campaigns,” as shown below. Click on the person campaign to interrupt down the source and medium.

How to Build UTM Codes in HubSpot: measure your success

As you may see within the second image, below, the name of the campaign appears to the left — based on the text within the UTM code you created — with the traffic from individuals who used each URL to reach at your campaign’s major webpage.

How to Build UTM Codes in HubSpot: measure your success

Now that how one can arrange UTM links, how do you employ them? Let’s have a look.

The right way to Use UTM Links for Your Campaigns

You should utilize a mixture of UTM codes and parameters in a number of ways. Here’s how you need to use them in your day-to-day as a marketer.

1. Track the success of a promotional campaign.

Dropping product prices or launching a recent product could be daunting, because if there’s no measurable ROI, it’ll be wasted effort. Luckily, you may tell whether users are effectively arriving to your site out of your promotional efforts using UTM codes.

Here’s one example for a product launch:


Or, should you’re running a reduction campaign through Instagram influencers, here’s what a UTM link can seem like:


2. See how well your social channels promote your content versus when your followers promote your content.

How do your organic social efforts stack up against your followers’ promotional efforts? You may create two UTM campaigns to seek out out.

For your individual posts, you may share a link as follows:


Then, prompt your followers to share the word about you, but allow them to share the next link:


3. Measure the effectiveness of guest posting referral traffic.

If you happen to’re guest posting on several industry web sites, it’s essential to know whether those posts are driving traffic to your site. Guest posting generally is a time-consuming, costly endeavor, especially should you’re paying a contract author or for a spot on the publication.

Each time you create a guest post for an additional publisher, ensure all of the links pointing to your website on that post have UTM parameters that inform you where the traffic got here from. Here’s one example:


4. Track the identical piece of content across multiple marketing channels.

This might be one of the useful ways to make use of UTM tracking codes: Creating different ones for a similar piece of content, and using it across different platforms. You may drop the campaign parameter for this use case, and easily track the medium, source, and content.

Let’s say you wish to track referral traffic from a video you posted on LinkedIn, YouTube, and Facebook. Listed here are the three different links you might use:

LinkedIn: mywebsite.com/my-content?utm_medium=social&utm_source=linkedin&utm_content=caption YouTube: mywebsite.com/my-content?utm_medium=social&utm_source=youtube&utm_content=description Facebook: mywebsite.com/my-content?utm_medium=social&utm_source=facebook&utm_content=caption

5. See where most individuals click in your internal links in a blog post.

Is your internal linking strategy working as intended? You may track where your content gets probably the most clicks by adding UTM parameters. Listed here are three examples:

Image: mywebsite.com/my-content?utm_source=blog&utm_content=image Above the Fold: mywebsite.com/my-content?utm_source=blog&utm_content=above_the_fold Bottom of the Post:mywebsite.com/my-content?utm_source=blog&utm_content=bottom

Note: Use this strategy with caution, as using too many UTM parameters in internal links can cause confusion to Google. It’s best to apply it to a small batch of internal links, collect the click patterns, delete the UTM links, after which act on those results to your future internal linking efforts.

As at all times, be certain that you’ve set a canonical URL for every link to reduce confusion and stop duplicate indexing.

UTM Tracking Best Practices

UTM tracking URLs are a robust marketing tool, but to get probably the most out of them, it is vital to follow some best practices. Listed here are a number of tricks to take into account:

1. Create consistent UTM tracking codes.

Be certain that your URLs and links are consistent, clean, and straightforward to read. I’d even recommend creating a typical for link tagging, or a UTM parameter guide (type of like a brand style guide) to make sure consistency across platforms and campaigns.

For instance, for monthly newsletters, you would possibly decide to at all times input the “utm_medium=email” within the medium parameter and use the “utm_campaign=monthly_newsletters” within the campaign parameter.

Then, for all Facebook posts, you’ll at all times use “utm_medium=social” within the medium parameter and “utm_source=facebook” within the source parameter. Same for paid ads: You’ll at all times go for “utm_medium=cpc” within the medium parameter and “utm_source=google” within the source parameter.

Through the use of the identical UTM parameters for similar campaigns, you may be certain that all data is accurate and straightforward to investigate when it’s time to calculate your ROI and put together marketing reports. This means that you can make data-driven decisions about which campaigns are only.

2. Capitalize your UTM codes rigorously, or by no means.

UTM codes are case-sensitive, so persist with either all lowercase or uppercase. Lower case is less complicated to recollect, because that way you don’t need to ponder whether only the primary letter or the entire parameter is capitalized.

It’s not only useful for remembering your UTM tags easily. Having a standardized way of tagging your links makes it much easier to review and analyze your overall marketing efforts.

Plus, you’ll avoid annoying discrepancies in your website analytics. Inconsistent capitalization can create duplicate entries or split data across different channels, making your data difficult to investigate.

With consistent capitalization, you may more accurately monitor and analyze the performance of your UTM-tagged links, improving reporting across all campaigns and channels.

3. Keep names short but descriptive.

When creating UTM parameters, make the names short but descriptive. That way, your UTM codes are easier to read and remember. In addition they take up less space in blog posts and social media updates, ultimately making the links look clean, attractive, and skilled.

But an important profit is which you can avoid any confusion or mix-ups between campaigns with similar names. Clear and concise UTM codes could make it easier to distinguish between similar campaigns, which is very critical in case your team runs a big volume. You actually need to be specific along with your parameters so your tags clearly state what you are tracking and where.

For example, as an example you are launching a recent ebook as a part of an email marketing campaign. A brief but descriptive UTM code for this campaign might seem like this:


In this instance, we now have used short, but meaningful names as UTM parameters. You may’t possibly get confused — unless you’re launching two ebooks at the identical time. (By which case, you would possibly differentiate your UTM parameters with each book’s name!)

4. Keep a running list of your UTM links in an accessible location.

Creating one more spreadsheet may make you cringe, but hunting down a wide range of UTM-tracked links is what’s sure to present you a headache. Keep a listing of your UTM links so everyone in your team knows which tagged links currently exist.

I like to recommend maintaining your list on a cloud-based platform resembling Google Sheets (versus keeping it in an area Excel file), then splitting the links by campaign or platform. That way, it’s easier to see all your links depending on your chosen categorization.

Having a running list may also prevent your team from creating duplicate UTM codes for a similar campaign, which might skew your analytics data and create unnecessary confusion. With a running list, everyone in your team could have a straightforward reference point to make sure they’re using correct UTM codes for brand new campaigns.

You’ll also find a way to administer and maintain the codes themselves, which is critical when campaigns are modified or discontinued. In your spreadsheet, you may easily update, modify, or delete UTM tracking codes as needed.

5. Connect UTM tracking codes to your CRM or marketing tool.

Adding your UTM tracking URLs to your CRM or marketing tool is crucial. (If you happen to’re undecided of what that may seem like, here’s an example of how to do it in HubSpot.) By doing so, you’ll find a way to raised understand the shopper journey, accurately attribute sales and conversions, and make decisions based on data.

Taking this step may feel unnecessary, but linking your UTM codes to your CRM will permit you to higher track the shopper journey from first-touch to conversion. By tracking which campaigns and channels drive probably the most website traffic, you gain a greater understanding of which of your marketing efforts effectively reach and have interaction your audience.

Consequently, you’ll find a way to discover trends, assess performance over time, and make informed decisions based on the success of past campaigns.

Start Creating UTM Tracking URLs

Use the steps, best practices, and tools above to start out creating and using UTM tracking URLs so that you’re capable of track the performance of your marketing campaigns and content. That way, you may reliably boost your metrics and improve the ROI of your digital marketing strategy.

Editor’s note: This post was originally published in September 2013 and has been updated for comprehensiveness.


Please enter your comment!
Please enter your name here

Share post:




We don’t spam! Read our privacy policy for more info.


More like this

2020 Q2 report: domains increase by 3.3 million (up 0.9%)

VeriSign, Inc. (NASDAQ: VRSN) today announced that the second...

Universities CEOs Attended the Most

Having a good education is one of the first...

Live domain auction grosses $2.2 million

Seven figure sale of holiday.com highlights auction. Last week’s Right...

Mike Mann with Alex Pires and Krista Gable (video)

Mike Mann with Alex Pires and Krista Gable (video)