UTM parameters are short tags you add to the end of a link so your analytics can tell where a visitor came from. Tag the link in a Facebook ad, an email or an influencer's bio, and every session that starts from that click is labelled with the source, channel and campaign you chose.
This guide covers what each parameter means, how to build tagged links that do not break, how to add them to Meta and TikTok ads, and where to read the results in GA4 and in Shopify.
Key takeaways
- UTM parameters are tags added to a URL that record where a visit came from.
- Source, medium and campaign are the three you should always set. Content and term are optional.
- Values are case sensitive, so pick lowercase names and use them everywhere.
- Meta and TikTok can fill in campaign and ad names for you with dynamic parameters.
- In GA4, read them in the Traffic acquisition report. In Shopify, add the UTM columns to the Sessions by referrer report.

What is UTM: A Comprehensive Overview
UTM parameters are tracking tags named after Urchin Tracking Module, the format they come from. Urchin Software built the format, Google bought the company, and its product became Google Analytics. The tags are now read by GA4, Shopify's own reports and most other analytics tools.
Without tags, a visit from an Instagram ad and a visit from an Instagram bio link can look the same in your reports. With tags, each carries its own label, so you can compare channels and campaigns and move budget to the ones that bring in sales.
Understanding UTM Parameters and Tracking
There are five standard UTM parameters:
- Source (utm_source): where the traffic comes from, such as
google,facebookornewsletter. - Medium (utm_medium): the type of channel, such as
cpc,emailorpaid_social. - Campaign (utm_campaign): the name of the campaign, such as
spring_saleornew_collection. - Content (utm_content): which version of an ad or link was clicked, useful for A/B tests.
- Term (utm_term): the keyword, mostly used for paid search.
Source, medium and campaign are the ones to set every time. Google's Campaign URL Builder treats them as required. GA4 also reads utm_id, the campaign ID, which matters if you import cost data into GA4.
Why UTM Parameters Matter
Most ad platforms report their own results, and each one counts conversions its own way. UTM parameters give you one independent record of where visits started, in the same analytics tool, for every channel. That makes it possible to compare a Meta campaign with an email campaign or a TikTok campaign on equal terms.
Decoding UTM Codes and Links
A tagged link is the normal page address followed by a question mark and the parameters, joined with &:
https://website.com/?utm_source=facebook&utm_medium=social&utm_campaign=spring_sale&utm_content=ad1&utm_term=discount_offer
Understanding UTM Components
Broken into its parts, that link has:
- Base URL: the page you want people to land on. The tags do not change where the link goes.
- UTM Parameters: everything after the
?. Each one is a name and a value:- utm_source=facebook: the platform that sent the visit.
- utm_medium=social: the type of channel.
- utm_campaign=spring_sale: the campaign the link belongs to.
- utm_content=ad1: which ad or link in that campaign was clicked.
- utm_term=discount_offer: the keyword, if there is one.
How It Works
When someone clicks the link, the parameters arrive with them in the page address. Your analytics tool reads them and attaches them to that session. Any purchase in the same session is credited to that source, medium and campaign.
The parameters are only read at the start of a visit. Do not add them to links between pages on your own site. A tagged internal link starts a new session with the internal tags and overwrites where the visitor really came from.
Exploring UTM Sources and Tags
The three main parameters answer three questions: who sent the visit, through which channel, and for which campaign.
UTM Source (utm_source)
The platform or publisher sending the traffic. Examples:
facebookgooglenewsletter
UTM Medium (utm_medium)
The type of channel. Examples:
socialorpaid_socialfor social media.emailfor email campaigns.cpcfor cost-per-click ads.
In GA4, the medium decides which default channel a visit falls into, such as Paid Social or Email. Use common values like cpc, email and paid_social. Values GA4 does not recognise can leave visits in the Unassigned channel.
UTM Campaign (utm_campaign)
The campaign or promotion. Examples:
- Launch campaigns, such as
summer_launch - Black Friday sales, such as
bfcm_2026 - Bundle deals, such as
starter_bundle
With all three set, you can see results by platform, by channel and by campaign.
How UTM Campaigns and Tagging Work
Give each campaign its own campaign value and you can compare them directly. For example, a store running a product launch on Instagram and a clearance sale by email might use:
- New Product Launch Campaign:
https://website.com/?utm_source=instagram&utm_medium=social&utm_campaign=new_product_launch - Clearance Sale Campaign:
https://website.com/?utm_source=newsletter&utm_medium=email&utm_campaign=clearance_sale
Each link's sessions and sales then get their own row in your reports.
Utilizing UTM Content and Terms
utm_content and utm_term are optional UTM parameters that split your results one level further.
UTM Content (utm_content)
Use this to tell apart versions of the same campaign: two ads for the same product, or the button and the text link in the same email. Each version gets the same source, medium and campaign, and a different content value.
UTM Term (utm_term)
This records the keyword for paid search. Google Ads can pass the keyword itself, so it is mostly useful on other search platforms or when you want your own labels. For example:
https://website.com/?utm_source=google&utm_medium=cpc&utm_campaign=photo_editing&utm_term=photo_editing_software
Where To Use UTM Parameters
Tag any link you control that points to your store from somewhere else:
- Social media posts and ads
- Email campaigns
- PPC and display ads
- Affiliate and influencer links
Social Media Campaigns
Tags on social links show which platform and which post sent the visit, alongside what your social media marketing pixels report. Use them to:
- Measure how each social ad performs in your own analytics.
- Compare two versions of a post or ad.
- Decide which platforms deserve more of your time and budget.
For paid ads, you do not need to type every value by hand. Meta and TikTok both support dynamic UTM parameters that fill in names at the moment of the click:
- Meta (Facebook and Instagram): in the ad's URL parameters field, use values such as
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}. You can also use{{adset.name}}. - TikTok: use macros such as
__CAMPAIGN_NAME__,__AID_NAME__for the ad group and__CID_NAME__for the ad.
After the ad goes live, click it and check the address bar in a private window. If the tags are missing, the platform or a redirect has stripped them.
Email Marketing
Email tools often add tags for you. Check what they add and make it match your naming. With tags in place you can:
- Compare the buttons and links inside one email.
- See which emails bring people to the store and which do not.
- Keep the campaigns that work and drop the ones that do not.
PPC & Display Ads
Paid ads cost money per click, so it pays to check them in your own analytics as well as the ad platform. Tags let you:
- Compare different ad types against each other.
- See which days and times bring in sales.
- Stop weak campaigns early.
Google Ads links to GA4 directly and can tag clicks automatically, so many stores use UTM tags mainly for the other platforms.
Affiliate or Influencer Links
Give every affiliate or influencer their own tagged link, usually with a different utm_content or utm_source each. This lets you:
- See which partners send the most visits and sales.
- Choose new partners based on what earlier ones achieved.
- Spot the kinds of content that work, and ask for more of it.
UTM vs URL: Key Differences
A URL is the address of a page. A UTM-tagged URL is the same address with tracking labels added at the end. Both open the same page.
- Standard URL:
https://website.com/products/hoodie - UTM-tagged URL:
https://website.com/products/hoodie?utm_source=facebook&utm_medium=social&utm_campaign=summer_sale
Use plain URLs for links within your own site, and tagged URLs for links from campaigns and other sites.
Tips for Effective Use of UTM Codes
Clean UTM data comes from a few habits: consistent names, tested links and regular checks.
1. Maintain Consistent Naming Conventions
UTM values are case sensitive. Facebook and facebook show up as two different sources in GA4 and in Shopify. Use lowercase, use underscores instead of spaces, and write the rules down in a shared sheet so everyone on the team tags links the same way.
2. Use URL Shorteners
Tagged links are long. Shorteners such as Bitly or Rebrandly make them tidier for social posts, QR codes and print. Check that the shortened link still lands on the tagged address.
3. Integrate UTM Tracking with Analytics Tools
In GA4, go to Reports, then Acquisition, then Traffic acquisition, and change the main dimension to Session campaign or Session source / medium. For your own views, build a report in the Explore section.
In Shopify, go to Analytics, then Reports, and open Sessions by referrer under Acquisition. Use Edit columns to add the UTM columns, and filter by campaign. Shopify's reports and GA4 count sessions differently, so expect the numbers to differ a little.
4. Regularly Audit UTM Links
Look through your campaign reports every month or so for typos, mixed capitals and values nobody recognises. Fix the source of the mistake, usually a template or a saved link, and add the right value to your naming sheet.
5. Avoid Overcomplicating Parameters
Set source, medium and campaign every time. Add content and term only when you will use them. More parameters than you need make reports harder to read.
6. Test UTM Links Before Launch
Click every tagged link before the campaign starts. Check that it lands on the right page, that the tags are still in the address, and that the visit shows up in your analytics realtime view. For paid campaigns, place a test order so you know the sale is credited to the campaign.
Conclusion
UTM parameters tell you which campaign brought each visitor to your store. Set source, medium and campaign on every outside link, keep the names lowercase and consistent, and check the results in GA4 and Shopify.
Tags tell you where a click came from. Your pixels tell the ad platforms what happened after it. Both need to be in place for your ad reports to be right. MultiPixels installs Meta, TikTok, Pinterest, Snapchat and GA4 pixels on a Shopify store without editing theme code. Install MultiPixels on your Shopify store to run several tracking pixels at once.
FAQs
What exactly is a UTM parameter?
A UTM parameter is a tag added to the end of a URL, such as utm_source=newsletter. Analytics tools read it when someone clicks the link and record where the visit came from.
Once someone clicks a tagged link, what actually happens with a UTM parameter?
The tags arrive with the visitor in the page address. Your analytics tool reads them, attaches them to that session, and credits anything the visitor does in that session, including a purchase, to the source, medium and campaign in the tags.
Are there best practices I should follow when setting these up?
Set source, medium and campaign on every link. Use lowercase values with underscores, keep a shared naming sheet, use standard medium values such as cpc and email, never tag links between your own pages, and test each link before launch.
Are UTM parameters case sensitive?
Yes. utm_source=Facebook and utm_source=facebook are counted as two separate sources. Use lowercase everywhere to keep them together.
Do UTM parameters affect SEO?
Not directly. They are for links in campaigns, emails and posts, not for your site's own pages. Keep them off internal links and off the website link in your Google Business Profile, so search engines and your analytics both see the plain page address.
How is a URL different from a UTM-tagged link?
A URL is the address of a page. A UTM-tagged link is the same address with tracking tags added after a question mark. Both open the same page; the tagged one also tells your analytics where the click came from.
Do I need special software to create UTM parameters, or can I do it by hand?
You can do either. A UTM builder such as Google's Campaign URL Builder fills in the format for you. By hand, add a ? after the page address, then each parameter as name=value, joined with &:
https://website.com/?utm_source=newsletter&utm_medium=email&utm_campaign=clearance_sale
When the page address already contains a question mark, add the tags with & instead.
After I’ve built a UTM link, where do I go in GA4 to see how it performed?
In GA4, go to Reports, then Acquisition, then Traffic acquisition. Change the main dimension to Session campaign to see each campaign, or Session source / medium to see each source. For a custom view, use the Explore section.
Where can I see UTM data in Shopify?
Go to Analytics, then Reports, and open Sessions by referrer under Acquisition. Click Edit columns and add the UTM columns. You can then filter the report by campaign.
In practical terms, what can I actually do with the data UTM parameters give me?
You can see which channels and campaigns bring visitors and sales, compare ads and emails against each other, check what ad platforms report against your own analytics, and move budget towards what works.
Why bother setting up UTM tracking if my traffic numbers already look fine?
Total traffic does not tell you where it came from. Without tags, visits from ads, emails and partner links blur together, and you cannot tell which ones to keep paying for.