UTM

UTM parameters are labels added to the end of a URL. When someone clicks the link, your analytics reads the labels and files the visit under the right source and campaign. The name stands for Urchin Tracking Module, after the tool that later became Google Analytics.

The five UTM parameters

Each one is utm_ followed by its name, and answers one question about the visit.

  • source is where the visit came from, such as newsletter or linkedin.
  • medium is the type of channel, such as email, social, or cpc.
  • campaign is the campaign the link belongs to, such as autumn-guide.
  • content is optional, and tells apart two links in the same campaign, such as a footer link and a button.
  • term is optional too, and is mostly used for the keyword in paid search.

Source, medium, and campaign are the three that most reports are built around.

How our builder adds the tags

Our free link builder runs in your browser, and these are the lines that put each link together.

  1. Our link builder
    for (const key of ["source", "medium", "campaign"]) if (!String(tags[key] || "").trim()) throw new Error("Add a source, medium and campaign name."); for (const key of ["source", "medium", "campaign", "term", "content"]) { const value = String(tags[key] || "").trim(); if (value) url.searchParams.set("utm_" + key, value); else url.searchParams.delete("utm_" + key); }
    Source, medium, and campaign come first

    The builder won't make a link without a source, a medium, and a campaign, as those are the three tags most reports rely on. It then sets each tag you've filled in and removes any you've left empty, so old tags already on a link don't carry over.

  2. The builder's form
    <label>Campaign source<input name="source" placeholder="newsletter" required /></label><label>Campaign name<input name="campaign" placeholder="spring-launch" required /></label><label>Content (optional)<input name="content" placeholder="hero-link" /></label><label>Term (optional)<input name="term" placeholder="keyword-or-audience" /></label>
    Example names in lower case

    The example values in the form are all lower case, with hyphens between words. Using the same pattern on every link keeps each channel on one row in your reports.

Naming your tags consistently

Analytics treats Email, email, and e-mail as three different mediums. That makes inconsistent naming the most common tagging problem, as it splits one channel across several rows in your reports. Agreeing a short list of names, all in lower case, keeps the data tidy. A shared sheet of agreed names, or a builder that fills them in for you, makes this easier across a team.

Keep personal details out of your tags as well. Anything in a URL can end up in analytics, server logs, and screenshots that get shared around.

What the tags can't tell you

A tag labels a visit. It can't prove the campaign caused a sale that wouldn't have happened anyway. It also only works on links you control, so recommendations and most organic search visits won't carry tags.

Avoid adding tags to links between your own pages. They can overwrite where the visit really came from, which makes your reports less accurate.

More analytics glossary terms

These analytics glossary terms explain how website visits, events, campaigns and sales are measured, and where the numbers can mislead. Each definition comes with a diagram and a practical example, so reports from Google Analytics and other tools are easier to read and question.