UTM Builder

Generate consistent UTM parameters for Google Analytics, GA4, and ad platforms with a single, error-proof builder.

Input

Use this free UTM Builder to build utm parameters for your marketing campaigns.

About the UTM Builder

UTM parameters tell analytics suites exactly where a visitor came from. This builder appends `utm_source`, `utm_medium`, `utm_campaign`, plus optional `utm_term` and `utm_content` to any base URL, guaranteeing that campaigns show up in the right bucket. Because everything runs locally, you can prep unreleased promos, influencer links, and QR codes without exposing them to third-party servers.

How the UTM Builder works

The builder first normalizes what you paste: a URL with no scheme gets https:// prepended, and a protocol-relative //host gets https:. The WHATWG URL parser then validates it. The address is rebuilt from origin plus path, any existing utm_source, utm_medium, utm_campaign, utm_term or utm_content is stripped (keys matched case-insensitively) so re-tagging never duplicates them, and every other query parameter is preserved in its original order. Source, medium and campaign are required; term and content are dropped entirely when blank. Values are percent-encoded per RFC 3986 — including ! ' ( ) *, which encodeURIComponent leaves untouched — and any #fragment is re-appended after the query.

Why Marketers Love This Builder

Automatically percent-encodes special characters so CRM merges and URL shorteners never break.
Keeps existing query parameters intact, simply stacking new UTMs in the correct order.
Runs entirely client-side, making it safe for embargoed product launches and agency-client collaborations.

How to Use the UTM Builder

1

Paste the canonical landing-page URL (domain + path). Example: `https://minitoolstack.com/text-case-converter`. The builder keeps existing query parameters intact.

2

Fill in tracking fields: `utm_source` (e.g., newsletter, meta), `utm_medium` (email, cpc, social), `utm_campaign` (spring_sale_2025), and optional `utm_term` or `utm_content` for audience or creative variations.

3

Click Run Tool to generate the encoded link instantly. Spaces are replaced with `%20` or `-`, and reserved characters get percent-encoded so they survive ad platforms.

4

Copy the finished URL and paste it into Meta Ads, Google Ads, email templates, influencer briefs, QR codes, or printed materials. Test the link once in a private window to confirm it resolves correctly and attributes traffic inside GA.

5

Scenario tips: use one link for every CTA button in a newsletter, create unique `utm_content` for each ad headline, and store your naming conventions in a spreadsheet for the whole team.

Common Mistakes to Avoid

Inconsistent casing (e.g., `Email` vs `email`). Analytics treats them as different Sources. Pick a convention—usually lowercase snake case—and stick to it.
Using spaces or special characters in campaign names without encoding. This can cut off the URL after the first space. Let the builder encode the value automatically.
Overwriting existing parameters. If your CMS already uses `?ref=...`, make sure you append UTMs with `&` rather than replacing the question mark.
Expecting the tool to report engagement or domain age data. It only assembles tagged URLs—performance metrics still live inside Google Analytics, and domain history requires a separate checker.

See also

  • URL EncoderUse it to check or decode how a single campaign value is percent-encoded before you paste it into a UTM field.
  • Slug GeneratorTurn a campaign name into a lowercase, hyphenated token so your utm_campaign values stay consistent across channels.

FAQ

Which UTM parameters are required?

`utm_source`, `utm_medium`, and `utm_campaign` are the core trio. Use `utm_term` for paid search keywords and `utm_content` to differentiate creative or placement variations.

Will the builder break existing query strings?

No. The tool detects whether a `?` already exists and appends additional parameters with `&`, preserving everything the CMS already needs.

Is it safe for GA4 and other analytics platforms?

Yes. UTM parameters follow the same standards across GA4, Universal Analytics, Adobe Analytics, HubSpot, and most BI tools, so one link works everywhere.

Do I need to encode the URL after building?

No extra step is required. The output is already percent-encoded, so you can paste it directly into ad dashboards, Bitly, or QR generators without further edits.