How it works
UTM parameters are tags at the end of a link. Analytics tools read them to tell which source, medium and campaign sent a visit. This builder takes your URL, adds utm_source, utm_medium and utm_campaign (all required), and adds utm_term and utm_content if you fill them in. Query parameters already on the link stay exactly as typed, and so does the #fragment. Each value is trimmed and percent-encoded, so spaces, ampersands and accented letters cannot break the link.
tagged URL = URL up to ? + existing query + utm_ parameters + #fragment
utm value = encodeURIComponent(trimmed value)
Worked example
Example values, not recommendations: the link https://example.com/p?a=1&b=2#sec with the source newsletter, the medium email and the campaign spring_sale.
- 1Set the #fragment asidehttps://example.com/p?a=1&b=2#sec = #sec
- 2Keep the existing querya=1&b=2 = a=1&b=2
- 3Add the utm valuesutm_source=newsletter&utm_medium=email&utm_campaign=spring_sale = added after the query
- 4Put the #fragment backlink + query + utm values + #sec = https://example.com/p?a=1&b=2&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale#sec
The warnings never block the link. They point out choices you may want to change before you share it. To see whether a tagged campaign beat another, use the statistical significance calculator.