Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

Are UTM Parameters Case Sensitive? Yes, and How to Stop Duplicate Rows

UTM values are case sensitive in GA4, which is why the same campaign shows up as two or three rows. This guide explains what case sensitivity affects, what it does not, and how to prevent and clean up duplicate source, medium and campaign values.

The EndFrame Team5 min read

You open the GA4 traffic acquisition report and see facebook / paid, Facebook / paid and FB / Paid as three separate rows, each with a slice of the same campaign's sessions. Nobody can say which number is right, and the total only adds up once someone exports everything to a spreadsheet. The cause is simple: UTM values are case sensitive. This guide explains exactly what that means, which parts of your reporting it affects, and how to stop it happening again.

The short answer: values yes, names should never vary

Google's documentation for campaign URLs is explicit: parameter values are case sensitive, and utm_source=google is a different value from utm_source=Google. GA4 records whatever string arrives in the URL and does not normalise it. So utm_campaign=Spring_Sale, utm_campaign=spring_sale and utm_campaign=SPRING_SALE become three campaigns, each with its own sessions, key events and revenue.

Parameter names are a different matter. GA4 documents them in lowercase, and the safe assumption is that only those exact names are read. A link with UTM_SOURCE or utm_Medium is not a duplicate row problem, it is a missing data problem: the value may never reach the source or medium dimension at all. If you are seeing (not set) rather than duplicates, our guide to UTM parameters not showing in GA4 covers that symptom.

What case sensitivity affects, and what it does not

The damage is not uniform. Some reports split, others quietly merge, which is why the problem often goes unnoticed for months.

Where you lookEffect of mixed caseWhy
Session source / mediumSplits into separate rowsDimension values are stored exactly as received
Session campaignSplits into separate rowsSame reason; campaign names are free text
Default channel groupUsually unaffectedGoogle states channel definitions are not case sensitive
Explorations and filtersFilters can miss variantsAn exact match on facebook will not catch Facebook
Looker Studio and BigQuerySplits unless you normaliseExports carry the raw value
Your CRM and other toolsDepends on the toolEach system applies its own matching rules

The channel grouping point matters. Because Google's default channel definitions ignore case, a top-level channel report can look healthy while the source and campaign reports underneath are fragmented. The problem shows up the moment someone asks how a specific campaign performed, which is the question UTMs exist to answer.

Where mixed-case values come from

  • Hand-typed links. One person writes Newsletter, another writes newsletter, a third writes NL. Without a written convention, every new team member invents their own.
  • Copying campaign names from the ad platform. Campaign names in ad managers often use title case and spaces, and pasting them into utm_campaign carries that formatting straight into GA4.
  • Spreadsheet autocorrect. Some spreadsheet tools capitalise the first letter of a cell, so a URL built with a formula can arrive with Email instead of email.
  • Agencies and partners. An influencer, affiliate or agency builds links to their own standard, which rarely matches yours.
  • Dynamic placeholders. Ad platform macros insert whatever the platform holds, such as a campaign name with capitals. That is fine as long as you know it happens and normalise it in reporting.

How to stop new duplicates

Prevention is far cheaper than cleanup, because nothing you do later rewrites what GA4 has already stored. Four habits remove almost all of the problem.

  1. 1Adopt lowercase everywhere. Google's campaign URL guidance recommends lowercase as standard practice. Write it into your naming convention for source, medium, campaign, term and content, with no exceptions for brand names.
  2. 2Pick one separator. Choose hyphens or underscores and use only that. Spaces become %20 or + depending on the tool, which creates yet another variant.
  3. 3Keep a list of allowed source and medium values. Most duplicates are in these two fields, and a short controlled list (facebook, google, newsletter; paid, email, social) is easy to enforce.
  4. 4Generate links instead of typing them. A builder that flags capital letters stops the mistake before the link ships. Our free UTM builder flags capitals and spaces and can lowercase values in one click, and a shared template works too.

If you do not yet have a written convention, our UTM naming convention template gives you a starting point, and the guide to utm_source vs utm_medium explains what belongs in each of the two fields that cause most of the splits.

How to clean up data you have already collected

GA4 does not offer a way to edit historical dimension values, so cleanup happens in the reporting layer. The options, from quickest to most robust:

  • Explorations: use a filter with a regex or contains match that is written to catch every variant, so your segment includes Facebook, facebook and FACEBOOK. This is fine for one-off questions but does not fix standard reports.
  • Looker Studio: create a calculated field with LOWER() on the source, medium or campaign dimension and report on that field instead of the raw one. Every chart built on it merges the variants automatically.
  • BigQuery export: apply LOWER() to the traffic source fields in your queries or in a cleaned view, so every downstream dashboard reads normalised values.
  • Custom channel groups: if the variants fall into different channels because they also differ in spelling, not just case, define a custom channel group whose rules cover each variant.

Whatever you choose, document the mapping. A short table of which raw values roll up into which clean value saves the next analyst from repeating the work and makes it obvious when a new variant appears.

Audit what you already have

Before you change anything, find out how bad the problem is. In GA4, open the traffic acquisition report, set the primary dimension to Session source / medium, extend the date range to the last few months and sort alphabetically. Variants that differ only in case sit next to each other and are easy to spot. Repeat with Session campaign. Then check the session counts on each variant: a long tail of low-volume capitalised rows usually means a few hand-built links, while two variants of similar size usually means two teams working to different conventions.

Next, trace each variant back to where the link is published: an email template, a social scheduling tool, an ad's URL parameters field, a partner's link. Fixing the source of a recurring link is worth far more than fixing a single campaign. Our wider guide to fixing UTM parameters for clean campaign tracking covers the other naming problems you are likely to find at the same time, such as spelling variants and missing mediums that land in Unassigned traffic in GA4.

Remember the other systems that read your UTMs

GA4 is rarely the only consumer. The same values end up in your CRM through hidden form fields, in your attribution tool, and in dashboards built by other teams. Each one applies its own matching rules, and some are stricter than GA4's channel grouping. A lowercase convention enforced at the point the link is created is the only fix that works for all of them at once. If you capture UTMs with a first-party tracker such as EndFrame, normalising values on capture means every downstream report, from lead source to campaign revenue, starts from the same clean value.

Frequently asked questions

Does GA4 automatically lowercase UTM values?

No. GA4 stores the value exactly as it arrives in the URL. Google's own campaign URL documentation states that utm_source=google is different from utm_source=Google and recommends lowercase as standard practice.

Can I merge Facebook and facebook in GA4 after the fact?

Not in the collected data itself. GA4 does not let you rewrite historical event values. You can merge them at the reporting layer, for example with a LOWER() calculated field in Looker Studio or in a BigQuery export query, and you can stop new duplicates by fixing the links.

Do capital letters in UTM values break channel grouping?

Usually not. Google states that GA4's default channel definitions are not case sensitive, so Facebook / Paid and facebook / paid should land in the same channel. The duplicates appear when you report on source, medium or campaign directly.

Are UTM parameter names case sensitive as well?

Treat them as if they are. GA4 documents the names in lowercase, such as utm_source and utm_campaign, and URL query keys are compared exactly by most software. A name like UTM_Source or utm_Campaign risks being ignored, so keep every name lowercase.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading