The five UTM parameters
Each one is utm_ followed by its name, and answers one question about the visit.
sourceis where the visit came from, such as newsletter or linkedin.mediumis the type of channel, such as email, social, or cpc.campaignis the campaign the link belongs to, such as autumn-guide.contentis optional, and tells apart two links in the same campaign, such as a footer link and a button.termis 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.
example.co.uk/guides/oak-care/?utm_source=newsletter01&utm_medium=email02&utm_campaign=autumn-guide03- 01
sourcenewsletterWhere the visit came from - 02
mediumemailThe kind of channel - 03
campaignautumn-guideWhich campaign
How our builder adds the tags
Our free link builder runs in your browser, and these are the lines that put each link together.
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 firstThe 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.
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 caseThe 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.

