Skip to content

UTM builder for campaign URLs

This UTM builder turns your destination URL and campaign parameters into a properly encoded, tracked link you can copy in one click.

Paste a link that already has UTM tags to fix or re-tag it. Its tags fill the fields below and any problems are flagged.

Quick fill (optional)

Paid

Organic, email and offline

Sets source and medium to a pair Google Analytics 4's default channel grouping files under the right channel, shown live below. Replace partner-name with the affiliate's own name. Campaign, term and content are yours to fill in either way.

Your tagged URL

Copy switches on once the issues above that block the link are fixed: source, medium, campaign and a full http(s) destination.

Copied to your clipboard.

QR code

A scannable code for the finished link appears here, for posters, flyers and packaging.

Share your naming template

Copy a link to this builder with your source, medium and campaign already filled in, so everyone on the team tags links with the same values.

Up to 100 rows. Paste one URL per line to give every link the values set above, or paste CSV (or cells copied from a spreadsheet) with a header row of url, source, medium, campaign, content and term. A filled cell overrides the field above for that row only; a blank cell uses it.

Built entirely in your browser.

Use this tool often? Bookmark this page, so it is one click away next time.

Email me this result

Want a copy for your records or a client? Leave your email and we'll send you this result. It is written by a real person at Crawl Cove, not an automated blast, so it may take a little while to arrive. We'll only use your address to send it, unless you also tick the box below. Privacy policy.

That email address doesn't look right. Please check it and try again.

Something went wrong saving your address. Your result above is unaffected; please try again.

Got it. We'll email your result to you. Nothing else lands in your inbox unless you ticked the tips box.

How to build a UTM link

  1. Paste the page you are linking to

    Enter the full destination URL, including https://. Any query string or #section it already has is kept, and any utm_ tag already on it is replaced rather than doubled.

  2. Fill in source, medium and campaign

    These three are the ones Google says to always set. Use a quick-fill button for Google Ads, Bing Ads, Meta Ads, LinkedIn Ads or an email newsletter to set a source and medium GA4 files under the right channel.

  3. Add the optional fields you report on

    Term for a paid keyword, content to tell two links in one campaign apart, a campaign ID if you upload cost data, and source platform for the tool that bought the traffic. Leave the rest empty.

  4. Fix any warnings, then copy the link

    The builder flags capitals, spaces and missing fields as you type. Copy the tagged URL, or paste a list into the bulk box to tag every destination at once and download the results as a CSV.

The UTM parameters, one by one

Google’s own guidance is to always set utm_source, utm_medium and utm_campaign. The rest are optional, and this UTM builder has a field for each one Google Analytics 4 reports. The last column is the dimension to pick in GA4 when you want to see that value.

One link, four tags: each fills a GA4 dimension, and the medium decides the channel.
Parameter What it records Example Required GA4 dimension
utm_source Who sent the visit: the site, platform or list the link sits on newsletter, google, linkedin Yes Session source
utm_medium The kind of traffic, which is what GA4 reads first when it picks a channel email, cpc, paid-social, referral Yes Session medium
utm_campaign The push the link belongs to, so every link in one launch rolls up together 2026-11-black-friday Yes Session campaign
utm_id A campaign ID, for matching against cost or campaign data you upload to GA4 bf26 No Session campaign ID
utm_term The paid keyword the ad was bought on seo-crawler No Session manual term
utm_content Which link or creative was clicked when one campaign has several header-button, footer-link No Session manual ad content
utm_source_platform The tool that bought or sent the traffic, as opposed to the site it came from search-ads-360 No Session source platform

Put together, a tagged link reads like this, with the parameters after the ? and joined by &:

https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=2026-11-black-friday&utm_content=header-button

Which GA4 channel will your UTM link land in?

GA4 sorts every session into a Default Channel Group by reading the source and medium you set, and its rules are fixed: you cannot edit them. A medium the rules do not recognise sends the visit to Unassigned, the bucket GA4 uses when no channel matches, and a campaign that lands there is easy to miss in a channel report. These pairs show what each one becomes, and the builder above runs the same rules live on whatever you type.

