Tracking and analytics Guide 6 min read

UTM Parameters for Ecommerce: A Naming System That Holds Up

Inconsistent UTM tags split one campaign across many rows. Use this naming system for UTM parameters in ecommerce, and check it in GA4 before a sale.

In this guide

Key takeaways

  • Always set utm_source, utm_medium and utm_campaign. Google says missing values show up as (not set) in reports.
  • UTM values are case sensitive, so Email and email count as two sources. Write everything in lowercase.
  • Keep one shared sheet of allowed sources and mediums, and build every link from it, not from memory.
  • Click a tagged link yourself and find its values in GA4 before the sale, not after.

UTM parameters on ecommerce links decide whether your campaign reports can be trusted. Tags added by hand, by different people, produce rows like “Email”, “email” and “newsletter” for the same thing, and the numbers fall apart. This guide gives a simple naming system that holds up: what each field is for, rules for filling it in, a sheet to copy, and how to check the tags in GA4 before a sale starts.

What each UTM field is for

A UTM parameter is a short label added to the end of a link. When someone clicks, GA4 reads the labels and records where the visit came from. Google’s help page lists several, and says that when you add parameters you should always use three of them.

Parameter What it answers Example value Needed?
utm_source Which platform sent the click newsletter, instagram, google Always
utm_medium Which kind of channel it was email, paid_social, cpc Always
utm_campaign Which campaign or promotion bfcm_2026_early_access Always
utm_content Which version of the ad or email hero_button, video_a Optional
utm_term Which paid keyword running shoes Optional
utm_id A campaign ID to tie data together bfcm26 Recommended by Google

Google’s page also recommends setting every parameter that applies, and warns that missing UTM parameters result in “(not set)” values in reporting. So a link with only a source is worse than it looks: the medium and campaign columns fill up with “(not set)”.

A naming convention that holds up

Most UTM problems are spelling problems. These rules prevent them:

  1. Lowercase only. Google’s help page says parameter values are case sensitive. Email and email become two sources.
  2. No spaces. Use an underscore: black_friday, not black friday. Spaces turn into %20 in the link and make reports harder to read.
  3. One name per platform. Pick instagram or ig, once. The same goes for mediums: choose email for every email, and never newsletter in one place and e-mail in another.
  4. Dates in the campaign name. bfcm_2026_early_access tells you which year it was without opening the campaign.
  5. One owner for the list. One person approves new names. Everyone else picks from the sheet.

These are my suggestions, not Google rules. The point is only that you choose a convention, write it down, and build links from it.

Common mistakes that wreck the data

What you see in GA4 Likely cause Fix
The same channel split into several rows Different spelling or capital letters Lowercase, one name per platform
Many “(not set)” values A link with only some of the three required tags Build every link from the sheet
Email or SMS visits show as “direct” Links in the message carry no tags Tag every link in every message
Paid search numbers look off Google Ads auto-tagging and manual tags both present Read the next section before you tag Google Ads links
Your own banner clicks show up as a campaign Internal links tagged with UTMs Remove the tags and measure the click as an event

Email and SMS deserve a special mention, because they are the two channels most often forgotten. A message opened in an app often arrives with no referrer, so without tags the visit is recorded as direct traffic. Tag each link in each message.

If you run Google Ads with auto-tagging on, Google adds its own identifier to the link. Google’s help page on manual tagging says that when both are present, GA4 uses the auto-tagged values for source, medium and the other traffic dimensions. The page also describes cases where the identifier cannot be used as intended, and then UTM values take over. The safe approach is to leave auto-tagging on for Google Ads, use your own UTM tags for everything else, and ask whoever manages the ads before you change anything.

A sheet to copy

Keep this in a shared spreadsheet. Add rows when you start a new channel, and nowhere else. The example link uses example.com, a placeholder: use your own store address.

Channel utm_source utm_medium Example campaign
Email newsletter newsletter email bfcm_2026_early_access
Automated email flow email_flow email abandoned_cart
SMS sms_blast sms bfcm_2026_last_call
Paid social ads instagram paid_social bfcm_2026_prospecting
Organic social post instagram organic_social bfcm_2026_teaser
Influencer creator_name influencer bfcm_2026_code
QR code on packaging packaging_insert qr reorder_2026

