UTM parameters
Also known as: UTM tags
UTM parameters are tags added to the end of a link, such as utm_source and utm_campaign, that tell your analytics which source, medium, campaign and ad sent each visitor and order.
Formula
https://yourstore.com/product?utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}
Parameters: utm_source · utm_medium · utm_campaign · utm_content · utm_term{{campaign.name}} and {{ad.name}} are Meta's dynamic URL parameters; other platforms have their own macros.
Worked example
A store tags every Meta ad with utm_source=facebook, utm_medium=paid_social and the campaign and ad names. In a week, Shopify records 300 orders with UTM data: 180 with utm_source=facebook, 70 with utm_source=tiktok and 50 with utm_source=google.
- Facebook share of tagged orders = 180 ÷ 300 = 60%.
- TikTok share = 70 ÷ 300 ≈ 23.3%.
- Google share = 50 ÷ 300 ≈ 16.7%.
These are last-click shares from your own store data, a useful check against each platform's self-reported numbers.
Why it matters for a Shopify store running ads
UTMs are the simplest attribution data you fully own. Shopify stores the landing page and referrer of each order, so consistently tagged links let you see which campaign and ad an order came from, independent of any platform's reporting.
Consistency is what makes them useful. Lowercase values, one agreed naming scheme and dynamic parameters instead of hand-typed names prevent the same campaign appearing under five spellings and keep reports clean.
Common mistakes
- Mixing "Facebook", "facebook" and "fb" as sources, which splits the same traffic.
- Adding UTMs to internal links on your own site, which overwrites the original source.
- Hand-typing campaign names instead of using dynamic parameters.
FAQ
What are the five UTM parameters?
utm_source (where the traffic comes from), utm_medium (the type of channel), utm_campaign (the campaign), utm_content (the ad or creative) and utm_term (the keyword, mostly for search).
Do UTM parameters affect SEO?
Not if you only use them on external links such as ads and emails. Don't put them on internal links, and make sure your pages have canonical URLs so tagged versions are not treated as separate pages.
Related terms
- Attribution windowAn attribution window is the period after someone clicks or views an ad during which an ad platform will credit a purchase to that ad, for example 7 days after a click or 1 day after a view.
- Server-side trackingServer-side tracking is a setup in which conversion and behaviour events are sent to analytics and ad platforms from a server you control, rather than directly from the shopper's browser.
- Conversions API (CAPI)The Conversions API (CAPI) is Meta's server-to-server connection that lets a store send events such as purchases directly from its server to Meta, alongside or instead of the browser pixel.
- View-through vs click-through attributionClick-through attribution credits a purchase to an ad the customer clicked, while view-through attribution credits a purchase to an ad the customer only saw, without clicking, within the attribution window.
Want this number for your own store without a spreadsheet? ProfitFly connects Shopify, Meta and TikTok and shows your real profit every day, free up to 50 orders a month.
Start free