9g.
Analytics Basics 16 min

UTM tags: tracking down to the ad and the keyword

Gleb Kochetov, founder of 9g Updated September 30, 2026
In short

UTM tags are parameters at the end of a link that tell analytics where a person came from. Three are mandatory — source, medium and campaign; two more, content and term, take the tracking down to the ad and the keyword. Without naming rules the report turns into a mess of “google”, “Google” and “GAds”, and channels become impossible to compare.

Why links are tagged

Advertising runs in five places, leads land in one CRM, and nobody can answer which channel brought a particular deal. A familiar story. UTM tags solve exactly that: every link carries a passport — where the person came from, from which campaign and from which ad.

A smartphone with social media icons, held in a hand, black and white
Social media is a channel, not a shop window: every post has a job, and the job can be measured

The rule is simple: if a link can bring someone to the site, it has to be tagged. Otherwise the traffic lands in the report as “direct” and you pay for a channel you cannot see.

Here is why, in numbers. A budget of $2,000 is split between search, display, classifieds and maps. Over a month 96 inquiries arrive. Without tagging the report reads: «96 inquiries at $20.83 each». You cannot make a decision from that — you can only raise or cut the whole budget, blindly.

With tagging the same month looks different: targeted search produced 31 inquiries at $27.10, broad search 28 at $16.43, display 24 at $15.83, maps and classifieds 13 at $24.62. Those inquiries then reach the CRM, and it turns out the «cheap» broad search produced not a single deal, while the most expensive inquiries from maps converted best. The budget needs to move — and now you know where to.

The entire difference between the two reports is five parameters appended to a link. It is the cheapest investment in analytics there is: an hour of work once, and years of correct data.

What has to be tagged

  • All paid advertising — search, display, social targeting, promoted posts, influencer links.
  • Emails and messengers — newsletters, Telegram messages, links from a chatbot.
  • Organic posts — social media posts, guest articles, comments.
  • Aggregator and map listings — classifieds, property portals, business directories.
  • Offline — QR codes on billboards, in brochures, on business cards, in lifts.
  • Partner links — from agents, adjacent businesses, roundups.

The only thing you never tag is your own internal site links — more on that below; it is a separate and fairly expensive mistake.

Anatomy of a tag

A tagged link broken into parts Page address, a question mark and five parameters: source, medium, campaign, content, term. THE WHOLE LINK site.com/project/?utm_source=google&utm_medium=cpc&utm_campaign=search-brand &utm_content=ad-3&utm_term=buy-flat-city utm_sourceutm_mediumutm_campaign utm_contentutm_term PlatformTraffic typeCampaign AdKeyword google, meta,tiktok, email cpc, cpm, social,email, referral search-brand,display-retarget ad-3,banner-970 the searchphrase MANDATORYRECOMMENDED
The first three parameters are always needed; the last two turn “the channel brought 40 leads” into “ad number three on this keyword brought 12”.

utm_source — where the person came from

The name of the platform: google, meta, tiktok, linkedin, 2gis, telegram. Required. This is the platform, not the ad type: a common mistake is to put utm_source=cpc and lose the ability to tell search ads from social ads.

utm_medium — the type of traffic

How exactly they arrived: cpc — a paid click, cpm — display bought on impressions, organic — unpaid search, email — a newsletter, social — a social post, referral — a link from another site, qr — a code scanned from an offline surface. Required. It exists to separate paid from free inside one platform: google/cpc and google/organic are entirely different lines in a report.

utm_campaign — the campaign name

Required, and the most important one for reporting: this is what you compare directions by. The name has to read without decoding: search-brand, search-two-bed, display-retarget, avito-parus. If campaigns in the ad account are called «Campaign 4 copy», write a meaningful name into the tag by hand — you are the one reading the report, not the ad account.

utm_content — what exactly was clicked

Optional but very useful. It holds the identifier of an ad, a banner, a block or a link: ad-3, banner-300x250, header-button. It answers the question of which creative brings inquiries and which only brings clicks.

utm_term — the keyword

Originally designed for search keywords and filled automatically through the {keyword} placeholder. In social and display advertising it makes sense to put the audience segment there instead: lookalike-leads, interest-newbuilds. That keeps the parameter meaningful across every channel.

The order of parameters does not matter — analytics reads them by name. What matters is that the first parameter is separated from the address by ? and every following one by &. One extra question mark in the middle breaks the whole thing.

Naming rules

Ninety percent of tagging problems are not technical but a lack of agreement. One page of rules, written down once, is enough.

A hand sketching logo marks in a notebook, black and white
The mark is drawn after the brand platform: first who we promise what to, then how it looks
RuleBadGood
Lowercase Latin onlyGoogle, GAdsgoogle
Hyphen instead of a spacesearch brandsearch-brand
One dictionary of platformsg, google.com, gadsgoogle
Traffic type from a short listads, paid-stuffcpc, cpm, social, email
Campaign name as in the accountcampaign1display-retarget-30d

The rules are not about aesthetics. Analytics is case-sensitive: Google and google are two different platforms to it, and the report gets two rows instead of one. Non-Latin characters turn into percent sequences like %D1%8F, which makes the report unreadable. A space breaks the link in messengers: part of the address falls off and the person lands on a 404.

Do not writeWhat happensWrite instead
utm_source=ЯндексAn unreadable row in the reportutm_source=google
utm_campaign=search brandThe link breaks at the spaceutm_campaign=search-brand
utm_source=Google and googleTwo rows instead of oneAlways lower case
utm_medium=adsPaid cannot be split from organicutm_medium=cpc
utm_campaign=campaign_4_copyIn a month nobody remembers what it wasutm_campaign=search-two-bed
utm_campaign=ZHK_Parus_2026Mixed case, language and underscoresutm_campaign=zhk-parus-2026

A word on separators. Inside a value, separate words with a hyphen: search-brand-two-bed. An underscore works too, but a hyphen reads more easily and does not blur into the underscores in the parameter names themselves. The main thing is to pick one and keep it across every channel: a mix of search_brand and search-brand gives you the same two rows in the report.

It is convenient to keep the rules in one table: a «parameter» column, an «allowed values» column and an «example» column. It takes an hour to fill in, lasts for years and spares you the most expensive conversation in analytics — «why do we have four Googles in this report».

How to create a UTM tag, step by step

  1. Take the clean page address. No stray parameters, and no trailing slash if the canonical version does not have one.
  2. Add a question mark and the first parameter: ?utm_source=google.
  3. Append the rest with & in any order: medium, campaign, then content and term if needed.
  4. Check the values against your naming rules: Latin characters, lower case, hyphens instead of spaces.
  5. Open the link in a browser and make sure the page loads rather than returning a 404 or a redirect that strips the parameters.
  6. Record the link in a shared table — otherwise in a month nobody will remember what camp-7 meant.

URL builders save time but do not replace the rules: they will assemble whatever you give them, typos and non-Latin characters included. That is why a table of rules matters more than any generator.

Ready-made examples for eight channels

ChannelTagging
Search adsutm_source=google&utm_medium=cpc&utm_campaign=search-two-bed&utm_content={ad_id}&utm_term={keyword}
Display networkutm_source=google&utm_medium=cpm&utm_campaign=display-interest&utm_content={gbid}
Retargetingutm_source=google&utm_medium=cpc&utm_campaign=retarget-form-abandon
Social adsutm_source=vk&utm_medium=cpc&utm_campaign=vk-parus&utm_content=video-1
Telegram channelutm_source=telegram&utm_medium=social&utm_campaign=post-15-09
Classifiedsutm_source=avito&utm_medium=referral&utm_campaign=avito-catalog
Emailutm_source=sendsay&utm_medium=email&utm_campaign=newsletter-october&utm_content=top-button
QR code on a billboardutm_source=billboard&utm_medium=qr&utm_campaign=billboard-lenina-12

Eight rows cover almost the whole channel set of a regional business. Copy them into a table, swap the campaign names for your own — and the tagging is done.

How deep to go

What the report shows at different tagging depth With no tags you see the channel, with three parameters the campaign, with five the ad and the keyword. NO TAGS THREE PARAMETERS FIVE PARAMETERS You see: the channel You see: the campaign You see: the ad “traffic from ads” or simply“direct visits” “search-brand brought40 leadsat $21” “ad 3 on the keywordbuy a flat —12 leads at $14” Decision: none Decision: budget Decision: bids and copy arguments at the meeting by campaign for every single ad Every extra level of tagging is another level of control over the advertising
Tagging is not for the report but for decisions: the deeper it goes, the clearer it is what to switch off and what to scale.

The depth rule is simple: tag down to the level at which you are prepared to make a decision. If you will never switch off an individual ad, you do not need utm_content — it will only clutter the report. If you will, you cannot do without it.

LevelParameterDecision it enablesWho needs it
PlatformsourceReallocate budget between channelsEveryone
Traffic typemediumSeparate paid from freeEveryone
CampaigncampaignSwitch off a loss-making directionEveryone
Ad or bannercontentReplace a weak creativeFrom ~$1,000 budgets
KeywordtermAdd negatives, raise bids on what worksWherever search is used

In practice almost everyone needs all five: the first three are written by hand once, the last two are filled automatically and cost nothing. The only reason to skip them is when the data is so thin that a keyword-level breakdown consists of single events and any decision from it is statistically meaningless.

Placeholders in the ad platform

Nobody tags links by hand. Ad platforms substitute the values automatically — you set the template once in the campaign settings.

?utm_source=google&utm_medium=cpc&utm_campaign={campaign_name}&utm_content={ad_id}&utm_term={keyword}

  • {campaign_name} — the campaign name as it is in the account. Which is why campaign names should be in Latin too.
  • {ad_id} — the ad number. More reliable than a human-readable name: it does not change when the copy is edited.
  • {keyword} — the phrase the ad was shown for.
  • {device_type} and {region_name} — added to content when mobile users or regions have to be told apart.

A placeholder is a template in curly braces that the platform replaces with a real value at the moment of the click. The tagging is written once for the whole campaign.

PlaceholderWhat it becomesWhere to put it
{keyword}The keyword the ad was shown forutm_term
{ad_id}The ad identifierutm_content
{campaign_name}The campaign name from the accountutm_campaign
{gbid}The ad group identifierutm_content
{source}The placement in the display networkutm_content or a custom parameter
{device_type}desktop, mobile or tabletA custom parameter
{region_name}The region of the impressionA custom parameter

Two notes from practice. First, {campaign_name} inserts the account name exactly as it is, spaces and non-Latin characters included. If campaigns are called «Parus — search», the report fills with noise, so either rename the campaigns to follow the rules or write the name into the tag by hand. Second, placeholders like {device_type} and {region_name} are better placed in custom parameters — &dev={device_type}, for instance — so they do not occupy utm_content, which you need for the ad.

Other platforms call placeholders something else but work the same way: social platforms use {{campaign_id}} and {{ad_id}}, some ad systems set tagging directly in the link. The logic is identical: you write the channel and campaign by hand, and the platform fills in whatever changes from click to click.

Getting the tags through to the CRM

This is the step where tagging most often stops. Everything is visible on the website while the source field in the deal is empty — and the whole point is lost, because money cannot be tied to a channel.

A person on the phone at a desk with a laptop, black and white
A lead counts when the call or form reached a manager and landed in the CRM with its source

It works like this. On the first visit a script reads the tags from the address and stores them in a cookie or in localStorage for 30–90 days. When the person submits a form, the values are placed into hidden fields and travel to the CRM along with the name and phone number. For calls, call tracking does the same job: it swaps the number on the page and ties the call to the visit, and therefore to the tags.

Type of inquiryHow the source travelsWhat to set up
Website formHidden fieldsA tag-storing script plus CRM fields
Phone callCall trackingA number pool, CRM integration
Messenger from the siteA tag in the first message or in the linkA widget that supports parameters
Direct call to a number in an adA separate number per channelOne number — one campaign
Inquiry from an aggregatorAn export or a platform integrationA separate pipeline or a CRM tag

Required CRM fields: source, campaign, keyword. Three text fields that are filled automatically and never by hand. If a salesperson can change them, the data will be corrupted within the first month.

Those fields are what the report is built on: cost per inquiry and cost per deal for every channel. That, in the end, is what all the tagging was for.

Verification and common mistakes

Three steps to verify tagging Follow the link, find the session in the tag report, see the tags in the CRM deal card. 123 Open the linkTag reportCRM deal card manually, in a browsersession with the right valuestags in the deal fields If the tags disappear at step three, the form is usually to blame: hidden fields are empty or overwritten.
The check takes ten minutes and saves months of reports nobody can trust.
  • Tags in the middle of the link. Parameters go after the question mark and nowhere else. The anchor goes last.
  • Mixed case. “Google” and “google” are two different rows in the report. Always lowercase.
  • Tags on internal links. A tagged link in the site menu wipes the original source of the visit.
  • No tagging offline. QR codes on a billboard or a brochure must lead to a tagged address as well.
  • Tags never reach the CRM. The most expensive mistake: everything is visible on the site and the source field in the deal is empty.

Where to look at the result

