Website Tools

UTM Parameters How to Track Exactly Where Your Visitors Come From

Your newsletter, Instagram bio and WhatsApp broadcast all send visitors, but analytics may lump them together. UTM tags tell you which one really works.

Quick answer: add utm_source, utm_medium and utm_campaign to links you share outside your site, such as emails, social posts and ads. Google Analytics then shows exactly which link brought each visit. Build tagged links with the UTM Builder.

In this article
  1. What UTM parameters are
  2. The five parameters
  3. How to build a tagged link
  4. Naming rules that keep reports clean
  5. Where to use UTM links
  6. Mistakes to avoid
  7. Campaign IDs and paid platforms
  8. Reading the results in GA4

What UTM parameters are

UTM parameters are tags added to the end of a link, such as ?utm_source=newsletter&utm_medium=email&utm_campaign=eid_sale. When someone clicks the link, analytics tools like Google Analytics 4 record those values, so you can see visits, sign-ups and sales from each source.

UTM Link BuilderBuild tracking links with utm_source, utm_medium and utm_campaign for Google Analytics 4 and other tools. Keeps existing parameters and tidies values automatically.
Open the free tool

The five parameters

ParameterAnswersExample
utm_sourceWhich site or list?newsletter, instagram, facebook
utm_mediumWhat type of channel?email, social, cpc, qr
utm_campaignWhich promotion?eid_sale, spring_launch
utm_termWhich keyword? (paid search)running_shoes
utm_contentWhich version or link?header_button, video_ad_b

Source, medium and campaign are the essentials; term and content are optional.

  1. Open the UTM Builder.
  2. Paste the page address, existing parameters and #fragments are kept.
  3. Fill in source, medium and campaign (plus term and content if useful).
  4. Keep “tidy” on to lowercase values and turn spaces into underscores.
  5. Copy the link, or turn it into a QR code with the QR Code Generator.

Naming rules that keep reports clean

  • Lowercase everything. “Facebook” and “facebook” appear as two sources.
  • Use one word per idea: always “email”, never sometimes “e-mail” or “newsletter” as a medium.
  • Use GA4’s standard mediums (email, social, cpc, referral, display) so traffic lands in the right default channel groups.
  • Write a shared naming sheet if more than one person creates links.
  • Email newsletters and WhatsApp broadcasts.
  • Social media bios and posts.
  • Printed flyers and posters (via QR codes).
  • Paid ads on platforms that do not tag links automatically.
  • Partner and influencer links, give each partner their own source or content value.

Mistakes to avoid

  • Tagging internal links on your own site, it overwrites the visitor’s original source.
  • Putting personal data in tags, UTM values are visible to anyone and stored in analytics.
  • Forgetting to test: click the link and check GA4’s real-time report.

Campaign IDs and paid platforms

GA4 also supports utm_id, a campaign ID used when you import cost data. Google Ads tags links automatically with gclid when auto-tagging is on, so you normally do not add UTM tags to those ads. Meta, TikTok and other ad platforms offer URL parameter settings where you can add UTM values once for every ad in a campaign.

Reading the results in GA4

In Google Analytics 4, open Reports → Acquisition → Traffic acquisition and choose “Session source / medium” or “Session campaign”. Compare not just visits but conversions, the channel that sends fewer visitors sometimes sends more buyers. To inspect any tagged link, paste it into the URL Parser.

Seeing your UTM results in Google Analytics 4

Once your tagged links from the UTM Link Builder are live, Google Analytics groups visits by the values you chose.

  1. Check it works. Open one of your tagged links yourself, then go to Reports and then Realtime. Within a minute you should see your source and campaign appear.
  2. See every source. Go to Reports, then Acquisition, then Traffic acquisition. Click the dropdown above the first column and choose Session source and medium. Your values, such as newsletter with email or instagram with social, appear as separate rows.
  3. Compare campaigns. In the same report, change the dimension to Session campaign to see each utm_campaign side by side, with users, engagement and conversions.
  4. Go deeper. Click the plus next to the dimension to add a second one, such as Landing page, to see which page each campaign sent people to.

Common reasons the data looks wrong

  • Standard reports can take 24 to 48 hours to fill in. Realtime is instant.
  • Values are case sensitive, so "Instagram" and "instagram" show as two rows. Use lowercase everywhere.
  • Never add UTM tags to links inside your own website. They restart the session and hide where the visitor really came from.
  • Link shorteners keep the tags, but check the final address once before sharing it widely.

Frequently asked questions

What are UTM parameters?

Tags added to a link that tell analytics tools where a visitor came from.

Which UTM tags are required?

utm_source, utm_medium and utm_campaign are the main ones.

Should I use UTM tags on internal links?

No. They can overwrite the real source of a visit.

Do UTM tags affect SEO?

Not directly, but use canonical tags so tagged URLs are not indexed separately.

Should UTM values be lowercase?

Yes. Analytics treats Facebook and facebook as different sources.

Should I use UTM tags on internal links

No. Tags on links inside your own site restart the session and make your reports wrong.

Where do I see UTM data in Google Analytics 4

Open Reports, Acquisition, Traffic acquisition and switch the dimension to session source, medium or campaign.

UTM Link BuilderBuild tracking links with utm_source, utm_medium and utm_campaign for Google Analytics 4 and other tools. Keeps existing parameters and tidies values automatically.
Open the free tool
Keep reading

Related articles

All articles
Web

The Anatomy of a URL, Every Part Explained

Web addresses look like random strings, but every part has a job. Understanding them helps with SEO, analytics, debugging, and spotting scam links.

3 min read
Web

QR Codes for Business, Sizes, Printing Tips, Wi-Fi Codes and Safety

A QR code on a menu, flyer or shop counter saves typing and connects print to your website. Done badly, it simply does not scan. Here is how to get it right.

3 min read
Dev

URL Encoding Explained, Why Spaces Become %20

Paste a link with spaces, “&” or Urdu text and it can break. URL encoding fixes this by turning special characters into safe % codes.

3 min read