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 Group | Recommended utm_source | Required utm_medium Pattern | Example Tagging String |
|---|---|---|---|
| Paid Search | google, bing | cpc, ppc, paidsearch | utm_source=google&utm_medium=cpc |
| Paid Social | meta, tiktok, linkedin, x | paid_social, paidsocial | utm_source=meta&utm_medium=paid_social |
| Organic Social | youtube, linkedin, instagram | social | utm_source=youtube&utm_medium=social |
| klaviyo, newsletter, lifecycle | utm_source=klaviyo&utm_medium=email | ||
| Referral / Partner | partner_blog, newsletter_sponsor | referral, affiliate | utm_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
- 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.
- 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.
- 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.
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.
Popular Scenarios & Quick-Lookup Models
Reference Matrix • 2026 Edition
/8 CIDR Subnet Mask (10.0.0.0/8 Class A)
16,777,214 Hosts →
/12 CIDR Subnet Mask (172.16.0.0/12 RFC1918)
1,048,574 Hosts →
Chmod 640 (-rw-r-----) Config Permission
-rw-r----- →
Chmod 660 (-rw-rw----) Group Read/Write
-rw-rw---- →
Chmod 770 (-rwxrwx---) Group Admin Dir
-rwxrwx--- →
Chmod 555 (-r-xr-xr-x) Immutable Binary
-r-xr-xr-x →
/10 CIDR Subnet Mask (100.64.0.0/10 CGNAT)
4,194,302 Hosts →
/14 CIDR Subnet Mask (255.252.0.0 VPC)
262,142 Hosts →
Chmod 711 (-rwx--x--x) Execute-Only Dir
-rwx--x--x →
Chmod 751 (-rwxr-x--x) Web Root Mode
-rwxr-x--x →
Chmod 500 (-r-x------) Read/Exec Binary
-r-x------ →
Chmod 666 (-rw-rw-rw-) World-Writable Audit
-rw-rw-rw- →