What a UTM Parameters Generator Fixes, and the 36% It Can't
A UTM parameters generator builds the tagged links that go into ads and emails, so that each click arrives in Google Analytics 4 carrying its source, medium and campaign name. It prevents one kind of tracking error: a tag typed wrong or left off. It does nothing for the other kinds.
Here is how that split looks in one brand's quarter. The brand is Quellwood Provisions, a direct-to-consumer food brand that exists only as a synthetic dataset: Quellwood is a fictional company, and I generated its quarter of sessions, orders and ad spend. In that quarter the brand paid $72,621 for clicks. Of that, $5,064 bought clicks that never arrived in GA4 carrying a campaign name the spend sheet recognizes. A generator would have fixed $3,235 of it, or 64%. The other $1,829, or 36%, came from redirects, tag timing and bots, none of which a tag can reach.
I planted nine kinds of tracking defect in the dataset, each at a stated rate, so that every lost click has a known cause. In a real account the cause of a lost click is a guess. In Quellwood it is a line in the defect log I kept, which is what lets the $5,064 be split by cause to the cent.
Hand-typed tags lost $3,235 of the spend
Someone launching a Meta campaign at the end of the day pastes the URL parameters into the ad by hand, and the campaign value goes in as qw meta_pro_lookalike-buyers, with a space where the underscore belongs. Ads Manager accepts it. GA4 records it. The spend sheet calls the campaign qw_meta_pro_lookalike-buyers, so 463 visits from that campaign land under a name nothing matches.
Google's URL builder page says parameter values are case sensitive, so google and Google are different sources, and that missing parameters leave (not set) in the reports. Its channel rules are looser: channel definitions aren't case sensitive, and traffic matching no rule falls to Unassigned. A capitalization slip splits one campaign into several report rows. A misspelled campaign name loses the campaign entirely.
To find the untraced spend, I count each paid campaign's clicks in the spend sheet, count the GA4 sessions whose campaign name matches it, and price the gap at that campaign's cost per click. Then I look up each missing session in the defect log.
| Cause | Lost sessions | Untraced spend | A generator prevents it? |
|---|---|---|---|
| Link shipped with no UTMs | 3,736 | $2,590.30 | Yes, if every link passes through it |
| Campaign name misspelled | 841 | $637.79 | Yes, with a fixed list of names |
| Medium outside Google's channel rules | 10 | $6.70 | Yes, with a fixed list of mediums |
| Google Ads click ID lost on a redirect | 1,073 | $1,047.36 | No |
| Session with no session_start, reported as (not set) | 973 | $661.61 | No |
| Bot click with no session_start | 144 | $120.49 | No |
| Total | 6,777 | $5,064.25 | $3,234.79 yes, $1,829.46 no |
Where one lost session carries two defects, a tagging defect and something else, the table gives it to tagging. That favors the generator by $68.
Missing UTMs are the largest line, and most of it sits on two campaigns: $1,468 on the lookalike prospecting campaign and $923 on site-visitor retargeting. The other $198 is on the two remaining Meta prospecting campaigns. Those ads reached the site with a Facebook or Instagram referrer and no campaign at all. A generator closes this line only if launching an ad without its output is impossible, which is a process rule, not a feature of the tool.
The other $1,829 came from redirects, tag order and bots
The largest non-tagging line belongs to Google Ads. Google campaigns are auto-tagged with a click ID rather than UTMs, and when a landing URL redirects and drops the query string, the click ID goes with it. In Quellwood, 1,073 clicks lost it, all of them on the two non-brand search campaigns: $587 on gift boxes and $461 on chili crisp. The fix is a redirect test on each landing URL. A generator has nothing to act on.
The (not set) line is a tag firing out of order. A session whose first event is not session_start has no source, so GA4 reports it as (not set). It touches all 12 paid campaigns in small amounts that add up to $662.
Quellwood also paid $2,240 for invalid clicks in the quarter. Only $120 of it shows up as untraced. The other $2,120 arrived with the correct campaign tags, matched the spend sheet and counted as traced. GA4 excludes known bots and spiders automatically, and the same page says there is no way to see how much it removed. A perfect tag on a bot click makes that spend look accounted for.
Most unattributed sales were never a tagging problem
The same defects also hide sales. In Quellwood's quarter, 694 orders worth $61,682 reach GA4 with no campaign any attribution rule can credit, the same orders the comparison of GA4 attribution models could not score.
I traced each of those 694 orders back through the defect log I wrote when I generated the quarter, to the visits the buyer really made, and only 164 of them had a campaign touch that went missing. The $61,682 divides three ways:
- $45,686 (530 orders): buyers whose every visit was direct. No defect, nothing to recover.
- $9,271 (99 orders): a campaign visit lost to a missing UTM, a misspelled name or a medium outside Google's channel rules. A generator would have kept it.
- $6,725 (65 orders): a campaign visit lost to something else, mostly Safari splitting one returning buyer into two.
$45,686 + $9,271 + $6,725 = $61,682. The generator's share is 15%.
The Safari line comes from a published browser rule. Since 2019, Safari has capped cookies set by page scripts at a seven-day expiry. GA4's own JavaScript tag sets the _ga cookie that tells one visitor from another, so the cap applies to it. A Safari buyer who clicks an ad, waits more than a week and comes back direct to buy is two people to GA4. The ad click and the order end up on different visitor IDs, and the order looks direct even though its UTMs were correct.
Build the generator, then check what it cannot see
The generator is still the first fix to make, because it covers the largest share of the untraced spend. A shared sheet that builds every link from fixed lists of sources, mediums and campaign names, all lowercase, would have kept $3,235 of Quellwood's spend and $9,271 of its sales on the right campaign. Its value depends on the dropdowns, not the URL field: a free-text generator still accepts qw meta_pro_lookalike-buyers.
The sheet needs five columns. Here they are with one of Quellwood's Meta links.
| Column | How it is filled | Quellwood example |
|---|---|---|
| Landing page | Pasted in | https://quellwoodprovisions.com/collections/all |
| Source | Picked from a fixed list | facebook |
| Medium | Picked from a fixed list | paid_social |
| Campaign | Picked from the same list the spend sheet uses | qw_meta_pro_lookalike-buyers |
| Finished link | Built by formula, never typed | ...?utm_source=facebook&utm_medium=paid_social&utm_campaign=qw_meta_pro_lookalike-buyers |
What to do: build every link from fixed lists, and make the sheet the only place a link can come from.
The other $1,829, and the sales credited to the wrong source, take four checks a generator cannot do.
- Redirects. Test each landing URL and confirm the query string survives the redirect. In Quellwood this was $1,047 of the untraced spend.
- Tag order. Confirm that session_start is the first event a session fires. This was $662.
- Payment returns. Exclude the payment gateway's domain as a referral. In Quellwood's quarter, 238 orders worth $23,075 returned from the payment gateway in a fresh session that GA4 read as a referral from the gateway's domain. That defect moves credit to the wrong source instead of erasing it, and no tag can prevent it.
- Bot clicks. Compare the ad platform's invalid-click credits with what was billed, because GA4 will not report what it removed.
Data hygiene work runs into this often: the error people can see gets a tool, and the errors with no visible sign stay. The full Quellwood dataset and the four attribution rules run on it are published at Campaign Math, so each figure in the table can be recomputed from the export.
Send me your link sheet and a GA4 export
Send me the sheet your team builds campaign links in, last quarter's spend by campaign, and a GA4 export for the same quarter. I will match every paid click to a session and reply in writing with your untraced spend split two ways: what a generator would have caught, and what it would not. No call. Send it here.
Next step: Campaign & web analytics
Get the number for your own data. Seven business days.
Send your campaign exports and analytics export; get back your three most expensive data problems, in dollars, with a fix plan. Or start with the written intake: a few minutes by form, no call.
Private, expiring upload, never email. Mutual NDA before anything moves. Files destroyed within 30 days of delivery, with a certificate. Methods published, tools open source.