Back to Developer
UTM URL Builder

UTM URL Builder

Build campaign-tracking URLs for Google Analytics / GA4 with utm_source / utm_medium / utm_campaign / utm_term / utm_content / utm_id parameters. Existing query strings and `#fragment` are preserved, blank fields are omitted. Runs entirely in your browser — your URL is never uploaded.

developerURLgenerate

How to use

Enter a base URL, fill in utm_source / utm_medium / utm_campaign (required), and optionally utm_term / utm_content / utm_id. The tool produces a campaign-tracking URL ready for Google Analytics / GA4. The "Lowercase" and "Space handling (_ / + / %20)" options normalise values to avoid case / encoding mismatches. Existing query strings and `#fragment` are preserved, and blank utm_* fields are omitted. Everything runs in your browser — safe for internal or unpublished campaign URLs.

FAQ

Is my URL uploaded?
No. URL construction is pure string manipulation via the URL constructor, all in the browser. Internal or unpublished URLs are safe.
What's the difference between utm_source / utm_medium / utm_campaign?
utm_source = *where it came from* (newsletter / twitter / google — individual sources). utm_medium = *type of channel* (email / social / cpc / organic — categories). utm_campaign = *which campaign* (spring_sale_2026 — name). GA recommends all three as required.
When do I use utm_term vs utm_content?
utm_term records the paid-search keyword (Google Ads). utm_content identifies the creative variation in an A/B test (hero_banner_red vs hero_banner_blue). Both are optional and omitted if blank.
What do "Lowercase values" and "Spaces" do?
GA treats utm_* values case-sensitively, so "Newsletter" and "newsletter" become two campaigns. Lowercasing normalises this. URLs can't contain raw spaces, so we replace them with `_` (Google-recommended), `+` (form-style), or `%20` (RFC 3986).
What if the base URL already has utm_* parameters?
Existing utm_* are *replaced* by the new values. Non-UTM query parameters (e.g. `?ref=abc`) and `#fragment` are preserved as-is.

Related tools