HomeTodayPerformance ReportInsightsFlow MapsUTM BuilderSettingsSupport
UTM Tracking|12 min read

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.

UTM parameters for Shopify — how to tag Facebook, Google, and TikTok campaigns

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_ad

This 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

Required

Identifies which platform/site sent the traffic.

Examples:

facebookgoogleinstagramtiktokemailklaviyosms

utm_medium

Required

The marketing medium or channel type.

Examples:

cpcpaidorganicemailsocialreferralaffiliate

utm_campaign

Required

The specific campaign, promotion, or product.

Examples:

black_friday_2026summer_salenew_collectionretargeting_cartwelcome_series

utm_content

Optional

Differentiate ads or links within the same campaign (A/B testing).

Examples:

video_adimage_carouselheadline_acta_buttonfooter_link

utm_term

Optional

Identifies paid search keywords (mainly for Google Ads).

Examples:

running_shoesorganic_coffeeyoga_matwireless_headphones

Ready to see your real attribution?

or install directly
.myshopify.com
50 orders free2-min setupNo credit card required

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.

Instagram

yourstore.com?utm_source=instagram&utm_medium=paid&utm_campaign=influencer_collab&utm_content=story_swipeup

Differentiate 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_3

Track each email in a sequence separately for accurate attribution.

SMS

yourstore.com?utm_source=sms&utm_medium=sms&utm_campaign=flash_sale

Keep 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_video

TikTok'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_link

Create 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.

Frequently Asked Questions

5.0

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

France6 days using the app

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

India5 days using the app

I was skeptical at $19/mo but this thing actually nails attribution better than tools I've paid way more for.

Sydney Padel Club

Australia

Ready to see your real attribution?

or install directly
.myshopify.com
50 orders free2-min setupNo credit card required