A finished link then looks like this:

https://example.com/collections/sale?utm_source=newsletter&utm_medium=email&utm_campaign=bfcm_2026_early_access&utm_content=hero_button

Google offers URL builders in its Analytics Help, so you can assemble links without typing the parameters by hand. Whichever tool you use, paste the source and medium from the sheet.

Check the tags in GA4 before the sale

A tag that is written correctly can still fail to arrive. Test it:

  1. Build one link for each channel from the sheet.
  2. Open each in a private window, as a visitor would, and add something to the cart.
  3. In GA4, open a report or an exploration and look for your values in the source, medium and campaign dimensions. Google’s help page says the parameters and their values appear as dimensions in your reports and explorations.
  4. Look for any “(not set)” value, and for spelling you did not intend.
  5. Fix the sheet or the link, and test again.

Data in GA4 can take a while to show, so do this a few days before the sale, not on the morning. The GA4 tracking audit shows how to check that purchases and revenue are recorded correctly once the traffic arrives.

Cleaning up messy data you already have

Past data keeps the values it was recorded with, so you cannot rename a row after the fact. What you can do:

  • Fix the convention now, so every new campaign is consistent.
  • When you compare this year with last year, add the old variants together by hand: “Email”, “email” and “newsletter” are one channel.
  • Write a one-line note in the sheet saying when the new convention started, so anyone reading old reports knows where the break is.

A pre-sale checklist

The Black Friday readiness checklist covers the rest of the preparation. For UTM tags specifically:

  • A shared sheet of allowed sources and mediums exists, with one owner
  • Every link in every email and SMS carries utm_source, utm_medium and utm_campaign
  • All values are lowercase, with underscores and no spaces
  • Campaign names include the year
  • Google Ads auto-tagging has not been switched off by mistake
  • No internal link on the site carries UTM tags
  • One test link per channel was clicked, and its values were found in GA4
  • No unexpected “(not set)” values appear in the test
  • Everyone who builds links has the sheet

When it is worth getting help

You can do most of this with a spreadsheet and an afternoon. Bring in a developer when:

  • GA4 shows traffic you cannot explain, even after the tags are clean.
  • Your checkout runs on a different domain and visits lose their source on the way.
  • Several tools add tags on their own and they disagree with each other.
  • Orders in your store and purchases in GA4 do not match.

I set up GA4 and Tag Manager tracking, including consent, as part of my work on the Cosmo Together Shopify Plus store, which is in selected work. If your campaign numbers do not add up, send me the store address and what you see. I will reply with what I think is causing it and what I would check first. The speed, SEO and tracking page describes how I work on this.

Common questions

Which UTM parameters do I actually need?

Three: utm_source, utm_medium and utm_campaign. Google's help page says to always use them when you add parameters to a URL. The others, such as utm_content and utm_term, are optional extras that help when you test two versions of the same ad or email.

Are UTM values case sensitive in GA4?

Yes. Google's help page says parameter values are case sensitive and gives utm_source=google versus utm_source=Google as an example of two different values. That is why a naming sheet in lowercase saves you from split rows in your reports.

Should I put UTM tags on links inside my own website?

I would not. The tags describe where a visitor came from, not where they clicked on your site. For banners and menu links, measure the click with an event, and keep UTM tags for links that live on other platforms.

Can I fix messy UTM data I already collected?

Not in the past data: it keeps the values it was recorded with. Fix the naming from now on, and when you compare periods, add the old variants together by hand. A clean naming sheet makes the next comparison simple.

Sources and further reading

Tell me what's not working.

Send the store address and a few lines about the problem. I'll reply with what I think is causing it, what I'd do first, and whether I'm the right person for the job.

Email
hi@m-ali.dev
Reply time
I usually reply within one business day.

I usually reply within one business day.

I use your details only to reply to you. Privacy notice

Keep reading