SEO guide

UTM and campaign tracking guide: measure your campaigns correctly in GA4

UTM parameters are tags added to the end of a link that tell your analytics tool which campaign a visitor came from. Used correctly, they let you see email, social media, QR code and ad traffic separately; used inconsistently, they split your reports and send traffic to the wrong channel. This guide covers the parameters, naming conventions, GA4's channel logic and common mistakes.

11 min readUpdated: November 9, 2026

In short

  • Every campaign link should include utm_source, utm_medium and utm_campaign; utm_id, utm_term and utm_content are for extra detail.
  • Write values in lowercase, without spaces or Turkish characters: Google Analytics reports Email, email and e-posta (Turkish for “email”) as separate rows.
  • GA4 assigns traffic to the default channel group mostly by looking at the medium; a medium it doesn't recognize becomes "Unassigned".
  • Don't add UTMs to internal links, your sitemap or the canonical tag; use auto-tagging in Google Ads.
  • Never put personal data such as email addresses, names or customer numbers in UTM values.

What are UTM parameters and what are they for?

When a visitor comes to your site from another site, the browser usually sends the address of the previous page (the referrer), and Google Analytics works out the traffic source from it. But for some visits this information is missing or not enough:

  • Clicks from email programs, messaging apps, PDF files and desktop apps often carry no referrer and show up as direct traffic.
  • A visitor who scans a QR code opens the URL directly; your poster leaves no trace in the reports.
  • Even when there is a referrer, you can't tell different links from the same place apart: did the click come from the newsletter's top banner or its product list?

UTM parameters fill this gap. Your analytics tool reads the tags added to the URL's query string on the landing page and attributes the session to that source, medium and campaign:

https://magaza-ornek.com/kampanya/kis-indirimi?utm_source=bulten&utm_medium=email&utm_campaign=2026-11_kis-indirimi&utm_content=ust-banner

The name comes from Urchin, the analytics software Google bought in 2005 (Urchin Tracking Module). UTMs have nothing to do with rankings: adding parameters doesn't lift a page in search results, it only changes measurement. You track your organic search traffic with Search Console data, not UTMs; the rank tracking guide explains how.

The six parameters and what they mean

ParameterWhat does it tell you?Example values
utm_sourceThe site, app or list that sends the traffic.google, instagram, bulten
utm_mediumThe marketing medium, i.e. the type of traffic. GA4's channel rules rely on it most.cpc, social, email
utm_campaignThe name of the campaign.2026-11_kis-indirimi
utm_idCampaign ID: the campaign number in your ad account or your own code.kmp-042
utm_termIn paid search, the keyword that triggered the ad.kosu-ayakkabisi
utm_contentDistinguishes different links or ad creatives within the same campaign.ust-banner, video-a

Röntgen's UTM link builder treats source, medium and campaign name as required and flags a missing one with a critical note. Because GA4's channel rules depend on source, medium and, for some channels, campaign name, fill in all three on every link. utm_id is also used to match campaigns when you import ad cost data into GA4. GA4's documentation mentions a few more parameters, such as utm_source_platform; for most sites these six are enough.

Where do the parameters go in the URL?

UTMs go in the query string, after the ? and before any part starting with #. If the URL already has a query string, the new parameters are added with &; you don't write a second ?. Parameters written after # are not sent to the server, and GA4 doesn't read them as campaign tags. The order of the parameters doesn't matter. Röntgen's builder keeps the URL's other parameters and its # part, adds the UTMs to the end of the query string in a fixed order and, if the URL already contains a UTM value, tells you in a note whether it replaced or kept it.

Naming conventions: lowercase, consistency and Turkish characters

UTM values are free text; your analytics tool records whatever you type. Clean reports depend on everyone on the team following the same rules:

  • Always lowercase: Google Analytics treats values as case-sensitive; Facebook and facebook become two separate sources in the report.
  • No spaces: a space is encoded as %20 in the link and can break when copied. Separate words with hyphens and the parts of a campaign name with underscores.
  • A fixed list of mediums: pick a single value, such as only email for email and only paid_social for paid social. e-mail, mail, Email and e-posta split the same newsletter into four rows.
  • Let the source name the source: write the name of the platform or list (instagram, bulten, ortak-site); date and offer details belong in the campaign name.
  • A pattern for campaign names: for example yil-ay_kampanya_hedef (year-month_campaign_target). If the pattern stays fixed, filtering campaigns by date or target in reports becomes easy.
  • A log sheet: record every link you create in a shared spreadsheet with the date, destination URL, UTM values and the person responsible. Six months later, this sheet tells you what a campaign name meant.