utm_source utm_medium GA4 channel Why
google cpc Paid Search Source “google” is on Google’s list of search sites and medium “cpc” matches the paid pattern (contains cp, starts with paid, or is exactly ppc or retargeting).
facebook paid-social Paid Social Source “facebook” is on Google’s list of social sites and medium “paid-social” matches the paid pattern (contains cp, starts with paid, or is exactly ppc or retargeting).
facebook social Organic Social Source “facebook” is on Google’s list of social sites. A paid post tagged this way is counted as free reach.
linkedin social-paid Organic Social Source “linkedin” is on Google’s list of social sites. The medium neither starts with paid nor contains cp, so only the social source is left to match. Put paid first.
newsletter email Email Medium “email” is one of email, e-mail, e_mail or e mail.
mailchimp newsletter Unassigned No rule matches: medium “newsletter” is not one GA4 recognises, and source “mailchimp” is not on Google’s search, social, video or shopping lists. Use email as the medium and name the list in utm_source or utm_content.
partner-blog referral Referral Medium “referral” is one of referral, app or link.
partner-blog affiliate Affiliates Medium “affiliate” is exactly affiliate.
ad-network display Display Medium “display” is one of display, banner, expandable, interstitial or cpm.
ad-network paid Paid Other Medium “paid” matches the paid pattern (contains cp, starts with paid, or is exactly ppc or retargeting), and the source is not on Google’s search, social, video or shopping lists. A paid medium on a source GA4 does not know lands in Paid Other, not Paid Search or Paid Social.
youtube paid-video Paid Video Source “youtube” is on Google’s list of video sites and medium “paid-video” matches the paid pattern (contains cp, starts with paid, or is exactly ppc or retargeting).
qr-code print Unassigned No rule matches: medium “print” is not one GA4 recognises, and source “qr-code” is not on Google’s search, social, video or shopping lists. For a poster or leaflet, pick a medium GA4 recognises, such as referral, so the visits land in a named channel.
qr-code referral Referral Medium “referral” is one of referral, app or link.
sms sms SMS Source “sms” is exactly sms.

The paid pattern is any medium containing cp, starting with paid, or exactly ppc or retargeting. The campaign name counts too: a name containing shopping can qualify a session for the Shopping channels. The channel rules ignore case, so Facebook and facebook land in the same channel, but your source and medium reports still list them as two separate rows, which is why the builder above warns about capitals. Checked against Google’s default channel group definitions, November 2026.

What is a UTM-tagged campaign URL?

UTM parameters (utm_source, utm_medium, utm_campaign, and the optional utm_term and utm_content) are tags added to the end of a link so analytics tools can attribute a visit to a specific campaign, channel or ad. This UTM builder encodes them correctly so your links never break.

UTM generator, URL builder or UTM tag builder: which is this?

All of them. Google calls its own version the Campaign URL Builder, and people also search for a UTM generator, a UTM link builder or a UTM parameter tool; each takes a destination URL and adds UTMs to it. Use the Source field as your UTM source builder, one lowercase name per platform such as google or newsletter, and the Campaign field as your UTM campaign generator, one name per push reused on every link, so all of its traffic adds up in one row of your reports.

One campaign, several destinations: tag them all at once

A single push rarely links to only one page: a newsletter cites a handful of articles, a launch spreads across several product pages. Retyping the same source, medium and campaign for each one is where a hand-built link is most likely to pick up a typo or a stray capital. The bulk box takes a list of destination URLs, one per line, and applies the parameters set above to every one, with a CSV of the results to paste straight into a spreadsheet or hand to whoever is publishing the links.

UTM naming conventions: use the UTM builder to keep tracking consistent

GA4 reports “Facebook” and “facebook” as two different sources, which quietly splits your numbers across two rows. Agree a handful of rules before the first link goes out and write them down where everyone who builds links can see them. Keep every value lowercase. Use hyphens instead of spaces. Fix the medium list to the values GA4 recognises (cpc, paid-social, email, social, referral, affiliate, display) so nobody invents a new one. Name campaigns with a pattern that sorts, such as 2026-11-black-friday, and keep the source as the site or list the link sits on rather than the person who posted it. A shared sheet of every link you have built is the simplest way to hold that line; the CSV from the bulk box is a starting point for one.

Where to see UTM data in Google Analytics 4

Open Reports, then Acquisition, then Traffic acquisition. The table defaults to the channel group; change the primary dimension to Session source / medium or Session campaign to see your tags as you wrote them. Session manual term and Session manual ad content hold utm_term and utm_content, and you can add them as a secondary dimension. Standard reports can take a day or more to fill in, so before a campaign goes live, click the exact link you are about to publish and look for that visit in the Realtime report.

