Generate UTM Codes to Track Campaigns in Google Analytics
Generate UTM tracking links instantly — and for free! Just enter your campaign details below, click Build URL, and copy your custom tracking link to use in your marketing campaigns.
*UTMs are case-sensitive. This means that utm_source=facebook is different from utm_source=Facebook. To prevent your data from being split into different categories, it is best practice to use a consistent case, typically all lowercase, for all your UTM parameters.
Adding UTM parameters to your URLs is an effective way to measure the success of your marketing campaigns. By appending these parameters to your links, you can gather insights on which campaigns are driving traffic and conversions, helping you make more informed decisions for future marketing efforts.
For example, if you’re launching a new product, you can use UTM parameters to track which traffic sources (like email, paid ads, or social media) are bringing the most potential customers. You’ll be able to see exactly where the traffic is coming from and which channels are performing best.
When someone clicks a link with UTM parameters, the data is sent to your Google Analytics account, allowing you to track the performance in real-time. This means you can adjust your campaigns to maximize results.
Here are the five key UTM parameters you can add to your URLs:
utm_source: This identifies the platform or source sending traffic to your site. For example, it could be the name of the ad platform or the referring website (e.g., utm_source=facebook, utm_source=google).
utm_medium: This specifies the type of marketing medium. Examples could include paid search (cpc), display ads, or email newsletters (e.g., utm_medium=cpc, utm_medium=email).
utm_campaign: The name of your campaign, such as a product launch or promotion. This ties all your campaign efforts together (e.g., utm_campaign=product-launch, utm_campaign=winter-sale).
utm_term: Used for tracking paid search keywords. If you’re running keyword-based ads, this helps you see which specific keywords brought in traffic (e.g., utm_term=running-shoes, utm_term=organic-skin-care).
utm_content: Helps differentiate content or links in the same ad or campaign. For instance, if you have two call-to-action buttons in the same email or a variation of an ad, you can use this to track which version performs better (e.g., utm_content=cta-button1, utm_content=video-ad).
Here’s an example of how you would structure a URL for a new product launch:
If you used these parameters, your custom campaign URL would be:
https://www.example.com/?utm_source=facebok&utm_medium=cpc&utm_campaign=product-launch
The three most important UTM parameters to include are:
These three will give you the core insights you need to understand how your campaigns are performing. While utm_term and utm_content are optional, they provide additional insights, especially for paid ads or A/B testing.
You can manually add UTM parameters to your URLs, or you can use a URL-building tool like the one on this page. The tool automatically generates the UTM-encoded link, making it easier to keep track of your campaigns and avoiding errors.