- Date
What is a UTM Code? Definition, Parameters, and Campaign Tracking Examples
A UTM code is a campaign tracking parameter added to a URL so analytics tools can identify where a visit came from. UTM stands for Urchin Tracking Module, an older analytics naming convention that remains widely used.
UTM codes are essential when you control the link. They help separate email, paid ads, social posts, affiliates, partner links, QR codes, and campaigns that might otherwise appear as direct or referral traffic.
The five UTM parameters
Common UTM parameters include:
| Parameter | Meaning | Example |
|---|---|---|
| utm_source | The source sending traffic | google, newsletter, linkedin |
| utm_medium | The channel or type of traffic | cpc, email, social |
| utm_campaign | The campaign name | spring_launch |
| utm_term | Paid keyword or audience term | privacy_analytics |
| utm_content | Creative, placement, or link variant | hero_button |
The first three are the most commonly used. The last two add extra detail when needed.
UTM code example
https://swetrix.com/signup?utm_source=newsletter&utm_medium=email&utm_campaign=product_launch&utm_content=footer_cta
This URL tells analytics that the visit came from a newsletter email for a product launch campaign, specifically from the footer CTA.
UTM best practices
Use lowercase values. Keep naming consistent. Do not tag internal links because that can overwrite the original source. Use clear source and medium values. Document your naming system so every campaign uses the same structure.
Swetrix reads campaign parameters and helps you connect UTM-tagged visits with pages, goals, funnels, custom events, and revenue.
Related terms: traffic channel, attribution model, direct traffic, and conversion rate.
The web analytics your site deserves.
Tired of bloated dashboards, privacy concerns, and data you can't trust? Switch to Swetrix and get simple, powerful analytics that respects your users.