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 casesTap to collapse
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
- 1Enter your destination Website URL (it must be a valid absolute URL, e.g. https://example.com/page).
- 2Optionally click a Quick preset chip to set the source and medium together, or fill them in manually.
- 3Fill the required Campaign Source, Campaign Medium (from the dropdown), and Campaign Name fields.
- 4Add Campaign Term and Campaign Content if you are tracking paid keywords or A/B variants.
- 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_sourcenewsletterutm_mediumemailutm_campaignspring_saleDestination
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
- URL Encoder/DecoderEncode and decode URL strings
- Query String BuilderBuild and encode URL query strings
- Google Analytics Event BuilderBuild valid GA4 events from Google’s recommended-event catalog with auto-filled parameter schemas, a structured items[] editor, live validation against GA4’s real rules, and gtag/dataLayer/React/Measurement Protocol output
- Markdown Link CheckerCheck for broken links in Markdown files
- Sitemap Priority CalculatorPaste a list of URLs and get a complete XML sitemap with priorities from a transparent, tunable model — each URL auto-classified by type & depth, with a per-row score breakdown and priority distribution analysis
- llms.txt GeneratorBuild a spec-compliant llms.txt (and llms-full.txt) so AI crawlers like ChatGPT, Claude & Perplexity understand your site
utm_source, utm_medium, and utm_campaign are required and the live preview will not appear until all three (plus a valid URL) are filled. utm_term and utm_content are optional — use utm_term for paid-search keywords and utm_content to distinguish similar links or creatives for A/B testing.
Yes, deliberately. Each value is lowercased and any spaces are replaced with underscores when the URL is built — so "Summer Sale" becomes summer_sale. This keeps tags consistent because GA4 treats differently-cased or differently-spaced values as separate entries. A warning appears if you type spaces so you know the conversion is happening.

