What UTM parameters do
UTM parameters are tags added to the end of a link, such as ?utm_source=newsletter&utm_medium=email. When someone follows the link, analytics tools such as Google Analytics read the tags and credit the visit to the right source, medium and campaign instead of leaving it to guesswork.
There are five standard parameters. Source, medium and campaign belong on every link; term and content are optional.
- utm_source: where the traffic comes from, such as google, linkedin or newsletter.
- utm_medium: the kind of channel, such as cpc, email or social.
- utm_campaign: the campaign, promotion or launch the link belongs to.
- utm_term: the paid search keyword, mostly for search ads.
- utm_content: which ad, button or link was clicked, when several lead to the same page.
How a tagged link is built
The parameters go after a question mark at the end of the address, joined with ampersands. If the address already has a query, the tags are added to it. Anything after a # stays at the very end, because a query placed after it would not be read as one. Values are percent-encoded, so spaces and symbols cannot break the link.
Page: https://example.com/pricing?plan=team#faq Source: newsletter Medium: email Campaign: Spring Launch https://example.com/pricing?plan=team&utm_source=newsletter&utm_medium=email&utm_campaign=spring_launch#faq
Naming conventions for teams
In reports, Email, email and e-mail can show up as three separate values, and one campaign ends up split across several rows. Agree on lowercase values, one separator for spaces and a fixed list of sources and mediums before anyone builds a link.
Keep the agreed names in one shared naming sheet, with a row for every link you build: the page, the five values and the final URL. For agency work, a sheet per client stops two people from tagging the same campaign two different ways.
- Write every value in lowercase.
- Pick one separator, underscore or hyphen, and stick to it.
- Keep a fixed list of sources and mediums, and add to it on purpose.
- Do not tag links between pages of your own site; the tags overwrite where the visitor really came from.