How to Build UTM Tracking URLs for Google Analytics 4 (GA4) Without Breaking Attribution

How to Build UTM Tracking URLs for Google Analytics 4 (GA4) Without Breaking Attribution

Master all 5 UTM parameters so your email newsletters, social links, and ad campaigns stop showing up as Direct traffic.



When someone clicks a link to your website from an email newsletter, PDF, WhatsApp message, or social bio without tracking parameters, Google Analytics 4 (GA4) often misclassifies that visit as (direct) / (none). Adding standard UTM parameters tells GA4 the exact source, medium, and campaign that drove every click. You can generate properly encoded tracking URLs in seconds with our free UTM Link Builder.

The 5 Standard UTM Parameters Explained

ParameterRequired?What It TracksExamples
utm_sourceYesThe specific platform or referer sending trafficgoogle, newsletter, linkedin, reddit
utm_mediumYesThe marketing channel categorycpc, email, social, referral
utm_campaignYesThe promotion, product launch, or campaign nameblack_friday_2026, weekly_digest
utm_termOptionalPaid search keyword or audience segmentstripe+fee+calculator
utm_contentOptionalDifferentiates A/B ad creatives or button linksheader_cta, footer_link

3 Golden Rules for Clean UTM Tagging

  1. Always Use Lowercase: GA4 is case-sensitive—utm_source=LinkedIn and utm_source=linkedin will split into two separate rows in your reports.
  2. Use Underscores or Hyphens Instead of Spaces: Spaces turn into %20 in URLs.
  3. Never Use UTMs on Internal Website Links: Clicking an internal link with UTM tags overwrites the visitor’s original traffic source in Google Analytics!

Build and inspect your marketing URLs using our UTM Builder, URL Parser, URL Encoder, and QR Code Generator.

Frequently asked questions

Why should I never put UTM parameters on internal links on my own site?

When a visitor clicks an internal link containing UTM tags, Google Analytics ends their original session and starts a new session attributed to that internal UTM—erasing whether they originally came from Google Search or a paid ad.

Do UTM parameters affect Google SEO rankings?

No. Google Search understands UTM query parameters, and as long as your page has a self-referencing canonical tag (which 100FreeTools automatically includes), UTM links do not cause duplicate content issues.

Cookie
We care about your data and would love to use cookies to improve your experience.