All guides

UTM parameters: how to measure where people come from

What utm_source, utm_medium and utm_campaign are, how to add them to a link and how to hide them inside a short link so the campaign looks tidy and can be measured.

Published: 5 Sept 2026

When you put the same link into a newsletter, on Facebook and on a poster, the destination site cannot tell who came from where. UTM parameters are the agreed way to tell it: pairs of utm_...=value are appended to the address and the analytics sorts them out.

Three parameters that are enough

ParameterMeaningExample
utm_sourcewhere the visit came fromnewsletter, facebook, poster
utm_mediumthe type of channelemail, social, print, qr
utm_campaignthe campaign namespring-2026, store-opening

There are also utm_term (the keyword in paid search) and utm_content (to tell two links in the same medium apart, such as a button and a text link). Most campaigns manage with the first three.

A finished address looks like this:

https://example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring-2026

Rules that save trouble

A long address with parameters looks ugly in text and does not belong on a poster at all. The fix is to hide it in a short link. On skrat.im open More options and fill in source, medium and campaign. The parameters are appended to the destination and people only see skrat.im/spring.

The API accepts the same fields (utm_source, utm_medium, utm_campaign, utm_term, utm_content), so campaign links can also be generated by a script or by an AI agent over MCP.

Reading the results

The destination site’s analytics shows visits split by source and campaign. On skrat.im, under My links, each link shows clicks per day, countries, devices and the pages people came from. Comparing the two numbers also tells you how many clicks were lost on the way, for example because the destination page loads slowly.

Frequently asked questions

Do I need Google Analytics for UTM parameters to make sense?

No. Most analytics tools read UTM parameters, including Plausible, Matomo and Umami. And skrat.im counts clicks on the short link even without any analytics on the destination site.

Why should utm_source be lowercase?

Analytics tools are case-sensitive: "Facebook" and "facebook" would count as two different sources. Agree on one spelling and stick to it.

Does a long link with UTM parameters hurt click-through?

In text, yes; long addresses with parameters look untrustworthy. That is why UTM parameters are hidden inside a short link: people see skrat.im/spring, the analytics gets the full parameters.

Try it on the home page

Markdown version of this guide