Google Analytics UTM Campaign URL Builder

Build standardized Google Analytics 4 (GA4) tracking URLs. Add source, medium, campaign, keyword term, and content tags with quick channel presets and automatic sanitization.

Quick Channel Presets:
Generated Campaign URL:
https://example.com/landing-page?utm_source=google&utm_medium=cpc&utm_campaign=summer_sale

Google Analytics 4 (GA4) Campaign Tagging Architecture

Urchin Tracking Module (UTM) parameters are five query string tokens appended to URLs that instruct analytics platforms (Google Analytics 4, Mixpanel, Adobe Analytics) exactly which marketing channel, ad variation, or newsletter link generated a session and conversion.

The Five Standard UTM Parameters

  • utm_source (Required): Identifies the platform or referrer sending traffic (e.g. google, facebook, newsletter, linkedin).
  • utm_medium (Required): Identifies the high-level marketing channel type (e.g. cpc, email, paid_social, referral, organic_social).
  • utm_campaign (Recommended): Identifies the specific marketing initiative, promo, or product launch (e.g. black_friday_2026).
  • utm_term (Optional): Used primarily in paid search (Google Ads, Bing Ads) to record targeted keyword terms.
  • utm_content (Optional): Differentiates distinct links pointing to the same destination on one page (e.g. button_cta vs footer_text_link) for A/B split testing.

Critical UTM Best Practices for Clean Analytics

  1. Strict Lowercase: Google Analytics treats utm_source=Google and utm_source=google as two separate traffic sources. Always normalize tags to lowercase.
  2. Use Underscores or Hyphens: Avoid raw spaces in parameter values; use underscores (summer_sale) or hyphens to prevent ugly %20 URL encoding artifacts.
  3. Never Tag Internal Links: Do not place UTM tags on internal links within your website. Doing so overrides the original visitor attribution and resets session analytics.

Synergies with Link & Redirect Tools

Ensure marketing campaigns retain tracking equity across routing hops:

  • Preserve Query Strings: Verify that server 301 redirects do not strip UTM parameters using our Redirect Chain Checker.
  • Canonical URL Safety: Ensure campaign landing pages reference clean canonical targets with our Canonical URL Checker.
  • Character Encoding: Percent-encode specialized query characters using our URL Encoder / Decoder.

Frequently Asked Questions

Do UTM parameters hurt SEO or create duplicate content?

No, provided your destination page implements a self-referencing canonical tag pointing to the clean apex URL without parameters. Googlebot automatically strips standard UTM query strings when indexing canonical URLs.

What is the difference between utm_source and utm_medium?

utm_source answers "Where did the visitor come from?" (e.g. Google, Facebook, Substack). utm_medium answers "How did they get here?" (e.g. CPC ad, organic post, email newsletter).

Why is utm_content useful for A/B testing?

If your email newsletter features two links to the same landing page (one hero banner and one bottom text link), setting utm_content=hero_banner and utm_content=footer_link reveals which creative drove more sales.