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:

ParameterMeaningExample
utm_sourceThe source sending trafficgoogle, newsletter, linkedin
utm_mediumThe channel or type of trafficcpc, email, social
utm_campaignThe campaign namespring_launch
utm_termPaid keyword or audience termprivacy_analytics
utm_contentCreative, placement, or link varianthero_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.

Cancel anytime
5 minute setup
GDPR compliant