utm_source    google | facebook | instagram | linkedin | bulten | ortak-site
utm_medium    cpc | paid_social | social | email | display | referral | affiliate | sms
utm_campaign  2026-11_kis-indirimi_tr | 2026-12_yilbasi_tekrar-musteri
utm_content   ust-banner | urun-listesi | hikaye-1

Why do Turkish characters cause problems?

Turkish letters are encoded in the link: the value kış (“winter”) appears in the URL as k%C4%B1%C5%9F. GA4 shows it as kış again in reports, but if someone on the team types kis for the same campaign, you get two separate rows. Capital letters are another trap: software that doesn't follow Turkish rules lowercases a capital I to i instead of ı, and may turn a capital İ into i followed by an invisible combining dot. Two values that look identical on screen are counted separately in reports.

The safest approach is to write values in lowercase and without Turkish characters from the start (i instead of ı, s instead of ş, g instead of ğ). You can convert long titles with the URL slug generator. The "Convert to lowercase and replace spaces with hyphens" button in Röntgen's UTM builder turns İ correctly into i and leaves the case of the campaign ID alone; it doesn't change Turkish letters, though, so fix those yourself.

Spot spaces, capital letters, swapped source and medium, and click ID mistakes instantly as you build your link.

UTM link builder

How does GA4 assign source and medium to channels?

GA4 assigns every session to a channel, such as Organic Search, Paid Social or Email, using a list of rules called the default channel group. Most rules look at the medium, some at the source and the campaign name; Google maintains its own source lists for search engines, social networks, video and shopping sites. The table below is a simplified summary of the rules; the full definition is on the default channel group page of the GA4 help documentation.

ChannelWhat GA4 looks at (summary)Example source / medium
Organic SearchThe source is a search engine, or the medium is exactly organic.google / organic
Paid SearchThe source is a search engine and the medium is paid: cpc, ppc, retargeting, or a value starting with paid or containing cp.google / cpc
Organic SocialThe source is a social network, or the medium is a value such as social, social-media or sm.instagram / social
Paid SocialThe source is a social network and the medium is paid.facebook / paid_social
EmailThe source or the medium is email, e-mail or e_mail.bulten / email
DisplayThe medium is display, banner, expandable, interstitial or cpm.haber-sitesi / display
ReferralThe medium is referral, app or link; for untagged visits, a referral from another site.ortak-site / referral
Affiliates, SMSThe medium is affiliate; the source or medium is sms.kupon-sitesi / affiliate
UnassignedTags that match none of the rules.bulten / e-posta
DirectNeither tags nor a referrer.(direct) / (none)

Röntgen's builder applies a simplified version of these rules and shows the result in the "GA4 channel (estimated)" box. Because Google updates the rules and source lists from time to time, this is an estimate; you see the definitive result in GA4's own reports.

Why does "Unassigned" appear, and how do you prevent it?

Unassigned means GA4 couldn't match the tags to any channel. The most common cause is Turkish or made-up medium names such as e-posta, bulten, afis or print. Use standard mediums instead. For traffic that has no counterpart in the default group, such as print materials, you can define a custom channel group in GA4's admin settings; a custom group doesn't change the default one and is selected as a separate dimension in reports.

A sneakier mistake is the wrong channel with no warning. Ad clicks tagged utm_source=google&utm_medium=ucretli (Turkish for “paid”) aren't even Unassigned: the source is a search engine and the medium isn't recognized as paid, so they go to Organic Search and your organic traffic looks inflated. Before launching a campaign, check that the estimated channel matches your intent.

Session or first user?

GA4 keeps source information at several levels; the two used most often are these: "first user" dimensions show the source through which a visitor first found your site, while "session" dimensions show the source of each visit. Compare the two to see whether a campaign brought in a new audience or brought back existing customers.

