consolelog.tools

UTM Campaign URL Builder

Build consistent campaign-tracking URLs with a smart slugifier that keeps GA4 from splitting 'Facebook' and 'facebook' into two sources. Tag a single URL, decode an existing one back into fields, or generate a full sources × mediums × creatives matrix at once — then export the lot to CSV, TSV, JSON, or a URL list for your campaign spreadsheet.

About this ToolHow it works, benefits & use cases

The UTM Parameter Generator assembles correctly-encoded campaign tracking URLs for Google Analytics as you type. Enter a destination URL plus the three required parameters — source, medium, and campaign — and the live preview builds the full URL instantly, lowercasing values and converting spaces to underscores so they stay consistent across reports. Optional utm_term and utm_content fields cover paid-search keywords and A/B-test creative variants. Quick-preset chips fill in common source/medium pairs (Facebook Organic, Google Ads, Email Newsletter, Affiliate, and more), and a medium dropdown offers the standard channel types (cpc, social, email, referral, display, and others). Inline validation flags missing required fields and invalid URLs as errors, and warns about spaces or overly long values. The preview shows a parameter breakdown and a "Test link" button, the result is captured in a shareable URL, and a best-practices list and parameter reference round out the page.

How to Use

  1. 1Enter your destination Website URL (it must be a valid absolute URL, e.g. https://example.com/page).
  2. 2Optionally click a Quick preset chip to set the source and medium together, or fill them in manually.
  3. 3Fill the required Campaign Source, Campaign Medium (from the dropdown), and Campaign Name fields.
  4. 4Add Campaign Term and Campaign Content if you are tracking paid keywords or A/B variants.
  5. 5Read the Live preview as it updates, use "Test link" to open it, then copy the URL or hit Share to save the configuration.

Key Benefits

  • Live preview builds the tagged URL as you type — no separate generate step needed
  • Automatically lowercases values and replaces spaces with underscores for clean, consistent tags
  • Quick presets for Facebook, Twitter, LinkedIn, Google Ads, email, display, and affiliate channels
  • Standard medium dropdown (cpc, ppc, social, email, referral, display, organic, sms, qr, and more)
  • Inline error and warning messages for missing fields, invalid URLs, and spaces in values
  • Parameter breakdown plus a "Test link" to open the tagged URL in a new tab
  • Shareable URL captures the whole configuration for handoff or reuse

Common Use Cases

  • Tagging a newsletter link so email-driven traffic shows up correctly in GA4
  • Building distinct URLs for Facebook organic posts versus paid Facebook ads
  • Differentiating two banner creatives in an A/B test with utm_content
  • Tracking paid-search keywords with utm_term alongside a Google Ads source
  • Sharing a ready-to-use UTM configuration with a teammate via a single link

Paste into your ad, email, or social post

https://example.com/landing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale

Parameters

utm_sourcenewsletter
utm_mediumemail
utm_campaignspring_sale
Consistent and ready
Open in Google’s Campaign URL Builder

Destination

Quick presets

Parameters

Decode an existing UTM URL

Consistency is the whole game

GA4 treats UTM values as case-sensitive, so Facebook, facebook, and FaceBook show up as three different sources and shred your reports. This builder slugifies every value the same way (lowercase + underscores) so a campaign stays one row in your analytics. The campaign matrix takes that further: define your sources, mediums, and creatives once and get every combination tagged identically — then export the set straight to your campaign spreadsheet.

The five UTM parameters

  • utm_source — where it comes from (newsletter, google, facebook).
  • utm_medium — the channel type (email, cpc, social).
  • utm_campaign — the campaign name (spring_sale).
  • utm_content — which creative/link (header_cta) — great for A/B tests.
  • utm_term — paid-search keyword.

Never put UTMs on internal links — it resets the original attribution in GA.

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools