Skip to content

Ads and analytics

UTM tags for ads: what to tag and how

What UTM tags are, which parameters are required, how to align names for the whole team and where to add them: ads, newsletters, social media, QR codes and Google Business Profile.

About us

Who we are and how we work

UTM tags are parameters at the end of a link that pass the traffic source, channel type and campaign name to analytics. Add them to every link you place outside your site yourself: ads, newsletters, posts, QR codes. The three required parameters are utm_source, utm_medium and utm_campaign; add the rest as needed.

In brief

  • UTM tags show where visitors came from and which campaigns brought inquiries and orders.
  • The three main parameters are source, medium and campaign; utm_content and utm_term specify the ad and the keyword.
  • Write values in Latin letters, in lower case and by a single rule, because analytics is case-sensitive.
  • Add tags only to external links: on internal links they can distort reports.
  • For Google Ads, auto-tagging is usually enough; for other platforms, tags are added manually or with templates.
  • Keep a naming table so that the team and contractors write values the same way.

What UTM tags are and how they work

A UTM tag is the part of a page address after the question mark. An example of a full link: https://example.com/prices/?utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale. When a person follows such a link, GA4 reads the parameters from the landing page address and records them in the session. The reports show that the visitor came from Facebook, from paid ads, from a specific campaign.

Tags work for links you control. Google organic search, referrals from other sites and direct visits are recognized by GA4 on its own.

ParameterWhat it meansExampleRequired
utm_sourceWhere the visitor came from: platform, website, newsletterfacebook, newsletter, instagramYes
utm_mediumChannel type: paid ads, email, social mediacpc, email, paid_social, socialYes
utm_campaignName of the campaign, promotion or newsletterspring_sale, new_collectionYes
utm_contentVariant of the ad, banner or buttonvideo_1, banner_blue, header_buttonNo
utm_termKeyword for paid searchdubovyi_stilNo

How much detail you need

Start with the three main parameters. Add utm_content when you test several ad or button variants, and utm_term for paid search if keywords are not passed automatically. For QR codes and offline channels, source, medium and campaign are usually enough. Excessive detail complicates reports: every new combination creates a separate row, and the data gets scattered. If a row has only a few visitors, conclusions drawn from it are unreliable, so merge minor variants.

How to name values

The main requirement is a single rule for the whole team. Analytics treats values literally, so Facebook and facebook end up in different rows of the report.

  • Write in Latin letters and lower case, without spaces. Separate words with an underscore or a hyphen and stick to one option for good.
  • For utm_medium, use the standard values that GA4 uses for channel grouping: cpc for paid search, email for emails, social for free posts. Other values may end up in the Unassigned group, so check the GA4 help.
  • In campaign names, use a template: topic, period, region. For example, spring_sale_ua.
  • Do not put personal data in tags: names, phone numbers, e-mail addresses. The address is visible to the visitor and ends up in logs.
  • Keep names unchanged for the duration of a campaign; otherwise the data will split into two sets.

Examples for common channels

Channelutm_sourceutm_mediumExample utm_campaign
Facebook and Instagram adsfacebook or instagrampaid_socialspring_sale_ua
E-mail newsletternewsletteremailautumn_digest
Post in a Telegram channeltelegramsocialnew_arrivals
Link in the Instagram profileinstagramsocialbio_link
Google Business Profilegoogleorganicbusiness_profile
QR code on packaging or a business cardqrofflinepackaging
Blogger or partnerpartner name in Latin lettersinfluencerpartner_review

Example: one campaign and three ads

A store launches a promotion on Facebook and Instagram and tests three ads: a video, a carousel and a photo. For all three, the source, medium and campaign values are the same: facebook, paid_social, spring_sale_ua. Only utm_content differs: video_1, carousel_1, photo_1. The GA4 report shows one campaign, and broken down by ad content, each variant is shown separately along with the number of orders and revenue.

This setup answers a practical question: which ad deserves more budget and which should be turned off. Compare variants by orders and revenue, and only then by the number of clicks. Avoid new parameters for every small detail: a few utm_content values per campaign are usually enough.

