How do I set up UTM parameters for Shopify?
You tag the links, not the store. Add utm_source, utm_medium and utm_campaign in lowercase to every email, post and ad link that points at your Shopify store. Shopify's Campaigns can build those links for you. Leave Google Ads to auto-tagging, then check GA4 for split or (not set) rows.
By Joris van Huët, Founder & CEOUpdated 6 min read
Run the numbers for your store: the free UTM builder.
You usually don't set UTMs up inside Shopify. You add utm_source, utm_medium and utm_campaign to every link you control that points at your store: emails, influencer posts, social ads. Shopify and GA4 read them when the visitor lands. If you want Shopify to build the links, its Campaigns tool does it.
What one store's data shows
One store's anonymised GA4 export, 1 January 2024 to 21 August 2026. It holds shares of revenue only: no ad spend, no order counts.
| What the export shows | Share of revenue | Source cell |
|---|---|---|
| Direct, in last click, first click and touched views | 57.7% | Channels sheet, Direct row |
| Paid Social, in all three views | 0.0% | Channels sheet, Paid Social row |
| Journeys with 1 touch (0.5 days to buy) | 79.5% | Journeys sheet, 1 touch row |
Read the top row first. In the Channels sheet, Direct holds 57.7% of revenue whichever view you pick. GA4 calls a visit Direct when it comes from a saved link or a typed address. Shopify's help lists quieter ways a referrer goes missing: Do Not Track, a proxy or firewall, a shortened URL.
The export cannot say how much of that 57.7% was loyal customers typing your address and how much was untagged clicks. A UTM rides inside the link itself, so it survives when the referrer does not.
The second row is the quiet one. In the Channels sheet, Paid Social is 0.0% of revenue in all three views. Maybe this store ran no paid social. Maybe its paid clicks arrived without tags GA4 reads as paid social. Or maybe those clicks never sat on a journey that ended in a sale. The export cannot tell you which, and that is exactly the problem.
The third row explains why the first one matters. In the Journeys sheet, journeys with 1 touch hold 79.5% of revenue, and those buyers took 0.5 days to buy. A one-touch journey has exactly one label to hand out. If that touch arrived untagged, nothing later in the path corrects it.
So what would change the picture? Tag one push properly and compare the Direct share in the weeks it runs with the weeks before. The export cannot run that test for you, but your own reports can.
Why do tagged links still land in the wrong channel?
The usual answer is a URL builder and three parameters. That part is right. On a Shopify store it goes wrong in four places.
Google Ads links already carry a tag. Google's help says that in GA4, auto-tagging is prioritized over manual tagging, because there is no override option. Manual source and medium on those links are wasted typing. Keep auto-tagging on and spend the effort elsewhere.
Capitals split your reports. GA4 treats Meta and meta as two different values. One campaign typed two ways becomes two rows that each look half as good. Pick lowercase for everything and keep the names in one shared sheet.
The medium decides the channel. GA4 counts a visit as Paid Social only with a social source and a medium matching its paid pattern. That pattern accepts mediums containing cp, plus ppc, retargeting, or anything starting with paid. Tag a Meta ad with utm_source=facebook and utm_medium=facebook_ads, and the click fails the paid test, so it lands in Organic Social.
Influencer links fare worse. Tag one with utm_source=anna and utm_medium=influencer, and no channel rule matches at all. GA4 files that visit as Unassigned. If you pay creators per sale, utm_medium=affiliate puts them in the Affiliates channel instead.
Shopify wants a campaign name. Shopify's help says traffic with utm_campaign in the URL is attributed to marketing. Leave the campaign out and a tagged visit may never count as marketing in Shopify's reports.
What can a UTM not tell you?
A UTM labels the click. It does not tell you whether the click caused the sale. A tagged email that reached people who were buying anyway still collects the credit.
Shopify's reports also apply rules of their own. Last non-direct click is the default model for marketing activity data, so Direct only gets credit when a journey holds nothing else. If a visitor buys nothing within 30 days of a session, Shopify resets the first interaction to the next referrer.
So GA4 and Shopify can read the same tagged click and still disagree about the sale. Expect the gap, and decide in advance which report you budget from. Tags make the labels clean. They do not make the labels true.
What to do this week
- Tag your next email or creator post through Shopify. In your Shopify admin, go to Growth > Campaigns, click Create campaign, name it and save. Add a shareable link with your UTM parameters and use it for that push only. Pass: the campaign report shows sessions once the Data sync in progress badge clears. Fail: nothing shows, so the link went unused, or your store is headless and can't create shareable links.
- Find the split rows in GA4. From the left menu, select Reports, then Acquisition > Traffic acquisition, and look at Session source / medium. Pass: one lowercase row per platform. Fail: Facebook and facebook on separate rows, or (not set) rows with real traffic behind them.
- Check Google Ads auto-tagging. In Google Ads, click the Admin icon, then Account settings, then the Auto-tagging section. Pass: "Tag the URL that people click through from my ad" is ticked. Fail: it is unticked, so GA4 sees only the manual tags your ads happen to carry.
Check the homework. Your GA4 Attribution paths export already holds the evidence. Causality Engine reads that one file and shows what each channel caused next to what last-click gave it, in 1 to 2 minutes, for €99 once (excluding VAT), refundable within 30 days. Check the homework
Sources, 1 October 2026: Understanding Campaigns (Shopify); Creating campaigns (Shopify); Measuring marketing performance (Shopify); Marketing reports (Shopify); URL builders (Google); Default channel group (Google). About auto-tagging (Google); Traffic acquisition report (Google)
Related answers
Frequently asked questions
Does Shopify add UTM parameters to my links automatically?
Only to links it builds for you. Shopify's Campaigns tool creates shareable links and lets you add UTM parameters to each one. A link you paste into an ad, email or bio carries tags only if you type them in.Why does Shopify credit a different channel than GA4 for the same sale?
Because they count with different rules. Shopify's marketing activity report credits the source clicked most recently within the past 30 days. GA4 defaults to data-driven attribution for key events, so the same tagged click can earn different credit in each.Where do I see UTM results inside Shopify?
In two places. Growth, then Campaigns, shows each campaign you built there, with sessions and sales. Analytics, then Reports, filtered to the Marketing category, holds Performance by UTM campaign for any tagged traffic.
Go deeper: Causal attribution, explained.
Sixty-second versions of these ideas: Causality Engine on YouTube Shorts.
Keep reading
Terms in this article
- AnalyticsAnalytics is the systematic computational analysis of data. It reveals customer behavior and measures campaign performance.
- AttributionAttribution identifies user actions that contribute to a desired outcome and assigns value to each. It reveals which marketing touchpoints drive conversions.
- CausalityCausality is the relationship where one event directly causes another, essential for identifying specific actions that drive desired outcomes in marketing.
- Direct TrafficDirect Traffic refers to website visitors who arrive by typing the URL directly into their browser or through bookmarks. They do not come from search engines or referrals.
- Google AdsGoogle Ads is an online advertising platform where advertisers bid to display ads, service offerings, and product listings.
- InfluencerAn Influencer affects purchase decisions due to their authority, knowledge, or relationship with their audience. They drive consumer behavior.
- RetargetingRetargeting is online advertising that targets users who have previously interacted with your website or content. Attribution analysis shows the causal role of retargeting in driving conversions and improving ad spend.
- UTM ParametersUTM Parameters are URL tags marketers use to track campaign effectiveness across traffic sources. They provide data for accurate campaign tracking and attribution in analytics platforms.