Laptop with marketing campaign analytics on screen

UTM Parameters: The Complete Guide to Campaign Tracking

Every link you share online — in a newsletter, a tweet, a paid ad, or a partner site — can carry hidden tracking data that tells your analytics exactly where that traffic came from. That's what UTM parameters do.

Without UTMs, all that traffic often arrives labeled as "direct" or lumped into a generic referral. With UTMs, you can see which specific campaign, channel, and piece of content drove each visit. This guide covers everything you need to know to use them correctly.

What Are UTM Parameters?

UTM stands for Urchin Tracking Module — a naming convention originally from Urchin Software, which Google acquired to build Google Analytics. UTM parameters are query string values appended to a URL that analytics tools use to categorize incoming traffic.

A UTM-tagged URL looks like this:

https://yoursite.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=may-launch

When a visitor clicks that link, your analytics platform reads those parameters and records the visit under the corresponding campaign dimensions. The URL works exactly the same for the visitor — they see your pricing page normally. Only the analytics sees the metadata.

The 5 UTM Parameters Explained

utm_source — Where the traffic came from

The source identifies the platform or website sending the traffic. Examples: newsletter, twitter, google, facebook, partner-blog. Always fill this in — it's the most important parameter.

utm_medium — The marketing channel type

The medium categorizes the type of traffic. Examples: email, cpc (cost-per-click / paid search), social, affiliate, banner. This helps you group sources by channel across campaigns.

utm_campaign — The specific campaign name

The campaign identifies which marketing initiative the link belongs to. Examples: may-launch, black-friday-2026, onboarding-sequence. Keep names consistent across all links in the same campaign so the data aggregates correctly.

utm_term — The paid search keyword (optional)

Used primarily for paid search ads to record which keyword triggered the ad. Example: free-analytics-tool. Not necessary for most traffic sources — leave it blank unless you're tracking paid keywords.

utm_content — The specific link variant (optional)

Used for A/B testing different ads or links within the same campaign. Example: if you have two banner designs, tag one banner-blue and the other banner-green. This lets you compare which creative drove more clicks.

Building UTM URLs and Avoiding Common Mistakes

statpx includes a built-in UTM URL builder in the Campaigns tab — paste your destination URL, fill in the fields, and copy the tagged link. You can also build them manually by appending the parameters with & separators after a ?.

The most common UTM mistakes that corrupt your data:

statpx has built-in UTM campaign tracking — completely free

View campaign performance, source/medium breakdowns, and individual session details in the Campaigns tab. No configuration needed — UTM parameters are read automatically from every visit.

Start tracking campaigns →

Reading UTM Data in Your Analytics

In statpx, tagged traffic appears in the Campaigns tab. You'll see a breakdown by source, medium, and campaign name — along with pageview count, session count, and bounce rate for each. This lets you compare, for example, how your Twitter campaign performed versus your email newsletter for the same promotion.

A few things to look for when reading campaign data:

For a broader understanding of all the ways visitors can reach your site, read our guide on website traffic sources: direct, organic, referral, and social.

The Bottom Line

UTM parameters are the simplest way to answer "which marketing effort actually drove this traffic?" They require no code changes — just tagged links. The five parameters cover every scenario from paid ads to email newsletters to social posts. Use them consistently, avoid internal links, and keep naming conventions clean. Your campaigns tab will reward you with clear, actionable data.

Brand and product names mentioned are trademarks of their respective owners. Information is provided for reference and educational purposes; details may change.

Continue reading

Traffic Sources
How to Track Affiliate and Partner Traffic in Your Analytics
Traffic Sources
Direct Traffic Explained: What It Is and Why It's Often Misleading
Traffic Sources
Social Media Traffic Analytics: How to Measure What's Actually Working
Analytics by statpx