Skip to content
SERP TimesSERP Times

Loading languages…

Machine translation by Google Translate. It can be wrong, so the English articles are the originals. Your choice is saved in a cookie on this device.

    Type at least two letters to search news and guides.

    to open · ↑↓ to move · Esc to close

    AnalyticsGuide

    How to Create UTM Links That GA4 Reports Correctly

    A UTM link is your page URL plus a few tags that tell GA4 where a visit came from. Here's how to build one, which medium values GA4 understands, and the naming rules that keep your reports clean.

    By

    Published 7 min read

    The UTM Builder creating a Black Friday email link with utm_source=newsletter, utm_medium=email and utm_campaign=black_friday_2026
    On this page

    Here's how to create UTM links: add utm_source, utm_medium and utm_campaign to the end of your page's URL after a question mark, join them with ampersands, and use lowercase values that match the channel rules in Google Analytics 4 (GA4).

    That last part is where most tagged links go wrong. GA4 reads the medium to decide which channel a visit belongs to, and a medium it doesn't recognize sends the visit to "Unassigned," where nobody looks. This guide shows the six parameters GA4 reads, the exact medium values its default channel groups expect, a full Black Friday email example, and the naming rules that keep a year of campaigns comparable.

    A UTM link is a normal URL with tracking tags on the end. Here's one for a newsletter:

    https://example.com/collections/sale/?utm_source=newsletter&utm_medium=email&utm_campaign=black-friday-2026

    Everything after the ? is the tagging. Each tag is a name=value pair, and & separates them. The page loads exactly as it would without them; GA4 just reads the tags when the visit starts.

    Google's URL builders help page lists the parameters GA4 accepts:

    ParameterWhat it recordsExampleNeeded?
    utm_sourceWhere the visit came fromnewsletter, facebook, googleAlways
    utm_mediumThe kind of channelemail, cpc, social, referralAlways
    utm_campaignThe campaign, promotion or productblack-friday-2026Always
    utm_idA campaign ID that matches cost data you uploadbf26Recommended
    utm_termThe paid keywordsoy-candlesOptional
    utm_contentWhich link or creative was clickedhero-buttonOptional

    Google lists three more: utm_source_platform (the buying platform, such as Search Ads 360), plus utm_creative_format and utm_marketing_tactic, which the same page says aren't currently reported in GA4. Most small sites can ignore all three.

    How GA4 decides the channel

    GA4 groups every visit into a "default channel group" using rules written against the source and medium. You don't pick the channel; your tags have to match a rule. These are the rules for manually tagged traffic, from Google's default channel group page:

    ChannelThe rule GA4 applies
    EmailSource or medium is email, e-mail, e_mail or e mail
    Organic SocialSource is a known social site, or medium is social, social-network, social-media, sm, social network or social media
    Paid SocialSource is a known social site and medium matches the paid pattern (cpc, ppc, retargeting, or anything containing "cp" or starting with "paid")
    Paid SearchSource is a known search site and medium matches the paid pattern
    Organic SearchSource is a known search site, or medium is organic
    ReferralMedium is referral, app or link
    DisplayMedium is display, banner, expandable, interstitial or cpm
    AffiliatesMedium is affiliate
    SMSSource or medium is sms
    Mobile Push NotificationsMedium ends in push, or contains mobile or notification
    Organic VideoSource is a known video site, or medium contains video
    UnassignedNothing above matched

    Three common mistakes send visits to the wrong channel:

    1. Putting the platform in the medium. utm_medium=facebook matches no rule. The platform goes in the source; the medium is the kind of channel (social or cpc).
    2. Inventing mediums. newsletter, qr, print, flyer and influencer aren't in the list. Use email for newsletters and put the detail in the campaign or content tag.
    3. Tagging paid posts as social. Giving an ad utm_source=facebook and utm_medium=social matches the Organic Social rule, so your ad spend looks like free traffic. Paid clicks need a paid medium such as cpc or paid-social.

    Example: tagging a Black Friday email

    Say you run a Shopify store that ships candles across the US, and you're sending a Black Friday email on Friday, November 27, 2026. The email has a big "Shop the sale" button at the top and a smaller text link in the footer. You want to know which one people click.

    Tag both links the same way, except for utm_content:

    TagValueWhy
    SourcenewsletterWhere the click came from (your list, not the email platform)
    MediumemailMatches GA4's Email rule
    Campaignblack-friday-2026The promotion, with the year so next year's email doesn't merge with it
    Contenthero-button or footer-linkTells the two links apart
    Campaign IDbf26Optional; useful if you import costs later

    The two finished links:

    https://example.com/collections/black-friday/?utm_source=newsletter&utm_medium=email&utm_campaign=black-friday-2026&utm_content=hero-button&utm_id=bf26
    
    https://example.com/collections/black-friday/?utm_source=newsletter&utm_medium=email&utm_campaign=black-friday-2026&utm_content=footer-link&utm_id=bf26

    If you send a Cyber Monday reminder on November 30, keep the same campaign name and change the content tag (cyber-monday-reminder), so the whole sale adds up in one row and each email can still be split out.

    Naming rules that keep reports clean

    GA4 treats SpringSale, Spring_Sale and springsale as three campaigns, because values are case-sensitive. A naming system matters more than any single link.

    • Lowercase everything. Google's own best practice.
    • One separator. Pick hyphens or underscores and never mix them. Spaces turn into %20 or +, which are easy to mistype.
    • Put the year (or month) in campaign names. black-friday-2026, not black-friday.
    • Keep a shared list. A one-tab spreadsheet with every source, medium and campaign you've used stops a teammate from inventing e-mail next month.
    • No personal data. Google says URL paths and parameters must be free of personally identifiable information. Never put a subscriber's email address or name in a tag.

    Where not to use UTM tags

    Links within your own site. A tag on an internal link (a homepage banner pointing to your sale page, say) tells GA4 the visitor arrived from that campaign. The visitor who actually came from Google search gets credited to your banner. Use GA4 events to measure internal promotions instead.

    Google Ads. Turn on auto-tagging, which adds a gclid to each click. Google's auto-tagging page says GA4 prioritizes auto-tagging over manual tags, so manual UTMs on Google Ads add work without changing the result. Microsoft Ads, Meta and other platforms still need tags. Where a platform supports dynamic tags that fill in values such as the campaign name, Google recommends using them to cut down on typing errors.

    Organic search and your sitemap. Search traffic is classified automatically. Don't put tagged URLs in your XML sitemap, and keep a canonical tag on your pages so a tagged URL someone shares isn't treated as a separate page.

    You can type tags by hand, but one typo splits your data. The free SERP Times UTM builder runs in your browser and catches the common mistakes:

    1. Paste the page URL into Website URL. Existing query parameters and #anchors are kept.
    2. Fill in Source, Medium and Campaign. The source and medium fields suggest common values as you type.
    3. Add Term, Content or Campaign ID if you need them.
    4. Leave Lowercase values and turn spaces into hyphens checked, so Black Friday 2026 becomes black-friday-2026.
    5. Watch for the warning under the result. If GA4's default channel rules don't recognize your medium, the builder says so before you send anything.
    6. Click Copy URL.

    What it doesn't do: it doesn't shorten links, save a history of the links you've built, make QR codes or check that the landing page loads. If several people tag links for one company, keep the shared spreadsheet from the naming rules above; the builder makes each link correct, the list makes them consistent. Google's own Campaign URL Builder is another free option, and paid link managers earn their cost when you need team permissions and a searchable link history.

    Check that the tags worked

    1. Click your finished link once and confirm the page loads with every tag still in the address bar.
    2. In GA4, open Reports > Acquisition > Traffic acquisition. Google says this report shows session source/medium and session campaign. Standard reports aren't instant, so give a new campaign a day before you worry.
    3. If visits show under Unassigned, check the medium against the channel table above.

    For a refresher on what GA4 measures and what Search Console measures, read our Search Console vs. Google Analytics guide. To see what your Black Friday campaign actually earned once the visits are in, our guide to ROAS vs ROI walks through the math.

    Sources

    All accessed Nov 20, 2026:

    Frequently asked questions

    Do UTM links expire?

    No. The tags are just part of the URL, so a tagged link keeps working, and keeps reporting the same source, medium and campaign, for as long as the page it points to exists. That's why a link in an old PDF or a pinned post can still bring visits to a campaign you ended years ago.

    Can I shorten a UTM link?

    Yes. A link shortener redirects to the full tagged URL, and the UTM tags survive as long as the redirect keeps the query string. Click the short link once and check that the address bar still shows every utm_ parameter before you send it.

    Why does my campaign show as (not set) in GA4?

    Usually because a parameter is missing. Google says missing UTM values show up as (not set), so a link with a source and medium but no utm_campaign reports its campaign as (not set). Fill in all three required parameters on every link.

    Can I use UTM links in a QR code?

    Yes. Build the tagged URL first, then make the QR code from it. Use a medium GA4 recognizes, or the visits can end up in Unassigned. For print, one option is a medium of referral with the campaign name saying which flyer or mailer it was; GA4 also lets you create a custom channel group if you want print in its own channel.

    Share

    X (opens in a new tab)LinkedIn (opens in a new tab)WhatsApp (opens in a new tab)

    About the author

    Akif Qureshi

    SEO specialist and founder of SERP Times · 2+ years in SEO

    Akif Qureshi has worked in SEO for more than two years, auditing sites, planning content and tracking how Google updates change real traffic. He started SERP Times to report search changes clearly and to say exactly what site owners should do about them.

    Certifications

    • Google Analytics (Google)
    • Google Ads Search (Google)
    • HubSpot
    • Digital Vidya
    • DSIM
    • Internship Studio

    Connect with Akif on LinkedIn, Instagram and Facebook.