Attribution
UTM parameters for Shopify: setup for every channel
A naming scheme for Meta, TikTok, Google, email, SMS, influencers and podcasts, where the tags appear in Shopify, the mistakes that break them, and what UTMs will never see.
Yforms team, Product & growthPublished 7 min read
On this page
This is a practical guide to UTM parameters on Shopify: short tags you add to the end of a link so Shopify and Google Analytics know which campaign sent a visitor. If you search for “utm parameters shopify”, you probably want three things: a naming scheme you can copy for every channel, where the tags show up in Shopify, and the mistakes that make them useless. All three are below, plus the one gap UTM parameters can't close however well you set them up.
What UTM parameters are
A UTM parameter is a label added to a URL after a question mark. When someone clicks the link, your store and analytics tools read the labels and record where the visit came from. A tagged link looks like this: yourstore.com/products/serum?utm_source=instagram&utm_medium=paid_social&utm_campaign=spring_launch.
| Parameter | What it means | Example |
|---|---|---|
| utm_source | The site or sender | facebook, instagram, tiktok, google, klaviyo |
| utm_medium | The kind of traffic | paid_social, cpc, email, sms, influencer |
| utm_campaign | The campaign or promotion | spring_launch, bfcm_2026, welcome_flow |
| utm_content | Which ad, creative or link | video_ugc_01, header_button |
| utm_term | The keyword, mostly for search | vitamin c serum |
Source, medium and campaign are the ones that matter most. Content is useful for comparing creatives or links in the same email. Term is mainly for search ads, and Google Ads fills it in for you with auto-tagging. Google's free Campaign URL Builder (opens in a new tab) builds tagged links if you'd rather not type them.
A naming scheme for every channel
The rule that matters most is consistency. “Facebook”, “facebook” and “fb” count as three different sources in most reports. Write your scheme down, share it with everyone who makes links, and use lowercase with underscores.
| Channel | utm_source | utm_medium | utm_campaign |
|---|---|---|---|
| Meta ads | facebook or instagram | paid_social | the campaign name |
| TikTok ads | tiktok | paid_social | the campaign name |
| Pinterest ads | paid_social | the campaign name | |
| Google Ads | cpc | set by auto-tagging | |
| Klaviyo email | klaviyo | the flow or campaign name | |
| SMS | your SMS tool's name | sms | the campaign name |
| Influencer or creator | the creator's handle | influencer | the partnership or month |
| Podcast | the show's name | podcast | the episode or month |
| Organic social bio | instagram or tiktok | social | bio_link |
| Affiliate | the affiliate's name | affiliate | the program name |
Use dynamic parameters in ad platforms
Meta and TikTok let you insert values automatically, so you don't have to type every campaign and ad name. In Meta's URL parameters field, placeholders such as {{campaign.name}} and {{ad.name}} fill in the names at click time. TikTok offers similar macros. Check each platform's current list, because the exact placeholder names differ. Set it once at the ad level and every new ad inherits a consistent tag.
Email and SMS
Klaviyo and most SMS tools can add UTM parameters to every link automatically, using the campaign or flow name. Turn this on in the account settings and check one sent email to confirm the tags are there. Without them, email clicks from webmail and apps often arrive with no referrer and show up as Direct.
Influencers, podcasts and offline
Give each creator their own tagged link, ideally a short redirect such as yourstore.com/maya that forwards to the tagged URL. People can't remember a URL with parameters in it, and podcast listeners never click at all. Pair the link with a unique discount code and a post-purchase question, because most of those buyers will type your address.
Where UTMs show up in Shopify
Shopify reads UTM parameters from the landing page of a visit and uses them in its marketing reports.
- Marketing reports and attribution. Shopify's marketing section groups sessions, orders and sales by channel and campaign, using UTM tags and referrers. The default model is last non-direct click (Shopify (opens in a new tab)). Report names and layouts change, so look under Analytics and Marketing in your admin.
- The order page. Open an order and look at the conversion or customer journey summary. It shows the landing page, the referrer and, where Shopify recorded them, the UTM values of the visits before the purchase.
- Google Analytics 4. If you've connected GA4 through Shopify's Google channel, the same tags appear as session source, medium and campaign in GA4's acquisition reports.
Common UTM mistakes that break attribution
- Inconsistent capitals and spellings. “Instagram” and “instagram” split one channel in two. Use lowercase everywhere.
- Tagging internal links. Never put UTM parameters on links inside your own store, such as a homepage banner. Clicking one restarts the session as a new campaign and wipes the real source.
- A redirect that drops the tags. Some link shorteners and redirects remove everything after the question mark. Test every short link.
- Mixing up source and medium. Source is who sent the visit (instagram). Medium is how (paid_social). Putting “paid” in source breaks grouping.
- Using UTMs on Google Ads when auto-tagging is on. Google's gclid already carries the data. Manual tags can override it in some setups. Pick one approach and check the results in GA4.
- No tags on organic links. A link in your Instagram bio or a creator's post without tags looks like any other social referral, or like Direct in an in-app browser.
- Changing the scheme every quarter. Your month-over-month trend only works if the names stay the same.
A 15-minute UTM audit
If you inherited a store or an agency set up your ads, run this check before trusting any channel report.
- List every source and medium value Shopify or GA4 recorded last month. Look for near-duplicates such as “fb”, “facebook” and “Facebook”, and for values that are clearly mistakes.
- Open one live ad per platform in Ads Manager and check its URL parameters field. Confirm the tags match your written scheme.
- Send yourself one email and one SMS from each active flow and click the links. Check the tags in the address bar.
- Click every creator and bio link you've handed out, on a phone, and check that the tags survive any redirect.
- Search your theme for “utm_” to find internal links that carry tags by mistake, and remove them.
Fix what you find and note the date. Reports from before that date mix the old names with the new, so compare channels from the fix onward.
The gap UTMs can't close
UTM parameters record clicks. They are only as complete as the clicks they ride on. Many buyers never click a tagged link on the way to their order.
- Seen, not clicked. Someone watches your TikTok, then types your URL days later. There is no tagged click to record. Our guide to TikTok ads attribution covers this in detail.
- Heard, not clicked. Podcasts, radio and a friend's recommendation have no link at all.
- Shared privately. A product link pasted into a group chat loses its referrer and often its tags. That's the dark social problem.
- Long gaps and new devices. A tagged click on a phone two weeks ago doesn't follow the buyer to their laptop today.
- Stripped parameters. Some browsers and apps remove known tracking parameters from links in certain modes. UTMs are usually kept, but ad click IDs are not always.
This is why stores with perfect UTM hygiene still see a large share of orders as Direct or organic search. Better tagging shrinks the gap. It can't remove it, because the gap is made of journeys with no click.
The practical fix is to ask. A one-question “How did you hear about us?” survey on the Thank you page catches buyers that UTMs miss. Then compare the two each month: the share of orders your UTMs credit to each channel, next to the share of customers who name it. Where customers name a channel far more often than UTMs credit it, that channel works without clicks. Our guide to the how did you hear about us survey shows how to word it.
Putting UTMs and survey answers together
A simple monthly routine that uses both:
- Export last month's orders by UTM source and medium from Shopify, or read them in GA4.
- Export last month's survey answers by channel.
- Line them up per channel and note where they differ by a wide margin.
- For channels with big gaps, check tagging first (a missing tag is a quick fix), then accept the rest as no-click influence.
- Use the survey share for budget decisions on no-click channels, and UTM data for comparing campaigns within a channel.
Yforms does the lining up. It reads each order's last click from Shopify, including the UTM source and medium and the referrer, and places it next to what the customer said. On the Growth plan, the Ads vs customers report adds the purchases and spend you enter from each ad platform. For the wider method, see our guide to Shopify marketing attribution.
Questions
Does Shopify track UTM parameters automatically?
Yes. Shopify reads UTM tags from the landing page of a visit and uses them in its marketing reports and in each order's customer journey. You still have to add the tags to your links.
Should I add UTM parameters to Google Ads?
Usually not by hand. Google Ads auto-tagging passes campaign data to Google Analytics through the gclid. Add manual tags only if a tool you use needs them, and check that they don't conflict.
Do UTM parameters hurt SEO?
Not when used on external links such as ads, emails and social posts. Don't use them on internal links in your own store, because they reset the visit's source.
Why do I still see so much Direct traffic with UTMs set up?
Many buyers never click a tagged link. They type your URL after seeing an ad, hearing a podcast or getting a tip from a friend. A post-purchase survey shows where those buyers came from.
Start free on Shopify
Hear from every customer after they buy.
Yforms asks one short question on your thank-you page, when the order arrives and after use. Free for up to 200 orders a month, and every new store gets 14 days of Growth.