Web analytics fundamentals
Catch the UTM slips that split a campaign report before the link goes out
By Emily Parker · Dec 5, 2026 · 8 min read
Why a tagging slip becomes two rows, not an error
An analytics tool does not validate a campaign link. The visit arrives, and the tool records whatever the link said. Google's URL builder page states that parameter values are case sensitive: utm_source=google is different from utm_source=Google. It also says that missing UTM parameters result in "(not set)" values in reporting. Plausible's UTM checker page says the same about case, and adds that for UTM fields other than utm_source, mixed case means separate entries in your analytics.
One layer of the report hides the problem. Google says its default channel group definitions "aren't case sensitive," while the values in a source or medium row are. So a medium of Email and a medium of email can both land in the Email channel and still appear as two rows in a source and medium report. The channel total looks right, and the split sits one level down, where you read per-campaign numbers.
That is why the check belongs before the send. Once 4,000 people have clicked a link, the link is fixed. The rest of this post is a checklist you can run in about two minutes.
Check 1: source, medium and campaign are all there
Google's page says that when you add parameters to a URL, you should always use utm_source, utm_medium and utm_campaign. Plausible lists skipping utm_medium as a mistake of its own: without it, you cannot tell a newsletter from a banner ad.
A link with all three looks like this:
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=dec_launch
If one is missing, the visit is not lost. It is filed with a blank or "(not set)" value, and you find out when a row that should hold 400 visits holds 310.
Check 2: every value is lowercase
Google's best practice for tagging is to keep a strict naming convention and use lowercase, because "Meta" and "meta" count as separate values. Plausible's checker page puts it in two words: lowercase everything.
The common cause is not typing. It is copying. A campaign name pasted from a planning doc brings its capital letters with it, and a teammate who types LinkedIn into a second link creates a second row. Decide the spelling once, write it down (there is a sheet below), and paste from the sheet.
Check 3: no spaces in any value
A space in a value becomes %20 in the link. Plausible's checker page notes that raw spaces encode as %20 and can break when someone copies the link by hand. Use an underscore or a hyphen and keep to one of them.
Spaces also cost length. Google's collection limits page says "The encoded URL character length is used when counting character limits," so each space in dec launch counts as three characters, not one. The limit that matters for a long campaign link is on the page URL Google records with each page view.
Source: Google Analytics Help, [GA4] Collection, configuration, and other limits, 2026. Retrieved Dec 2, 2026.
The same page says Analytics does not log event parameters that exceed these limits, and it does not spell out what that means for a single tag near the end of a long link, so treat 1,000 characters as a budget to stay under. The example link in Check 1 is 90 characters. Most campaign links never get near the limit, but a link with a long utm_content value, a tracking ID and an encoded redirect can.
Check 4: one spelling per platform, and a medium the channel rules know
Plausible's checker page names inconsistent source names as a mistake: fb and Facebook split traffic in Google Analytics. Pick one source value per platform and use it on every link, for every campaign.
The medium needs more care, because Google's default channel group is built from rules on it. As the Google channel group page describes them:
- Email matches when the source or the medium is
email,e-mail,e_mailore mail. - Paid Social and Paid Search, for manually tagged links, need a medium that matches
^(.*cp.*|ppc|retargeting|paid.*)$. - Organic Social matches a medium of
social,social-network,social-media,sm,social networkorsocial media, or a source on its list of social sites.
So utm_medium=email matches the Email rule, and utm_medium=newsletter does not. utm_medium=paid_social matches the paid pattern through paid.*, and utm_medium=promo does not. Google's page says Unassigned is the value used when no other channel rules match. If you want a custom medium, that is fine, but expect it outside the default channels and decide that on purpose.
Check 5: tags come before the #, and each appears once
Everything after a # is a fragment, and a browser does not send it to the server. A link like https://example.com/pricing#plans?utm_source=newsletter carries no campaign data that a server or a page view request can see. The tags go in the query string, before the #:
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=dec_launch#plans
A repeated key is the other structural mistake. utm_source=a&utm_source=b gives two answers to one question, and which one wins depends on the tool reading it. Keep one of each key. The UTM checker named below lists both a repeated key and tags after the # among the errors it flags.
Check 6: tag only the links you send, and never mix tagging styles
Plausible's checker page warns that a UTM tag on an internal link overwrites the original referral source, so a visitor who arrived from search and clicked your tagged banner is now credited to the banner. Tag links that leave your site, not links between your own pages.
For ads, Google says that when manual tagging and auto-tagging are used together, Analytics uses the auto-tagged values for source, medium and the other traffic classification dimensions. Its page adds that utm_content and utm_term can still be added by hand and are read. So if a Google Ads link already carries a gclid, a hand-typed utm_source or utm_medium on top of it will not show up in the report, and it is one more value to keep consistent for nothing.
Visits from ChatGPT, Claude, Perplexity, Copilot and Gemini are counted from ordinary page views by their referrer, so there is no link of yours to tag in those cases. How to count visits from ChatGPT, Claude, Perplexity, Copilot and Gemini covers that side.
Two commands for what the eye misses
The first prints every tag in a link, then flags repeated keys, missing core tags, uppercase, spaces and tags stranded after the #. It needs Node 18 or newer and nothing else. Paste your link at the end:
node -e '
const link = process.argv[1];
const u = new URL(link);
const count = {};
for (const [k, v] of u.searchParams) {
count[k] = (count[k] || 0) + 1;
console.log(k + " = " + JSON.stringify(v));
if (v !== v.toLowerCase()) console.log(" UPPERCASE in " + k);
if (/\s/.test(v)) console.log(" SPACE in " + k);
}
for (const k in count) if (count[k] > 1) console.log("REPEATED " + k);
for (const k of ["utm_source", "utm_medium", "utm_campaign"]) if (!u.searchParams.has(k)) console.log("MISSING " + k);
if (u.hash.includes("utm_")) console.log("UTM AFTER # " + u.hash);
console.log("length " + link.length);
' 'https://example.com/pricing?utm_source=Newsletter&utm_medium=email&utm_campaign=dec%20launch#plans'
On that sample link it prints the three tags, flags UPPERCASE in utm_source and SPACE in utm_campaign, and ends with length 98. It does not check your spelling against your naming sheet. That part is yours.
The second follows redirects and prints where the link finally lands. Link shorteners, http to https redirects and a trailing slash rule can each drop the query string:
curl -s -o /dev/null -L -w '%{url_effective}\n' 'https://example.com/go/dec?utm_source=newsletter&utm_medium=email&utm_campaign=dec_launch'
If the printed URL still ends in your three tags, the redirect kept them. If it ends at https://example.com/pricing with nothing after it, every click on that link arrives untagged, and you have found that out before the send. Run it on the exact link you will paste, not on a cleaned up copy.
Keep a naming sheet so the checks stay short
A sheet of allowed values turns Checks 2 and 4 into a lookup. Ours would fit in a few lines, and yours can too:
source: newsletter, linkedin, x, producthunt, reddit
medium: email, social, paid_social, cpc, referral
campaign: <yyyy>_<mm>_<name> e.g. 2026_12_dec_launch
content: <variant> e.g. hero_button, footer_link
Source and medium come from a short list. Campaign and content are the only free text, and they follow one pattern. A link that uses a value not on the sheet is the one to look at twice, whether it was typed by you, a teammate or an agent writing copy for you.
Run the checks, then send one to yourself
For a second pair of eyes on one link at a time, the free UTM checker takes a tagged link, shows its UTM tags and catches the mistakes that split campaign data, in the browser. Peeko also has a free UTM builder that builds tagged links for X, LinkedIn, newsletters and ads in the browser, and nothing is stored. Neither replaces the naming sheet.
Then click the link yourself, from a clean browser window, and look at where the visit lands. That click is real traffic, so keep your own visits out of your site analytics before you read any totals, or you will count your own test. If you work from a terminal, reading your site traffic from a terminal with no dashboard open is a quick way to look at the result.
What these checks do not cover
They test the link, not the page behind it. A perfect link to a page that loads no analytics script records nothing, and seeing which analytics scripts a page loads without reading its source is the check for that. They also cannot see what an email platform or ad network does to a link after you paste it: some wrap links in their own redirect, which is why the curl command should run on the link as the platform will send it, where you can get that link.
After the send, give the campaign a few days before you judge it. Five numbers to read in the week after launch is a short list of what to look at first. If a campaign is already out with a mixed case value, do not edit the sent links. Write down both spellings and add the two rows together when you read the report. Then fix the sheet so the next link uses one.