elefcode
← All guides

Web & APIs · 4 min read

UTM Parameters: A Practical Guide to Campaign Tracking

If you run any marketing — emails, ads, social posts — UTM parameters are how you find out what actually drives traffic. They are simple tags added to a URL that your analytics reads to attribute each visit to a source.

This guide explains each parameter and how to avoid the messy reporting that trips up most teams.

Try it yourself with the related tool.

Build a campaign URL

Advertisement

What the parameters mean

The three you should always set are utm_source (where the traffic comes from, like newsletter or google), utm_medium (the channel type, like email or cpc), and utm_campaign (the specific promotion). Two optional ones, utm_term and utm_content, cover paid keywords and A/B test variants.

Consistency is everything

UTM values are case-sensitive, so Email and email show up as two separate sources and split your data. Decide on a convention — lowercase with hyphens or underscores is common — and stick to it across every link. A tiny inconsistency compounds into unreliable reports.

Where not to use them

Only tag external links pointing to your site. Adding UTM parameters to internal links (navigation between your own pages) restarts the attribution and corrupts your analytics, making it look like users came from a campaign when they were already on the site.

Do they affect SEO?

UTM parameters do not help or hurt your search rankings on external campaign links. Just keep them off internal links, and use a canonical tag so search engines treat the clean URL as the primary one.

Related guides