UTM Parameters for Shopify: The Complete Setup Guide
Step-by-step guide to setting up UTM parameters for your Shopify store. Track Facebook ads, Google campaigns, email, SMS, and every marketing channel accurately.

TL;DR
UTM parameters are tags added to URLs that tell analytics tools where your traffic came from. Shopify stores need three required parameters (utm_source, utm_medium, utm_campaign) on every ad, email, and social link to track which campaigns drive sales.
What Are UTM Parameters?
UTM (Urchin Tracking Module) parameters are tags you add to the end of URLs to track where your website traffic comes from. They're the foundation of marketing attribution.
When someone clicks a link with UTM parameters, your analytics tool captures that data and connects it to their purchase.
Example UTM Link
yourstore.com?utm_source=facebook&utm_medium=paid&utm_campaign=summer_sale_2026&utm_content=carousel_adThis URL tells your analytics: Traffic from Facebook, paid advertising, summer sale campaign, carousel ad creative.
What Are the 5 UTM Parameters and What Does Each One Do?
The five UTM parameters are utm_source (the platform), utm_medium (the marketing channel type), utm_campaign (the campaign name), utm_term (the keyword), and utm_content (the specific ad variation).
utm_source
RequiredIdentifies which platform/site sent the traffic.
Examples:
utm_medium
RequiredThe marketing medium or channel type.
Examples:
utm_campaign
RequiredThe specific campaign, promotion, or product.
Examples:
utm_content
OptionalDifferentiate ads or links within the same campaign (A/B testing).
Examples:
utm_term
OptionalIdentifies paid search keywords (mainly for Google Ads).
Examples:
Ready to see your real attribution?
What UTM Templates Should Shopify Stores Use?
Every marketing channel needs its own UTM template with consistent naming conventions — here are ready-to-use templates for the most common Shopify marketing channels.
Facebook/Meta Ads
yourstore.com?utm_source=facebook&utm_medium=cpc&utm_campaign={{campaign.name}}&utm_content={{ad.name}}Use dynamic parameters in Facebook Ads Manager to auto-fill campaign and ad names.
Google Ads
yourstore.com?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={adgroupid}Google Ads can auto-tag with gclid, but adding UTMs gives you more control.
yourstore.com?utm_source=instagram&utm_medium=paid&utm_campaign=influencer_collab&utm_content=story_swipeupDifferentiate between stories, posts, reels, and influencer content.
Email (Klaviyo, Mailchimp)
yourstore.com?utm_source=klaviyo&utm_medium=email&utm_campaign=welcome_series&utm_content=email_3Track each email in a sequence separately for accurate attribution.
SMS
yourstore.com?utm_source=sms&utm_medium=sms&utm_campaign=flash_saleKeep SMS links short - use a URL shortener that preserves UTMs.
TikTok Ads
yourstore.com?utm_source=tiktok&utm_medium=cpc&utm_campaign=spring_launch&utm_content=ugc_videoTikTok's dynamic parameters: __CAMPAIGN_NAME__, __AID__ for ad ID.
Influencer Marketing
yourstore.com?utm_source=influencer&utm_medium=social&utm_campaign=[influencer_name]&utm_content=bio_linkCreate unique UTMs for each influencer to track individual performance.
What Are the Best Practices for UTM Tracking on Shopify?
The most important UTM best practice is consistency: always use lowercase, use underscores instead of spaces, and follow the same naming convention across all campaigns and team members.
Use Lowercase Everything
"Facebook" and "facebook" are tracked separately. Stick to lowercase to avoid splitting data.
Use Underscores, Not Spaces
Spaces become %20 in URLs and look messy. Use underscores: summer_sale not "summer sale"
Be Consistent Across Campaigns
Create a naming convention document. If you use "fb" for Facebook once, use it everywhere.
Track Everything
Add UTMs to all marketing links: ads, emails, SMS, influencer posts, affiliate links, everything.
What Are the Most Common UTM Tracking Mistakes on Shopify?
The most common UTM mistake is inconsistent naming — using 'facebook' in one campaign and 'Facebook' or 'fb' in another, which splits your data across multiple source entries.
Inconsistent Naming
Using "facebook", "Facebook", "fb", and "meta" interchangeably fragments your data.
Missing UTMs on Email
Email is often the highest-converting channel but many stores forget to tag email links.
Using UTMs on Internal Links
Only use UTMs for external traffic. Internal links with UTMs overwrite the original source.
Too Much Detail
utm_campaign=black_friday_2026_v2_carousel_shoes_retargeting_lookalike_25-54 is overkill. Keep it readable.
How Do You Track UTM Parameters in Your Shopify Store?
Shopify doesn't natively report on UTM parameters in its analytics dashboard — you need an attribution app like BlackBox that captures UTM data from every visitor and connects it to purchases.
BlackBox Automatically Captures UTMs
BlackBox captures all UTM parameters from every visitor and connects them to purchases. You can see:
- Which campaigns drive the most revenue
- Complete customer journeys across touchpoints
- First-touch vs last-touch attribution
- Campaign ROI by source/medium
Key Takeaways
- •Every Shopify marketing link needs at minimum three UTM parameters: utm_source, utm_medium, and utm_campaign.
- •Use lowercase letters and underscores (never spaces) in all UTM values to prevent data fragmentation in analytics tools.
- •Shopify's native analytics don't report on UTM parameters — you need a dedicated attribution app to connect UTM data to purchases.
- •Facebook Ads, Google Ads, TikTok, email, and SMS campaigns all require unique UTM templates with consistent naming conventions.
- •Dynamic UTM parameters (like {{campaign.name}} in Facebook) automatically populate campaign details, reducing manual errors.
Conclusion
UTM parameters are the foundation of accurate marketing attribution. Without them, you're guessing which campaigns drive sales.
Start by adding UTMs to all your marketing links, use our free UTM Builder to generate them correctly, and track the results in BlackBox to see exactly where your Shopify sales come from.
Related Articles
Frequently Asked Questions
What Shopify merchants are saying
Reviews from the Shopify App Store
“Great app, easy to install, and way more affordable than the big-name attribution tools. Helps me make smarter decisions about my ad spend. Support has been responsive too. Worth every penny.”
LooksPretty
“This is a good app. I simply tried the app, and I would say it exceeded my expectations. The setup has been very easy and I got some pretty good insights. Support has been very responsive.”
Hustle Wear
“I was skeptical at $19/mo but this thing actually nails attribution better than tools I've paid way more for.”
Sydney Padel Club