In web analytics the tagging lives in the UTM report, broken down by level: source, then medium, then campaign, content and term. It is worth configuring once: add a column with goals (inquiries) and save it as a favorite so you do not rebuild it every time. This is the report that answers which campaign brings inquiries and which only brings visits.

The second report you need is the traffic summary grouped by campaign. It shows the share of direct visits: if that is above 20–25%, some channels are probably untagged and their traffic is being counted as «came on their own».

How to verify tagging in ten minutes

Open one link from each channel in a private window and check the address bar after the page loads: the parameters should still be there. Then submit a test inquiry and confirm that the source fields in the CRM contain values rather than blanks. Those two checks catch nine out of ten tagging problems — and they are almost never done.

Once a month it pays to scroll through the UTM report looking for duplicates: google next to Google, cpc next to CPC, empty campaign values. Every such row is a trace of someone assembling a link outside the rules, and the sooner it is caught the less data is spoiled.

Tagging checklist

  • Naming rules are written into a separate table everyone who launches ads can access.
  • Values are Latin characters only, lower case, no spaces.
  • The three required parameters are present in every link: source, medium, campaign.
  • On search, content and term are filled via placeholders.
  • Internal site links are not tagged.
  • QR codes and offline surfaces point to tagged addresses.
  • Pages carry rel=canonical without parameters.
  • Tags are stored on the first visit and inserted into the form.
  • Calls go through call tracking.
  • The CRM has three automatic fields: source, campaign, keyword.
  • Once a month the report is checked for junk values like Google or google cpc.

Tagging is the part of analytics you set up once and use for years. An hour spent on rules now saves months of guesswork later.

9g numbers

Numbers from our projects

−38%

Cost per lead for an agency after source tagging and cutting off off-target queries

5

Parameters are enough to see the path down to a specific ad

1 hour

Is all it takes to agree the naming rules and close the question for a year

Questions

Short answers

Do I need UTM tags if the platform tags links automatically?

Automatic tagging gives data inside one system but does not help when leads are collected in a CRM together with classifieds, maps, email and seeding. UTM is a shared language for every channel, so everything gets tagged even if the platform can do it on its own.

Can values be abbreviated?

They can and should be, but under consistent rules: Latin characters, lower case, words joined by hyphens, no spaces. «google-search-brand» reads in a report without decoding, while mixed case and spaces break links in messengers. Write the abbreviations into a shared table — in a month nobody will remember what «camp-7» stood for.

What goes into utm_term?

The keyword the ad was shown for; platforms substitute it automatically. For display and audience campaigns put the audience segment there instead so the report keeps its meaning.

Why do tags not reach the CRM?

Usually because nobody stores them. Tags live only in the address of the first page: if they are not inserted into hidden fields on submission and calls do not go through call tracking, the source is lost. You need a tag-storing script and three automatic CRM fields.

Which UTM parameters are required?

Three: utm_source (the platform), utm_medium (the traffic type) and utm_campaign (the campaign name). Without them an inquiry cannot be attributed to a channel or a direction. utm_content and utm_term are optional, but they are what shows which ad and which keyword produced the lead.

How do I create a UTM tag correctly?

Take the clean page address, add a question mark and the first parameter, then append the rest with ampersands. Values in Latin characters, lower case, words joined by hyphens. Then open the link in a browser and confirm the page responds and no redirect strips the parameters.

Can I put UTM tags on internal site links?

No. Following an internal link with tags starts a new session and wipes the original source: someone who arrived from an ad turns into a site referral. Use plain links for internal navigation and analytics events to track clicks.

Do UTM tags affect SEO?

They do not, as long as pages have rel=canonical without parameters: search engines merge the tagged and untagged addresses into one page. Problems appear only where canonical is missing or itself contains parameters — then duplicates get indexed.

How deep should tagging go?

Down to the level at which you are prepared to act. Source, medium and campaign are always needed. Content is worth adding once budgets reach a point where you would actually switch off a weak creative, and term wherever search keywords exist. Tagging deeper than your decisions only clutters the report.

What should I do about tags on offline materials?

Give every offline surface its own QR code pointing at a tagged address: a billboard, a brochure, a business card and a lift poster each get a separate campaign value. That is the only way an offline channel appears in the same report as the paid ones instead of hiding inside direct traffic.

Read next

The next step

Hands-on

Services on this topic

Need a review, not an article

Start with a baseline review

We review your current ads, website, CRM and the path from lead to money. The deliverable is a document: where money is lost and which stage to start from. We reply within one business day.

Discuss a project