How to Use UTM Parameters to Trace Every Order Back to Its Source
Put a UTM on every link you share, and build its values from one shared naming sheet: lowercase, one separator, the same campaign name across channels,…

What each UTM parameter tells you
A UTM link carries labels that tell your analytics where a visit came from, and three of them do most of the work. utm_source names where the visitor came from, utm_medium names how they arrived, and utm_campaign names the offer or promotion. utm_content separates creative variations inside the same campaign (3).
A common mistake is swapping source and medium: source is the where, medium is the how (4). So instagram or tiktok is a source value, while paid or email is a medium value.
When one offer runs on several channels, keep utm_campaign identical everywhere and let source and medium show where each visit came from (3). You then see the whole offer's results in one row and can split them by channel.
Writing rules: one different character splits a channel
UTM values are case-sensitive, so TikTok and tiktok become two different sources. Shopify recommends lowercase letters and numbers with one consistent separator such as an underscore, and no raw spaces, emojis, & or # inside values (5).
Spelling matters as much as case. Google Analytics treats facebook, fb and facebook.com as three separate sources (6). If your media buyer writes one value and your content team writes another, one channel splits into several in your reports.
The fix is a shared sheet of approved names that the whole marketing team uses (6). It should list:
- the allowed source values, one per platform
- the allowed medium values, such as paid, organic, message and affiliate
- the campaign name format, such as offer_month or offer_season
- who adds new values, and when
A naming convention, channel by channel
Here is one workable convention to start from. The exact words matter less than everyone using the same ones.
- Meta: pick one source value, such as meta, record it in the shared sheet, and never mix facebook, fb and facebook.com (6). Use paid as the medium for ads, the shared offer name as the campaign, and the ad name in utm_content so you can compare ads within one campaign (3).
- TikTok: Auto-attach in TikTok Ads Manager appends UTMs automatically, with source TikTok, medium Paid, plus campaign ID and name (7). Because values are case-sensitive (5), those values will not merge with a manual tiktok and paid. Pick one method for all your TikTok campaigns and do not mix them. If you write UTMs yourself, macros such as __CAMPAIGN_NAME__, __AID_NAME__ and __CID_NAME__ fill in the campaign, ad group and creative names for you (8). Never put # in a TikTok ad URL, because everything after it is dropped (4).
- Google Ads: keep auto-tagging on. With it on, GA4 gives the auto-tagged values priority over manual UTMs, and no setting overrides this (9). Use UTMs only for links Google Ads does not generate (9).
- WhatsApp: GA4 counts a visit as direct when it finds no gclid, referral data or UTM parameters, which often happens with links clicked in private messaging apps (10). Tag every link you send, in broadcasts, abandoned-cart messages and customer service replies, for example utm_source=whatsapp and utm_medium=message. If you use WhatsApp to win back carts, see how to recover abandoned carts on WhatsApp without annoying customers.
- Influencers and affiliates: give each partner its own label. Shopify's example is utm_medium=affiliate with utm_content=partner_01 (11). Keep any existing affiliate tracking parameters in the link when you add UTMs (11), and record in the shared sheet which partner each label belongs to.
Why Shopify and GA4 credit the same UTM differently
An order can carry the same link and still get a different answer from Shopify and from GA4. That is usually not a broken link. The two tools follow different rules:
- Attribution model: GA4 defaults to data-driven attribution for accounts with enough data, otherwise last click, while Shopify leans toward last click or last non-direct click (1). Shopify's Performance by marketing channel report defaults to the last 30 days under last non-direct click, which gives full credit to the last channel before purchase and excludes direct visits (12).
- Missed orders: Shopify records the sale regardless, while GA4 may miss it or misattribute it, notably around checkout and payment-provider redirects (2).
- The direct bucket: in Shopify, direct holds every order whose marketing source could not be read, including orders from non-trackable environments (13). GA4 counts a visit as direct when it finds no gclid, referral data or UTM (10).
- Source resets: if a visitor makes no purchase within 30 days of a session, Shopify resets the first-interaction referrer to whatever the next referrer is (14). A customer who clicked an ad and came back much later through an email can end up credited to email.
So do not expect a channel's number in Shopify to match the same channel in GA4. Compare channels inside one tool, and treat Shopify as the reference for order count and revenue, since it records every sale (2). If the gap that bothers you is between your ad platform and your store, read why Meta Ads Manager sales do not match your Salla or Zid store.
Watch for Shopify's October 2026 report change
Shopify changed the values of Referring channel, Referring medium and Traffic type from October 18, 2026 (15). Date ranges that span that date can show the same traffic under different values, for example email visits listed under Gmail, the app the message was opened in (15).
When you compare a period before that date with one after it, do not read a drop in one channel or a new channel appearing as a change in performance until you have checked it is not just a change in labels. Group the old and new values that mean the same channel, then compare.
A simple routine to keep your data clean
A naming convention only helps if the team sticks to it every week. A practical routine:
- Build every link from the shared sheet, never from memory (6).
- Check each new link before it goes live: lowercase, one separator, no spaces, & or # inside values (5).
- Click the link yourself and confirm the parameters arrive intact on the landing page.
- When you add UTMs to a partner link, confirm the original affiliate parameters are still there (11).
- If direct grows in Shopify, look first for untagged links, especially links sent on WhatsApp (13) (10).
To fit these checks into your regular store review, see which metrics to track daily, weekly and monthly.
Sources
- (1) Ruler Analytics · 2026-03
- (2) Ruler Analytics · 2026-03
- (3) Shopify · 2026-10-17
- (4) TikTok For Business · 2025-09
- (5) Shopify · 2026-10-17
- (6) Shopify · 2026-10-17
- (7) TikTok For Business · 2025-12
- (8) TikTok For Business · 2026-02
- (9) utmtool · 2026-10
- (10) Analytics Mania · 2026-09-28
- (11) Shopify · 2026-10-17
- (12) Shopify Help Center · 2026-10
- (13) Polar Analytics · 2026-07
- (14) Shopify Help Center · 2026-10
- (15) Shopify Help Center · 2026-10
Should each channel get its own campaign name?
No. When one offer runs on several channels, utm_campaign stays the same everywhere, and utm_source and utm_medium show where each visit came from (3).
Why does Shopify show more orders than GA4?
Should I add manual UTMs to Google Ads?
Keep auto-tagging on, because GA4 gives it priority over manual UTMs and no setting changes that. Use UTMs for links Google Ads does not generate (9).
Why do so many orders show up as direct?
Want this applied to your own accounts?
Book a Growth Audit

Comments (0)
No comments yet. Be the first to comment.