What are UTM Codes?
Urchin Tracking Module (UTM) codes, also known as UTM parameters, are simple, customizable text-based tags that allow SaaS marketing agencies to measure the performance of marketing campaigns across traffic sources with greater accuracy and resolution.
UTM codes can be added to the end of any hyperlink you publish on any channel as part of your digital marketing efforts. When someone clicks on a link to your website that contains UTM codes, the information from those tags is sent back to your Google Analytics for tracking and attributed to the browser’s website session.
UTM codes can be customized by marketing teams to carry information about the specific marketing channel, platform, or campaign where the link will be published. This allows marketers to know exactly which links are generating the most referral traffic to their landing pages.
How Do UTM Codes Work?
Marketers add UTM codes to the hyperlinks they publish so they can correctly attribute clicks and website traffic to the correct marketing channel, traffic source, campaign, keyword, or content element.
Here’s an example of an ordinary URL that links to our SaaS SEO agency service page:
Now, here’s the same URL with three UTM parameters attached to the end of it (highlighted in yellow):
When a user clicks on either of these links, they’ll be directed to our SaaS SEO agency service page. But when the user clicks the link that contains the UTM codes, our website analytics tool (Google Analytics) captures the information from those parameters and attributes their visit to the indicated source, medium, and marketing campaign.
In this example, any traffic coming to the designated URL through this link will be attributed to LinkedIn (the source), Social Media (the medium, or channel), and a marketing campaign we’re calling SEO Outreach.
Next, we’ll show you the five UTM codes supported by Google Analytics and how they can be used to understand where your traffic is coming from and why.
The Five UTM Codes Explained
Google Analytics supports five different UTM parameters that marketers can implement to measure the origins of their referral traffic more accurately.
When adding UTM codes to a hyperlink, the utm_source and utm_medium parameters must always be included. Otherwise, marketers may include as many UTM parameters as they wish, and in any order they choose.
The five UTM parameters are:
1. Source
Tag: utm_source
Overview: The Source parameter should indicate the name of the platform where the link will be published, allowing marketers to determine which platforms are driving the most traffic to their landing pages.
Examples:
- utm_source=twitter
- utm_source=facebook
- utm_source=google
2. Medium
Tag: utm_medium
Overview: The Medium parameter should indicate the name of the marketing channel or medium where the tracked link will be featured. This will allow Google Analytics to measure traffic by channel and determine which ones are performing the best.
Examples:
- utm_medium=ppc
- utm_medium=socialmedia
- utm_medium=guestblog
3. Campaign
Tag: utm_campaign
Overview: The Campaign parameter should be used when a link is being published as part of a specific campaign or promotion. This allows marketers to attribute website traffic to specific marketing campaigns and see which ones are performing the best.
Examples:
- utm_campaign=blackfriday2022
- utm_campaign=backtoschool
- utm_campaign=productlaunch