The quick-fill presets, and why they use "paid-social"

The quick-fill buttons above the source and medium fields set both to the pairing Google Analytics 4's own Default Channel Group definition expects: a medium containing "cp" or starting with "paid" is what routes traffic into its Paid Search or Paid Social channel, rather than Organic Search or Organic Social. Google Ads and Bing Ads use utm_medium=cpc; Meta, LinkedIn, TikTok, X and Pinterest Ads use utm_medium=paid-social so a paid campaign is not mistaken for an organic post from the same platform, and the organic buttons use social, video, email, sms, affiliate or referral. Campaign, term and content are still yours to fill in either way.

Every tagged link is a new URL, and that is the SEO half nobody plans for

A UTM parameter does not just annotate a visit; it creates a genuinely different address for the same page, and anything that can find that address can crawl it. Tag one page for six campaigns and you have published seven URLs serving identical content. On external campaign links, which is what UTMs are for, this is manageable: keep a self-referencing canonical on the page so search engines consolidate the variants onto the real address. The version that causes trouble is tagging your own INTERNAL links, which sprays parameter variants through your own navigation, splits your analytics sessions, and hands a crawler a large set of near-duplicate pages to work through. Use UTMs on links pointing INTO your site from outside it, and never between your own pages.

Generate a canonical tag · Duplicate content checker

The quiet ways a tagged link loses its tags

A campaign that reports no traffic is more often a broken link than a failed campaign. The usual culprit is a redirect: many redirect rules rebuild the destination without the query string, so a link that passes through one arrives stripped of every parameter and lands in analytics as direct traffic. Link to the final URL rather than to something that redirects, and if you must redirect, confirm the parameters survive it. The other two are ordinary encoding mistakes, a space or an ampersand inside a value that truncates everything after it, which is what this builder encodes for you.

Check your redirects

Frequently asked questions

