omnitool / Creator & SEO / UTM URL Builder

UTM Campaign Tracking URL Builder for Google Analytics 4

Build RFC 3986-encoded Google Analytics 4 (GA4) UTM tracking URLs while preserving existing query parameters, deduplicating stale UTM tags, and keeping #hash fragments at the end of the URL. Interactive browser-local UTM URL Builder (utm_source / utm_medium: google / cpc).

Maintained by: OmniTool Creator Economy & Analytics Desk Last Reviewed: 2026-10-20 (Updated 2026-10-25) Documentation: Formula & Source Policy
Presets:
Generated GA4 Campaign URL
https://omnitoolcalc.com/tools/youtube-money-calculator?utm_source=google&utm_medium=cpc&utm_campaign=creator_q4_2026
utm_source / utm_medium
google / cpc
utm_campaign
creator_q4_2026
RFC 3986 percent-encoded for Google Analytics 4 attribution.

GA4 Default Channel Grouping UTM Medium & Source Reference

Standard lowercase utm_medium patterns aligned with Google Analytics 4 Default Channel Groupings (Reviewed 2026-10-25):

GA4 Channel GroupRecommended utm_sourceRequired utm_medium PatternExample Tagging String
Paid Searchgoogle, bingcpc, ppc, paidsearchutm_source=google&utm_medium=cpc
Paid Socialmeta, tiktok, linkedin, xpaid_social, paidsocialutm_source=meta&utm_medium=paid_social
Organic Socialyoutube, linkedin, instagramsocialutm_source=youtube&utm_medium=social
Emailklaviyo, newsletter, lifecycleemailutm_source=klaviyo&utm_medium=email
Referral / Partnerpartner_blog, newsletter_sponsorreferral, affiliateutm_source=partner_blog&utm_medium=referral

Mathematical Formula & Step-by-Step Guide

Primary mathematical equation used by this model:

Origin + Path + ?[Existing Non-UTM Params]&utm_source=...&utm_medium=...&utm_campaign=...[&utm_term=...&utm_content=...] + #Fragment
  1. Enter your Destination URL and pipe-separated GA4 tags (URL | utm_source | utm_medium | utm_campaign | optional utm_term | optional utm_content), or load a channel preset button above the editor.
  2. Existing query parameters (e.g., ?plan=pro) are preserved, duplicate utm_* keys in the source URL are automatically replaced instead of doubled, and #hash anchors stay strictly at the end of the generated URL.
  3. Click Copy Output to copy the verified campaign link; all URL parsing and RFC 3986 percent-encoding runs 100% locally in your browser.
Primary Standards & References: Google Analytics 4 (GA4) Default Channel Grouping & Campaign Parameter Specification (support.google.com/analytics/answer/9756891), WHATWG URL Standard, and IETF RFC 3986 Percent-Encoding (Reviewed 2026-10-25).
All URL parsing and UTM parameter encoding run locally in your browser. Verify final redirect behavior if your destination server strips query parameters.

Frequently Asked Questions — UTM URL Builder

How does this UTM builder handle URLs that already have query parameters (?a=1), duplicate UTMs, or a #hash anchor?
Naive string concatenation breaks URLs containing #anchors (placing ?utm_source after # so browsers never send it to GA4) or creates duplicate utm_source parameters when re-tagging shared links. Our parser decomposes the URL via the WHATWG URL standard, preserves existing non-UTM query parameters, replaces any existing utm_source/medium/campaign/term/content keys case-insensitively, and re-attaches the #fragment at the very end.
What UTM naming conventions match Google Analytics 4 (GA4) Default Channel Groupings?
GA4 evaluates utm_source and utm_medium case-sensitively: use utm_medium=cpc or ppc for Paid Search, utm_medium=paid_social for Meta/TikTok/LinkedIn ads, utm_medium=email for newsletters/lifecycle flows, and lowercase snake_case throughout so 'Paid_Social' and 'paid_social' never split reporting rows.
Does the UTM Campaign URL Builder transmit my destination URLs or campaign names to a server?
No. All URL parsing, query deduplication, and RFC 3986 percent-encoding execute 100% client-side in your browser (reviewed 2026-10-25 by the OmniTool Creator Economy & Analytics Desk), with zero server storage of destination URLs or campaign parameters.