SEO · Campaign Tracking
UTM link builder.
Add campaign tags to any URL, and catch the naming slips that split one campaign into several rows in your reports: capital letters, spaces and mediums that are not on your list.
Inputs
Campaign URL
Enter a URL and the three required tags, then press Build link.
Session history
No links built yet.
History stays in this browser only (local storage). Clear it any time.
How campaign URL tags work
A UTM link is your normal URL plus a query string. Google Analytics Help lists utm_source (the referrer), utm_medium (the marketing medium) and utm_campaign (product, slogan or promo code) alongside utm_term (paid keyword), utm_content (to tell apart creatives, such as two links in one email) and several newer parameters. This builder treats source, medium and campaign as required, because links without them are hard to read in reports, and term and content as optional.
Worked example. Linking https://www.example.com/ from a summer newsletter, with source summer-mailer, medium email and campaign summer-sale, gives https://www.example.com/?utm_source=summer-mailer&utm_medium=email&utm_campaign=summer-sale. That is the example in Google's own help page, and this tool produces it exactly. A #fragment stays at the end and any query string already on the URL is kept.
Why the checks matter. Google states that Analytics is case sensitive, so utm_source=google and utm_source=Google are different values. Spaces turn into %20, which is hard to read in reports. The warnings here (capitals, spaces, odd characters, a medium outside your allowed list) are naming conventions this tool applies for consistency. They are not rules published by Google, and the default medium list is only a starting point you should replace with your own.
Campaign tags are for links you place elsewhere (email, ads, social posts, print), so that reports show which campaigns refer traffic to your site. Avoid tagging links between your own pages.
Source
- Google Analytics Help, Collect campaign data with custom URLs (parameters, required set, case sensitivity, example URL). Checked 2026-09-30. Google's page also links to its own Campaign URL Builder.
What each UTM parameter is for
The table follows the parameter list in Google Analytics Help. This builder generates the first six rows; the remaining parameters are optional additions you can append by hand if your reporting uses them.
| Parameter | What Google says it is | In this builder |
|---|---|---|
utm_source | Referrer, for example google, newsletter4, billboard | Required |
utm_medium | Marketing medium, for example cpc, banner, email | Required |
utm_campaign | Product, slogan or promo code, for example spring_sale | Required |
utm_term | Paid keyword | Optional |
utm_content | Differentiates creatives, such as two call-to-action links in one email | Optional |
utm_id | Campaign ID, matching the IDs used when uploading campaign data | Not generated |
utm_source_platform | The platform directing traffic, such as a buying platform | Not generated |
utm_creative_format, utm_marketing_tactic | Creative type and targeting criteria; Google notes these are not currently reported in Google Analytics properties | Not generated |
Naming rules that keep reports clean
Google's UTM best practices come down to one idea: every distinct thing gets exactly one name, spelled the same way every time. It recommends one unique utm_source per platform, one utm_medium per channel (its examples are paid_social and organic_search), one campaign name that matches the exact campaign name, and a strict case-sensitive convention with lowercase as the standard. Its own example is that SpringSale and Spring_Sale are treated as distinct values, as are Meta and meta. When values drift like that, one campaign splits into several report rows and nobody sums them.
A practical way to apply this is a one-page naming sheet kept next to the allowed-medium box in this tool: list your sources (newsletter, partner names), your mediums (email, cpc, social, qr), and the pattern for campaign names (for example season_offer_year). The medium check in the builder then warns when someone types a value that is not on the list. Because the list is yours, the warning is a team convention and not a Google rule.
Worked examples
Newsletter link
Page URL https://www.example.com/pricing/, source newsletter, medium email, campaign spring_sale, content header_button produces https://www.example.com/pricing/?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=header_button. A second link in the same email would use utm_content=footer_link, which is exactly the use Google describes for telling two links in one message apart.
Printed poster with a QR code
For a poster, use a source that names the placement (poster_union_station), a medium that groups all print (qr) and the same campaign name you use online. Reports then show all print under one medium while still separating each placement.
A link that already has a query string
If the page URL is https://www.example.com/shop/?color=red#reviews, the builder keeps color=red, appends the UTM tags after it with an ampersand, and leaves #reviews at the end. In a URL the query string comes before the fragment, as RFC 3986 defines, so a tag placed after the fragment is not sent to the server.
Where the data shows up
Google's help page says that when a user clicks a link carrying these parameters, they are sent to Analytics and the values are visible in the Traffic acquisition report. It also notes that UTM parameters are omitted from the Landing page + query string and Page path + query string dimensions and are shown in the Page location dimension instead, so do not be alarmed if you look for them in the wrong report.
Common mistakes
- Mixed case and spellings. Facebook, facebook and fb become three sources. Pick one and write it down.
- Spaces and special characters. A space becomes
%20and punctuation can be mangled by email clients. Use lowercase letters, digits, hyphens or underscores. - Using the campaign field for everything. Source answers who sent the visit, medium answers what kind of channel it was, and campaign answers why. Putting the channel in the campaign name makes reports impossible to roll up.
- Tagging links between your own pages. Google describes campaign tagging as the way to see which campaigns refer traffic to your site through referral links and ad campaigns, so keep tags for links placed elsewhere, and use event parameters for on-site promotions instead.
- Personal data in a tag. URLs are copied, logged and shared, so never put an email address or name in a value.
- Forgetting to test. Open the finished link once and confirm the page loads and the parameters survive any redirect.
What this builder does not do
It assembles and checks a URL; it does not shorten links, create QR codes, confirm a campaign exists in any ad platform, or check that your analytics property records the visit. For a short link or QR code, build the tagged URL here first, then shorten it. To tidy values before you paste them, the URL Slug Generator makes clean hyphenated text and the Case Converter lowercases a list. To see how the tagged page looks when shared, use the Social Preview Checker.
Frequently asked questions
Are all five parameters needed?
No. This builder needs source, medium and campaign; term and content are optional. Google's help page also lists extra optional parameters such as utm_id that this tool does not generate.
Does Google Ads need these tags?
This tool does not make a claim either way. The Google Ads preset is for links you tag by hand; check Google Ads Help for how your account handles tagging.
Is my history uploaded?
No. Links are built in your browser and the history is kept in local storage on this device until you clear it.
What should I use for utm_source and utm_medium?
Use source for who or where the traffic comes from (newsletter, a partner name, a platform) and medium for the type of channel (email, cpc, social, qr). Google's examples include google, newsletter4 and billboard for source, and cpc, banner and email for medium. The exact words matter less than using the same ones every time.
Are UTM values case sensitive?
Yes. Google's Analytics Help says to maintain a strict, case-sensitive naming convention and to use lowercase as a standard practice, because values such as Meta and meta are treated as different, and SpringSale and Spring_Sale are distinct.
Does the order of the UTM parameters matter?
No. Google's help page says you can add parameters to a URL in any order. A fixed order such as source, medium, campaign, term, content still makes links easier to read and compare, which is the order this builder uses.
Should I put UTM tags on links to my own pages?
Generally no. Campaign tags are meant for links placed outside your site, such as email, ads, social posts and print, so that reports show which campaigns refer traffic. For clicks between your own pages, use analytics events rather than campaign parameters.
Sources
- Google Analytics Help: URL builders, collect campaign data with custom URLsParameter list, UTM best practices, case sensitivity, any-order parameters, Traffic acquisition report, omitted dimensions. Retrieved 2026-10.
- RFC 3986: Uniform Resource Identifier (URI) generic syntaxQuery component comes before the fragment component. Retrieved 2026-10.
Each source was opened and checked against the statements above in October 2026. Standards and vendor documentation change; follow the links for the current text.
Scope of this builder
This tool only assembles and checks a URL. It does not confirm that a campaign exists in any ad platform or that your analytics property will record it.