The most common UTM mistakes

Adding UTMs to internal links

It's tempting to add utm_source=anasayfa (“homepage”) to a home page banner to see how many clicks it gets. But when a visitor clicks that link, GA4 sees this made-up campaign instead of the visitor's real source (a Google search, for example); later conversions are credited to the banner and the real channel comes up short. Measure internal clicks with events instead: a click event in Google Tag Manager or, on e-commerce sites, GA4's recommended select_promotion event answers the same question without breaking your reports. Sitemaps, canonical and hreflang tags should also contain only clean URLs.

Writing the same medium in different ways

When one team member writes Email, another e-mail and the agency newsletter, the newsletter traffic splits into three rows; the newsletter medium doesn't even go into the Email channel in GA4. Tie medium values to a drop-down list in your log sheet and share the list with agencies and partners.

Tagging organic and earned links

GA4 already recognizes search engines, social networks and sites that link to you from the referrer. If you add utm_medium=blog to the link in an article you published on another site, that traffic becomes Unassigned instead of Referral. Don't tag links you've earned. If there's a link you do want to tag (such as the URL in your Instagram profile or your Google Business Profile), choose the medium by the real type of traffic: social for a profile link, organic for your Business Profile. That way the channel stays the same and you still see these clicks separately by campaign name.

Redirects dropping the parameters

If your link passes through a redirect (from http to https, from the non-www to the www address, or from a short link to the real URL), the rule must carry the query string over; otherwise the visitor reaches the page but the campaign information is lost. In Nginx, $uri carries only the path and drops the query string; $request_uri carries the path and the query string together:

return 301 https://magaza-ornek.com$request_uri;

In Apache, a ? at the end of a RewriteRule target deletes the query string. If you add your own parameter to the target, use the QSA flag to keep the incoming query string:

RewriteRule ^kampanya$ /firsatlar?liste=kis [R=301,L,QSA]

In Cloudflare's redirect rules, turn on the option to preserve the query string. Redirects done with JavaScript or a meta refresh don't carry the query string by themselves; switch to a server-side redirect if you can (redirect guide). Before publishing each new campaign link, open it with the Redirect checker and confirm that the utm_ parameters survive to the final URL.

Mixing auto-tagging with manual UTMs

If your Google Ads account is linked to GA4 and auto-tagging is on, every ad click is marked automatically with the gclid parameter, and campaign, ad group and keyword data reach GA4 in more detail than manual UTMs provide. In that case you don't need to add UTMs to Google Ads links. Microsoft Advertising (msclkid) and Meta (fbclid) have their own click IDs too. On other ad platforms, rather than typing UTMs into every ad by hand, enter them once in the platform's URL parameters field, ideally with dynamic values that fill in the campaign and ad names automatically.

Click IDs belong to a single click. If you copy a URL from the address bar after clicking an ad, a gclid stays in it, and if you then use that URL in a newsletter, every newsletter visit may be attributed to that one ad click. Röntgen's builder warns you when it sees a known click ID in the destination URL, and shows a note reminding you of auto-tagging when the source is Google and the medium is paid.

Swapping source and medium

A swapped link such as utm_source=cpc&utm_medium=google fits no channel in GA4. The rule is simple: the source answers "who sent it?" (google, bulten), the medium answers "how did it arrive?" (cpc, email). When the builder sees a known medium name in the source and the name of a search engine, social network or video site in the medium, it warns "Source and medium may be swapped".

Short links and QR codes

Long UTM links stand out awkwardly in social media posts, text messages and print. Link shortening services solve this: the short URL redirects to the long URL that contains the UTMs. Points to watch:

  • Create the short link from the long UTM URL, then open the short URL and check that the parameters reach the final page.
  • The shortener's click count won't match the session count in GA4. Link preview bots in messaging apps open the short URL but don't run your analytics tag, and visitors who don't consent to cookies are underrepresented in GA4.
  • Using a short link on your own domain (e.g. git.magaza-ornek.com/kis) builds trust and keeps your links working if you switch services.

QR codes

