UTM link builderSeparate your campaign traffic.
Enter the destination URL and campaign details, and we'll build a UTM link that Google Analytics will correctly recognize by source, medium and campaign. We also show typos and which channel GA4 will attribute the traffic to.
Campaign link
Recent links
Step-by-step guide
- Paste the destination URL. If you leave out the scheme, the tool adds https:// and tells you so in a note; if your site only works over http, type the URL with http://. Other parameters in the URL (such as
?renk=kirmizi) and the part starting with#are kept; the UTM parameters go after the existing parameters and before the#part. - Pick one of the presets or type the source and medium yourself. The preset buttons fill both fields at once:
facebookandsocialfor Facebook,newsletterandemailfor an email newsletter,qrandprintfor a QR code. - Enter the campaign name. The campaign ID (
utm_id) is optional; use it to tell apart campaigns with the same name or to carry the campaign number from your ad platform. - The link is built as you type. Read the notes, check that the “GA4 channel (estimated)” value matches your intent, then copy it. Links you copy appear under “Recent links”. Open one with “Load into form” and change only
utm_contentto produce a second link for the same campaign in seconds.
What do the notes mean?
A Critical note means the source, medium or campaign name is missing. Warnings are mistakes that corrupt your data: spaces or capital letters in a value, source and medium swapped (utm_source=cpc, utm_medium=google) and a click ID left in the destination URL (gclid, fbclid). The “Convert to lowercase and replace spaces with hyphens” button fixes the first two in one go; it leaves the letter case of the campaign ID alone. Info notes tell you that a UTM value already in the URL was replaced or kept, that auto-tagging suits Google Ads better, or that GA4 doesn't recognise the medium.
Why does the GA4 channel matter?
GA4 assigns sessions to the default channel group based on source, medium and campaign name; the tool applies a simplified version of these rules. If you expect “Paid Search” or “Paid Social” for a paid campaign and the tool shows “Organic Search”, the medium isn't being recognised as paid traffic. No warning appears in this case; this box is the only clue.
Common problems and how to fix them
Medium names in Turkish or other languages put traffic in the wrong channel
Why: GA4's channel rules only recognise certain English medium values. That's why a link with utm_source=bulten&utm_medium=e-posta (Turkish for newsletter and email) ends up as “Unassigned”. Sneakier still is utm_source=google&utm_medium=ucretli (“paid”): the source is a search engine and the medium isn't counted as paid, so ad clicks are recorded as “Organic Search”. Fix: Use standard medium values such as cpc, paid_social, display, email, social, referral and affiliate; the source and campaign name can be in your own language. Special characters are encoded in the link, like %C4%B1 for the Turkish ı, and “kış” and “kis” show up as separate rows in reports. Write values without special characters, converting them with the slug generator if needed.
A redirect drops the UTM parameters
Why: A redirect from http to https, from the non-www to the www address or from a short link to the real URL can drop the query string. The visitor reaches the page, but the campaign data is lost. Fix: In Nginx, return 301 https://$host$uri; drops the query string; use $request_uri instead of $uri. In Apache, a ? at the end of a RewriteRule target deletes the query string; remove it, or add the [QSA] flag if the target sets a query string of its own. After copying the link, use the “Check the link's redirects” button in the result to confirm the utm_ parameters make it to the final URL.
gclid or fbclid is left in the destination URL
Why: The destination URL was copied from the browser's address bar after clicking an ad. Because the tool keeps the URL's other parameters, the click ID stays in the link too; visits through that link may be tied to that single ad click, muddling the source data. Fix: Delete the ID and its value from the destination URL and build the link again.
QR codes and print materials show up as “Unassigned”
Why: GA4's default channel group has no channel for print, so mediums such as print or offline match none of the rules. Fix: If you want to track this traffic separately in reports, create a custom group in the channel groups section of GA4's admin settings and assign sessions with the medium print to a channel of your own. The default channel group isn't affected.
A URL with UTM parameters shows up in search results
Why: Google can crawl a UTM link that has been shared somewhere public. If the page doesn't declare its clean URL as canonical, the UTM version may get indexed. Fix: Use an absolute <link rel="canonical"> pointing to the URL without UTM parameters on every page. Open the UTM version in the meta tag checker and check that the canonical shows the clean URL.
Example: fixing the link in an email newsletter
magaza-ornek.com is announcing its winter sale in an email newsletter. Someone on the team fills in the form like this: destination URL magaza-ornek.com/kampanya/kis-indirimi?renk=kirmizi#urunler, source bulten, medium e-posta, campaign name Kis Indirimi 2026 (Turkish for “winter sale”). The tool produces this link:
https://magaza-ornek.com/kampanya/kis-indirimi?renk=kirmizi&utm_source=bulten&utm_medium=e-posta&utm_campaign=Kis%20Indirimi%202026#urunler
The GA4 channel is “Unassigned”, with four notes below it: warnings about spaces and capital letters in the campaign name, an info note that https:// was added to the URL, and a note that GA4 may not assign the “e-posta” medium to a channel. Steps to fix it:
- Click “Convert to lowercase and replace spaces with hyphens”; the campaign name becomes
kis-indirimi-2026. - Change the medium to
email. The channel switches to “Email” and the tool says “The link is ready to use”. The source can staybulten; with this source, the medium decides the channel. - The newsletter has two links, one in the top banner and one in the product list. Tell them apart with
utm_content=ust-bannerandutm_content=urun-listesi; the report then shows in separate rows which one gets more clicks. - Copy the link and use “Check the link's redirects” to confirm the parameters reach the final URL.
- For the poster going up in the shop, choose the “QR code” preset and keep the same campaign name. The channel shows “Unassigned”; if you want to track poster traffic separately, set up a custom channel group in GA4.
Frequently asked questions
What are UTM parameters?
UTM parameters are tags added to the end of a link that tell your analytics tool where a visitor came from. utm_source identifies the source (google, facebook, newsletter), utm_medium the medium (cpc, social, email) and utm_campaign the campaign; utm_term and utm_content distinguish the ad keyword or different links within the same campaign.
Should I add UTMs to Google Ads links?
If your Google Ads account is linked to Google Analytics and auto-tagging is on, there's no need: every click is tagged automatically with the gclid parameter, and campaign, ad group and keyword data reach Analytics in more detail. Add manual UTMs when you can't use auto-tagging, or for other analytics tools.
Why are uppercase letters and spaces a problem?
Google Analytics treats UTM values as case-sensitive: Facebook, facebook and FACEBOOK show up as three separate sources in reports. Spaces are encoded as %20 in the link and may break when shared. Write all values in lowercase, separate words with hyphens or underscores, and use a single naming convention across your team.
Should UTMs be used on internal links?
No. Adding UTMs to an internal link overwrites the visitor's original source (e.g. Google search) with a new campaign and skews your reports. Use UTMs only on links that bring visitors to your site from outside: email newsletters, social media posts, ads, QR codes and partner sites.
Learn more about this topic: UTM and campaign tracking guide