How to Build UTM Links for Campaign Tracking

By 2 min read

UTM parameters are tags added to the end of a link so your analytics tool can tell where a visit came from. The three core tags are utm_source (who sent the visitor), utm_medium (the type of channel) and utm_campaign (which campaign). A link in your email newsletter might end in ?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale.

The five UTM parameters

Parameter What it records Example
utm_source The site or sender newsletter, google, facebook
utm_medium The channel type email, cpc, social
utm_campaign The campaign name spring_sale
utm_term Paid keyword (optional) running_shoes
utm_content Which link or ad version (optional) header-link
  1. Start with the page URL: https://example.com/pricing/
  2. Add the tags after a question mark, joined with ampersands.

Result:

https://example.com/pricing/?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=header-link

The UTM link builder adds the tags without breaking any parameters the URL already has. The UTM campaign URL builder is a quick option for the three core tags.

Naming rules that keep reports clean

  • Use lowercase. Analytics tools treat "Email" and "email" as different values.
  • Pick one separator and stick to it, such as underscores.
  • Keep a shared list of sources and mediums so the team uses the same names.
  • Avoid spaces. If you must use special characters, they need URL encoding; the URL encoder and decoder handles this.

To check what a tagged link records, paste it into the UTM parameter decoder, which lists each tag and its value.

Mistakes to avoid

  • Tagging internal links on your own site. This can overwrite the original source of the visit in analytics.
  • Mixing up source and medium, for example source=email.
  • Sharing tagged links as the page's main URL. Search engines should see the clean address. The canonical URL builder strips tags and fragments to give the clean version for canonical tags.

Where UTM data shows up

In Google Analytics 4, campaign data appears in the acquisition reports, where you can compare sessions and conversions by source, medium and campaign.

Questions and answers

Are UTM parameters case sensitive?

Yes, in most analytics tools. Use lowercase consistently.

Do UTM parameters affect SEO?

Not if search engines see the clean URL. Use a canonical tag that points to the page without UTM tags.

More from the blog