Google Ads, Meta and auto-tagging

Google Ads has auto-tagging: the gclid parameter is added to the link, and GA4 links the session to the campaign, ad and keyword without manual tags. For most advertisers this is enough, so keep auto-tagging on. Manual UTMs in Google Ads are needed when you want to manage the names yourself or pass the tags to a CRM. In that case, use one approach per campaign and find out in advance which data takes priority in the GA4 and Google Ads link settings.

Meta and other platforms

The Meta ad account has a URL parameters field. In it you can use the platform's dynamic macros, for example inserting the campaign name. A macro inserts the name exactly as it is written in the ad account, so the campaign names in the account must also follow the rules of the table. The same applies to other ad platforms and newsletter services: some of them add tags automatically, so check what exactly they insert.

How to create and maintain tags

  1. Create a naming table: channel, source value, medium value, campaign template, person in charge.
  2. Build links with a generator, for example Google's Campaign URL Builder, or with a formula in a spreadsheet.
  3. Check the link: open it, make sure the page loads and the parameters stay in the address after any redirects.
  4. Test the tag: follow the link and look at the Realtime report in GA4. Full source attribution appears in the standard reports a little later.
  5. For public posts, use a URL shortener that keeps the parameters.
  6. Once a month, review the report by source, merge duplicates and add new values to the table.

How to read the results in GA4

In GA4, open the Traffic acquisition report and choose the breakdown by session source and medium or by session campaign. Add conversion and revenue metrics to compare campaigns by results, in particular by inquiries and sales. Combine the spend from ad accounts with revenue separately: this topic is covered in the article ROAS or ROI: the difference and how to calculate advertising effectiveness.

To see which campaign brought a specific inquiry, pass the UTM values to hidden form fields and record them in the CRM. Then the manager sees the source of every request in the client card. The article How much a small business should spend on advertising: how to plan the budget will help you plan the amounts.

Tags, cookie consent and privacy

Campaign parameters in the address contain no personal data by themselves, but analytics cookies and identifiers are subject to consent requirements in many countries. Set up the consent banner according to the rules of your region and check the current requirements with a lawyer, as the rules change. If a visitor has not given consent, some sessions may not make it into the reports, so the actual number of visitors is usually higher than what GA4 shows.

Common mistakes

  • UTMs on the site's internal links: a tagged banner on the home page can replace the visitor's real source.
  • Different case and spelling of the same name: Facebook, facebook, fb.
  • Spaces and Cyrillic in values: they are encoded in the address and make reports harder to read.
  • Personal data in tags.
  • Links in newsletters, messengers, Telegram channels and QR codes without tags: such traffic ends up in Direct.
  • Redirects that strip the address parameters.
  • No naming table: contractors and colleagues write values differently.
  • Changing names during a campaign.

Questions and answers

Do you need UTM tags for Google Ads?

Auto-tagging is usually enough. Manual tags are useful when you need consistent naming or to pass data to a CRM. Do not combine different approaches without a reason.

Do UTM tags affect SEO?

The tags themselves do not lower rankings, but addresses with parameters can create variants of the same page. Set the canonical to the clean address and do not add tags to internal links. Google generally understands such addresses as variants of one page.

Can tags be written in Cyrillic?

Technically yes, but the address gets encoded, and it is easier to make mistakes in reports. Latin letters are more reliable and clearer for all tools.

Why does part of the traffic end up in Direct?

Visitors come from messengers, apps and emails without tags or from environments that do not pass the source. Tag the links you share yourself, and the share of unknown traffic will shrink.

Can the visitor see the tags?

Yes, they are visible in the address bar. Use neutral names without internal information: budgets, client names, discount terms for specific groups.

Conclusion

UTM tags work when the whole team uses one naming table and adds tags to every external link. After that, GA4 reports show which channels and campaigns bring inquiries, and advertising decisions rest on data. Start with simple rules, check every link before launch and clean duplicates out of the table once a month. These habits take a few minutes per campaign and give you clean analytics without complex tools. The LightSEO team from Mukachevo will help you align your naming system and set up analytics for campaigns in Google advertising and Google Shopping.

Read also