UTM Parameters: Know Exactly Where Your Traffic Comes From
UTM parameters are like labels on your website visitors, telling you which marketing campaign brought them. They're added to URLs in ads or emails to measure channel effectiveness. The footgun is inconsistent naming, which splits data and ruins analysis.
THE MENTAL MODEL: UTM parameters are a set of five standard query parameters you add to a URL to track where your users are coming from. They don't change the page the user sees, but they provide crucial context to your analytics tools. Think of it like sending a package: the address gets it to the destination, but the return address and shipping label tell you who sent it and why. UTMs are that shipping label for your website traffic.
HOW IT WORKS: When a user clicks a URL containing UTM parameters (like ?utm_source=newsletter&utm_medium=email), their browser sends these parameters along with the page request. Analytics software on the website, such as Google Analytics, automatically detects and records these parameters. It then attributes that user's session, and subsequent actions, to the campaign specified in the tags. This attribution persists for a set period, known as the attribution window. The five standard parameters are utm_source (the referrer, e.g., google), utm_medium (the marketing medium, e.g., cpc), utm_campaign (the specific campaign, e.g., spring_sale), utm_term (for paid search keywords), and utm_content (to differentiate ads pointing to the same URL).
WHEN TO USE IT: Use UTM parameters whenever you are driving traffic to your site from an external source and want to measure its effectiveness. This is essential for digital marketing. Three key places are: first, in email marketing campaigns to see which newsletters drive traffic; second, in social media posts (both organic and paid) to compare platform performance; and third, in paid advertising links (like Google Ads or Facebook Ads) to track return on ad spend.
WHEN NOT TO USE IT: The primary rule is to never use UTM parameters on internal links within your own website. For example, linking from your homepage to your pricing page with UTM tags is a mistake. Doing so will overwrite the original source of the traffic. If a user arrived from an organic search and then clicks an internal UTM-tagged link, your analytics will incorrectly report that the user's session originated from your own internal campaign, losing the valuable original attribution data.
ONE CANONICAL EXAMPLE: A company runs a "Summer Sale" campaign. They send an email newsletter and post on Facebook. The email link is https://example.com?utm_source=newsletter&utm_medium=email&utm_campaign=summer_sale. The Facebook link is https://example.com?utm_source=facebook&utm_medium=social&utm_campaign=summer_sale. In their analytics, they can now see exactly how many visitors, and subsequent sales, came from the "newsletter" source versus the "facebook" source, all under the umbrella of the "summer_sale" campaign. This allows them to compare the effectiveness of their email and social media channels directly.
Read the original → en.wikipedia.org
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.