A QR code is an image that contains a URL. Because the phone camera opens the URL directly, there is no referrer; traffic from a QR code without UTMs blends into direct traffic. Use a separate tag for each printed item: keep the campaign name and distinguish the placement with utm_content (afis-vitrin, brosur, masa-karti).

A static QR code contains the URL directly; a long UTM URL makes the code denser and harder to scan in small print, so putting a short URL in the code helps. Dynamic QR codes contain a service's short URL and let you change the destination later; but if the service shuts down or your subscription ends, your printed codes stop working too. Before printing, scan the code with a few different phones and check the URL that opens.

The "QR code" preset in Röntgen's builder fills in utm_source=qr and utm_medium=print. GA4's default channel group has no channel for print materials, so this traffic shows as Unassigned; to track it separately, define the custom channel group described above.

Privacy, cookie consent and KVKK

UTM values are visible in the address bar, stored in server logs and shared with anyone the link is forwarded to. That's why they must not carry personal data:

  • Don't write an email address, name, phone number or customer number into a UTM value. Google Analytics policies prohibit sending Google data that could identify a person.
  • Check the parameters your newsletter service adds to links automatically. Some services add their own UTMs or subscriber IDs; make sure they don't clash with your tags and contain no personal data.
  • Tag offers sent to a single customer with a generic campaign name, not with the person's name.

Analytics cookies are a separate matter. In Turkey, under KVKK practice, explicit consent from the visitor is generally sought for analytics and advertising cookies; Röntgen, too, loads Google Analytics only for visitors who give statistics consent. A natural consequence of asking for consent is that campaign data from visitors who decline is missing from your reports. Read UTM reports not as exact numbers but as ratios and trends between campaigns.

This section is not legal advice. When you add a new tool or data processing for campaign measurement, update your privacy notice and consult an expert about your own situation.

Tagging a campaign step by step

  1. Plan the campaign. Write down which channels and links it will run on and what you want to measure (clicks, sign-ups, sales).
  2. Pick the values from your log sheet. Take the source and medium from the fixed list, write the campaign name according to the pattern and give each link its own utm_content.
  3. Build the links. The UTM link builder shows warnings and the estimated GA4 channel as you type. The last 10 links you copy are stored only in your browser; open one with "Load into form" and change just the utm_content value to produce another link for the same campaign quickly.
  4. Test the redirects. Use the "Check the link's redirects" button in the result to confirm the parameters reach the final URL; if you use a short link or QR code, test those as well.
  5. Make a test click. Open the link and check in GA4's real-time report that the source and medium appear correctly.
  6. Publish and log it. Write the link into your log sheet; when the campaign ends, read the results using the names in that same sheet.

Frequently asked questions

Do UTM parameters affect SEO?

No, UTMs are not a ranking signal; they only tell your analytics tool where a visit came from. Because UTM URLs shared publicly can be crawled, use a canonical tag on every page that points to the URL without UTMs, and don't add UTMs to internal links.

Why does my UTM traffic show as "Unassigned"?

It means GA4 can't match the source and medium to any rule in the default channel group. The cause is usually a non-standard medium name such as e-posta, bulten or print; use recognized values such as email, social, cpc and referral, or define a custom channel group.

What is the difference between utm_source and utm_medium?

utm_source names where the traffic was sent from (google, instagram, bulten), while utm_medium names the type of traffic (cpc, social, email). GA4 decides the channel mostly by looking at the medium; swapping the two drops the traffic into a row that matches no channel.

Can I add UTMs to the link in my Instagram profile?

Yes. If you use utm_source=instagram and utm_medium=social, the traffic stays in the Organic Social channel, and the campaign name lets you see profile clicks separately from posts and stories.

Can I use Turkish characters in UTM values?

It works, but it isn't recommended. Turkish letters are encoded in the link, for example as %C4%B1, kış and kis become two separate values in reports, and the capital İ is lowercased differently by some software. Write values in lowercase and without Turkish characters.

Do short links break UTMs?

Not as long as the short link redirects to the long UTM URL. Open the short URL and check that the utm_ parameters are still there at the final URL; it's normal for the service's click count to differ from the session count in GA4.

Related guides and tools