UTM Parameters
UTM parameters are tags added to the end of a URL that tell analytics tools exactly where traffic came from, which campaign sent it, and what type of marketing drove the click.
What Are UTM Parameters?
UTM (Urchin Tracking Module) parameters are query string tags you append to URLs so that when someone clicks a link, your analytics tools know exactly how they found you. They were originally created for Google Analytics but are now the universal standard for tracking marketing campaigns.
A tagged URL looks like this:
https://yourstore.com/products/candle?utm_source=facebook&utm_medium=cpc&utm_campaign=spring-sale
When a customer clicks that link and lands on your Shopify store, the UTM parameters tell you: this visitor came from Facebook, through a paid ad, as part of your spring sale campaign.
The Five UTM Parameters
There are five standard UTM parameters, three required and two optional:
Required Parameters
- utm_source: The platform or publisher sending the traffic (e.g.,
facebook,google,newsletter) - utm_medium: The marketing channel type (e.g.,
cpc,email,social,organic) - utm_campaign: The specific campaign name (e.g.,
spring-sale-2026,bfcm-retargeting)
Optional Parameters
- utm_content: Differentiates ad variations or links within the same campaign (e.g.,
hero-image,sidebar-link) - utm_term: Identifies the paid search keyword (e.g.,
buy+candles+online)
UTM Best Practices for Shopify
Follow these conventions to keep your data clean:
- Use lowercase only:
utm_source=Facebookandutm_source=facebookwill show as two different sources. Always use lowercase. - Use hyphens, not spaces: Replace spaces with hyphens in campaign names (
spring-salenotspring saleorspring%20sale). - Be consistent with source names: Decide once whether you use
metaorfacebookorfband stick with it everywhere. - Document your naming conventions: Keep a shared spreadsheet or use a UTM builder tool so your whole team follows the same system.
- Never use UTMs on internal links: Only tag links from external sources. UTMs on internal links overwrite the original traffic source.
Why UTMs Matter for Shopify Attribution
Ad platforms like Meta and Google track conversions using their own pixels, but these systems have significant blind spots:
- They cannot see what happens on other platforms, leading to double-counted conversions
- iOS privacy restrictions block much of their tracking
- They use attribution windows that may not match your purchase cycle
UTM parameters solve this because they are first-party data captured directly on your site. When a customer arrives with UTM tags and later places a Shopify order, you have a direct, tamper-proof connection between the marketing source and the sale.
UTMs in Detectly
Detectly automatically captures UTM parameters from every visitor session and ties them to Shopify orders. You do not need to manually parse query strings or set up custom reports. Just tag your links with UTMs, and Detectly handles the rest, showing you exactly which campaigns drive revenue in your ROAS dashboard.
For a step-by-step setup guide, see how to track UTMs on Shopify orders.
Related terms
First-Touch Attribution
First-touch attribution is an attribution model that gives 100% of the conversion credit to the very first marketing interaction a customer had with your brand.
Last-Touch Attribution
Last-touch attribution is an attribution model that gives 100% of the conversion credit to the last marketing interaction before a customer converts.
utm_campaign
utm_campaign is a UTM parameter that identifies the specific marketing campaign, promotion, or initiative that a link belongs to, such as spring-sale-2026 or bfcm-retargeting.
utm_medium
utm_medium is a UTM parameter that identifies the marketing channel type used to deliver traffic, such as cpc (paid search), email, social, or organic.
utm_source
utm_source is a UTM parameter that identifies which platform, website, or publisher sent traffic to your store, such as facebook, google, or newsletter.
Ready to see your true ROAS?
Detectly tracks every UTM, attributes every Shopify order, and shows you which channels actually drive revenue.