What does UTM stand for?
Urchin Tracking Module, named after Urchin, the analytics company Google acquired to build Google Analytics. UTM parameters are the tags that analytics reads to attribute traffic to campaigns.
Which UTM parameters are required?
utm_source, utm_medium and utm_campaign are the core three. utm_term (for paid keywords) and utm_content (to A/B distinguish links) are optional, and so is utm_id, the campaign ID: Google Analytics 4 asks you to use the same IDs you use when uploading campaign data, so it is worth filling in if you import costs or campaign details.
What is utm_source_platform, and why are there no fields for utm_creative_format or utm_marketing_tactic?
utm_source_platform names the platform that sent the traffic, such as a bid manager or an email tool, as opposed to the site it came from, and it is one of the campaign parameters Google Analytics 4 collects. Google lists utm_creative_format and utm_marketing_tactic as parameters too, but its own help page says neither is currently reported, so a field for them would only add tags you cannot see anywhere.
What happens if my URL already has UTM tags or a #section?
Both are handled. Any utm_ parameter you set here replaces the one already on the URL rather than adding a second copy, which would leave analytics to pick one of the two, and every other parameter is kept exactly as it was. If the URL ends in a #fragment, the tags go before it: anything after a # is not part of the query string, so tags placed there are never read as campaign data.
Do UTM parameters hurt SEO?
Use them on external campaign links, not internal ones. UTMs create duplicate URLs, so on internal links they can muddy analytics and crawling; a self-referencing canonical tag helps search engines consolidate them.
Are UTM parameters case-sensitive?
Yes. utm_source=Facebook and utm_source=facebook are counted separately, so keep every value lowercase and consistent.
Should I put UTM parameters on links between my own pages?
No. Internal UTMs restart the attribution on your own site, so a visitor who arrived from a campaign gets re-attributed to your internal link and the original source is lost. They also generate parameter variants of your own URLs for crawlers to find. Track internal journeys with your analytics tool’s own events rather than with UTMs.
Why is my campaign traffic Unassigned in GA4?
Because no Default Channel Group rule matched the source and medium you used. The usual cause is a medium GA4 does not recognise, such as newsletter, print or qr. Use one of the mediums its rules read (email, cpc, paid-social, social, referral, affiliate or display, among others) and put the detail in utm_source, utm_campaign or utm_content instead. The rules cannot be edited, but you can build a custom channel group in GA4 if you need your own.
Where do I see UTM parameters in GA4?
In Reports, Acquisition, Traffic acquisition. Set the primary dimension to Session source / medium or Session campaign, and add Session manual term or Session manual ad content as a secondary dimension for utm_term and utm_content.
Why does my campaign show up as direct traffic?
Almost always because the parameters were lost in transit. A redirect between the link and the destination frequently rebuilds the URL without its query string, and some apps and email clients rewrite links. Test the exact link you are about to publish by following it and checking the parameters are still on the address you land on.
Do I need a canonical tag on pages I send campaign traffic to?
It is the safe default. A self-referencing canonical tells search engines that the untagged address is the real one, so any tagged variants they discover consolidate onto it rather than competing as separate pages. It costs nothing and it is the standard answer to parameter duplication.
Does this tool warn me about mistakes?
Yes. As you type, it flags a missing Source, Medium or Campaign, a destination URL with no http:// or https://, a value containing a space, a value with uppercase letters (UTM values are case-sensitive, so “Newsletter” and “newsletter” are counted as two different sources in your reports) and a value spelt differently from one on a recent link, such as paid_social against paid-social. One click makes every value lowercase or turns spaces into hyphens. It also warns when the destination already carries utm_ tags, and when it has a # before its ?, and the Copy button stays off until the link is valid.
Does it save my links?
Your last 10 links are kept in a “Recent links” list in your browser only, via localStorage, so you can get back a link you built earlier without retyping it. Nothing is sent to a server or shared between devices; clearing it or your browser data removes it.
Can I tag several links at once?
Yes, up to 100 at a time. Paste destination URLs, one per line, into the “Tag multiple URLs at once” box and each gets the source, medium, campaign, term and content set above. To vary them per link, paste CSV (or cells copied from a spreadsheet) with a header row of url, source, medium, campaign, content and term, or load a CSV file: a filled cell overrides the field above for that row only. Useful for one push that links to several pages, a newsletter linking to a handful of articles or a launch spread across product pages. A “Download CSV” button appears once you have results, with each row’s values, the tagged URL and the GA4 channel it will land in.
What do the quick-fill buttons set?
Each one fills Source and Medium with the pairing Google Analytics 4's Default Channel Group definition looks for, so the link lands in the channel you expect: Google Ads and Bing Ads set utm_medium=cpc, Meta, LinkedIn, TikTok, X and Pinterest Ads set utm_medium=paid-social, YouTube Ads sets paid-video, and Email newsletter sets utm_source=newsletter with utm_medium=email. The organic buttons cover posts on LinkedIn, Facebook, Instagram, TikTok, X and Pinterest, YouTube videos, SMS, affiliates and print or QR codes. You still choose Campaign, Term and Content yourself.
Which GA4 channel will my UTM link land in?
The builder tells you as you type. Under the tagged URL it names the channel GA4's default channel group will file the visit under, such as Paid Social, Email or Unassigned, and the rule that decided it. It runs Google's published rules in their order, including the campaign name: a campaign containing shop or shopping can turn an email link into Organic Shopping. The table further down this page uses the same rules.
Can I edit a link that is already tagged?
Yes. Paste it into “Read a tagged link” and its utm_ tags fill the fields, with the rest of the URL kept as the destination. It flags a tag that appears twice, capitals in a parameter name and tags placed after the #, where analytics never reads them. Fix the values and copy the rebuilt link.
Can I make a QR code for my UTM link?
Yes. Once the link is valid, a QR code for it appears beside the tagged URL, with a button to download it as a PNG for posters, flyers or packaging. It is generated in your browser. Scan it with your phone before it goes to print.
How do I share our UTM naming conventions with my team?
Fill in the source, medium and campaign your team should use, then press “Copy template link”. Anyone who opens that link gets the builder with those values already filled in and only adds a destination URL, so every link in the campaign uses the same spelling.
Why does a paid social link need "paid-social" instead of just "cpc"?
Because GA4 also has an Organic Social channel that recognises the same source, such as facebook or linkedin. Without a medium that clearly signals a paid link, cpc alone on a social source can be read inconsistently across tools. paid-social is the medium value most reporting conventions, including GA4's own channel definitions, expect for a paid social placement.

From one page to your whole site

Clean campaign tracking pairs with a clean site. Crawl Cove keeps the SEO side healthy, so the traffic your campaigns earn lands on fast, crawlable, fixable pages. See audit a whole site or compare the plans.

Download free

More free tools