CLIFF Lin

MARKETING SUPERSTAR

GROWTH ARCHITECT

FUNNEL ENGINEER

BUSINESS GURU

TECH VISIONARY

CLIFF Lin
CLIFF Lin

MARKETING SUPERSTAR

GROWTH ARCHITECT

FUNNEL ENGINEER

BUSINESS GURU

TECH VISIONARY

Track Digital Marketing Results Through UTM Codes

April 15, 2016 Marketing
Track Digital Marketing Results Through UTM Codes

Send the same offer out in a newsletter, a Facebook post and a LinkedIn ad, and Google Analytics will often file the newsletter clicks under direct traffic, because many email apps don’t pass along where the visitor came from. A UTM code fixes that. It tags each link with its source, medium and campaign, down to the specific ad or version that brought the visitor in, so every channel shows up by name in your reports.

What a UTM Code Tells Google Analytics

UTM stands for Urchin Tracking Module, after Urchin, the analytics company Google bought in 2005 and turned into Google Analytics. A UTM code is a snippet of text added to the end of a URL that tells analytics tools like Google Analytics how a visitor found your site. Each one holds parameters for the source, medium, campaign, content and term. Google Analytics 4 shows those values in the Traffic acquisition report, where you can compare which marketing efforts bring in visitors.

What You Can Track With UTM Codes

Tag the links in your campaigns, whether they sit on X, on Facebook, in emails or behind QR codes, and you get much more than basic traffic counts. For each source, medium and campaign you tag, Google Analytics 4 reports sessions, new users, engaged sessions, engagement rate, average engagement time and key events (formerly called conversions).

Those numbers show how each channel performs. Say a Facebook post and a LinkedIn post promote the same campaign. UTM tracking shows which platform brought more engaged visitors and more conversions, and therefore where your budget does more. With utm_content variations, you can even see which headline or image worked better.

How to Build a UTM Code

A UTM-tagged URL is your page address plus up to five core parameters. The address is the final destination where you want users to land, for example https://www.cliffordlin.com. The parameters go after it:

  • utm_source names where the traffic comes from, such as Facebook, X, newsletter or Google.
  • utm_medium describes the marketing medium, such as social, CPC (cost per click) or email.
  • utm_campaign is the specific campaign you are running. A year-end promotion might be utm_campaign=holiday_sale.
  • utm_term is optional and is used in paid search to identify specific keywords.
  • utm_content, also optional, tells apart versions of the same ad or link, such as A/B test variants.

Be consistent with capitalization. Google Analytics treats utm_campaign=promo and utm_campaign=Promo as two different campaigns, so I would keep every value lowercase and save everyone the trouble.

What a UTM Link Looks Like

A link for a year-end Facebook offer, with every part filled in, looks like this:

https://www.cliffordlin.com?utm_source=facebook&utm_medium=social&utm_campaign=year_end_offer&utm_content=50percent_off

It sends visitors to https://www.cliffordlin.com with facebook as the source, social as the medium, year_end_offer as the campaign and 50percent_off as the content.

How to Generate UTM Links

Typing parameters by hand invites typos, so I’d use the Google Analytics Campaign URL Builder instead. The free tool takes your landing page and campaign details and returns a correctly formatted UTM link, ready to paste into your ad, social post or email.

Tag Every Link the Same Way

UTM codes take seconds to add, and they show exactly which campaigns bring people to your site. Use the same naming on every channel. Your reports will then show what drives traffic, how those visitors behave on your site and where the next marketing dollar should go.

This post was updated in October 2026 to reflect Google Analytics 4, which replaced Universal Analytics in July 2023, and Twitter’s rename to X.