Skip to main content

Build Google Analytics 4 (GA4) UTM Campaign Links

Build UTM campaign URLs with source, medium, campaign, term, and content for Google Analytics tracking.

Loading tool…

Your file stays in this browser. Nothing is uploaded.

How UTM Campaign URL Builder works

Browser Toolset UTM Campaign URL Builder creates standardized, trackable marketing links for Google Analytics 4 client-side. Configure source, medium, campaign, term, and content parameters with one-click clipboard copying and a Test Link button, without sending marketing data to third parties. If the website address cannot be read, the tool shows an Invalid URL format message.

How to use this tool

  1. Enter your destination website or landing page URL.
  2. Input Campaign Source (e.g., google, newsletter, twitter).
  3. Input Campaign Medium (e.g., cpc, email, social).
  4. Input Campaign Name (e.g., spring_sale, product_launch).
  5. Optionally add Campaign Term and Campaign Content for granular A/B tracking.

Common uses

  • Digital marketers tracking email newsletter link clicks.
  • Paid advertising managers building destination links for Google Ads and Meta Ads.
  • Social media managers tracking bio links across Instagram, LinkedIn, and Twitter.
  • Affiliate marketers measuring specific banner and promotional link conversions.

Frequently asked questions

What are UTM parameters?

UTM (Urchin Tracking Module) parameters are tags added to a URL's query string, namely utm_source, utm_medium, utm_campaign, utm_term and utm_content, so analytics tools such as Google Analytics can attribute visits to a campaign. This tool fills in all five.

Which UTM parameters are mandatory?

For effective tracking in Google Analytics 4, utm_source, utm_medium, and utm_campaign are considered essential. The tool marks the website URL, source, medium and campaign fields with an asterisk but does not enforce them; any field left empty is simply left out of the link.

Are my marketing URLs or campaign names uploaded anywhere?

No. The campaign URL is assembled in your browser from the fields you type, and the tool does not upload those values. Nothing is saved by the page, so copy the finished link before you close it.

Can I test the generated link directly?

Yes. The Test Link above the result opens the generated URL in a new tab, so you can check that the page loads and the utm parameters appear in the address bar. It loads the real destination page, so the visit may be counted there.

How should I format parameter text?

Use lowercase letters with underscores or hyphens, such as spring_sale or spring-sale, and keep names consistent, since analytics reports treat Email and email as different values. The tool encodes spaces as %20 but does not change letter case.

Details and limits

Measuring marketing ROI requires knowing exactly which tweet, newsletter, or ad generated a customer conversion. Our UTM Campaign URL Builder generates standardized Google Analytics 4 campaign links in browser memory.

How the tagged link is built

The address is assembled in your browser with the standard URL parser, and nothing is sent anywhere. If what you enter does not start with http, https:// is added in front. Each field that has text is written as a query parameter named utm_source, utm_medium, utm_campaign, utm_term or utm_content. Empty fields are left out, so the starred fields are not enforced and filling them in is up to you. The page opens with sample values for source, medium, campaign and content.

Other parts of your address are kept: existing query parameters stay and a #fragment remains at the end. If the address already holds one of the five utm_ names and you fill that field, the old value is replaced rather than duplicated. If you leave the field empty, the old value stays.

Features and limits

  • Values are encoded by the browser's standard rules, so a space becomes %20 and characters such as & and = are escaped. Underscores and hyphens, as in spring_sale, need no escaping.
  • Letter case is not changed. Summer and summer are two different values in reports, so settle on one style.
  • The address is normalised on the way out, for example a bare domain gets a trailing slash and the host is written in lower case.
  • An address that cannot be parsed shows Invalid URL format in the result box. A bare domain gets https:// added automatically, including one that begins with http, such as httpbin.org.
  • Test Link opens the generated address in a new tab. That is a real visit and may be counted by the destination's analytics.
  • There is no saved history, batch mode or short-link option. For a scannable version of the link, use the QR Code Studio.

Keeping campaign names consistent

Parameters are added exactly as typed, so the value of a tagged link comes from consistent naming. Agree on a short list of sources and mediums, such as newsletter and email, and keep it in a shared sheet, because reports group by the literal text. Do not put personal data such as email addresses or names in any parameter. The link is visible to everyone who clicks it and may end up in server logs.

Tagging links between pages of your own site can interfere with how some analytics tools attribute visits, so use tagged links for traffic that arrives from outside. Check how your analytics setup reads the parameters before a launch, because this tool does not talk to any analytics platform. The URL Encoder & Decoder helps unpack a long tagged link.