Scheduled broken-link and redirect checks that tell you the moment a link breaks — linkbruno.com
Once you start extracting every href from a real site, you meet the same path a hundred times: /pricing?utm_source=newsletter, /pricing?utm_source=twitter, /pricing?utm_campaign=sale. Then you meet the more hostile cousins: click IDs, mail-tool wrappers, ref= codes, and preview tokens.
If the checker treats each one as a distinct URL, crawls get huge, reports get noisy, and people stop reading them. If it strips all query strings, it will never see the class of bugs that only happens when a query string is present: a redirect that drops it, a cache that keys on it badly, a WAF that blocks utm_, a page that 500s when an unexpected parameter appears.
Let's argue about it.
The case for ignoring tracking parameters
They usually don't change the page. For a large share of marketing URLs, utm_source and friends are for analytics. The resource is the path. Checking /pricing once is enough to know whether the page is up.
They explode the crawl. A popular article linked from six campaigns, each with utm_source, utm_medium, utm_campaign and a click id, is dozens of URLs. Multiply by a few years of emails and you are spending the budget on duplicates while deeper, untagged pages go unchecked.
They go stale in a way that isn't a broken link. An old utm_campaign=spring-2021 still 200s. Reporting it as "another URL" is clutter. Some wrappers expire and 404; that's a different issue, and it belongs to the wrapper domain, not your path.
Deduping is how other tools already work. Crawlers, some linters, and analytics all have a notion of a canonical path. A link checker that has none will disagree with everyone else and look broken.
The case for not ignoring them
The failure is often in the redirect of the parameterized URL. A trailing-slash or HTTPS rule that drops $args, a marketing redirector that dies on unknown parameters, a CDN cache key that serves the wrong page for some query strings: /pricing is 200 and /pricing?utm_source=ad is 404, 500, or a 301 to /pricing/ with the query gone. If you strip first, you never send the request that fails.
Some "tracking" parameters are not cosmetic. A ref might select a partner price. A gclid might be required by a landing-page script that throws if it is malformed. Session and magic-link tokens sometimes travel in the query string and look, to a naive denylist, like tracking.
Wrapper domains are real links. If your emails go through clicks.example.com/l/abc, that URL is the link the user clicks. Deduping it away to the destination you hope it points at will miss a broken shortener, an expired certificate on the click domain, or a campaign that was deleted in the ESP.
Canonical is a decision, not a regex. A global "ignore utm_*" is fine until someone names a functional parameter utm_token or you start ignoring fbclid on a page that needs it for a landing-page A/B test.
Where I've landed
I want the checker to request a sample of parameterized URLs, and to report mostly by canonical path.
- Always check the bare path, and treat that as the primary result for "is this page up?".
-
Keep a short list of functional parameters (
code,token,session_id,state,redirect_uri,page,id, and anything your app reads) that are never stripped. URLs with those are first-class. - For known tracking parameters, check a few representative URLs per path, not every unique combination. The assertion is: they return the same final status as the bare path, and a redirect (if any) preserves the parameters or documents that it won't.
- Do not follow email-click wrappers only as their destinations. Check the wrapper itself: DNS, TLS, and that it still 302s to somewhere live.
- Put the denylist in the repo so it can be reviewed. A hidden default in the tool will eventually swallow a parameter you needed.
A report full of UTM duplicates is unreadable; a checker that never sends a query string will miss the links that fail only when one is present. linkbruno.com checks the URLs on your pages on a schedule — and it is worth adding the campaign and callback URLs you actually send, not only the bare paths in the sitemap.
The parts I'm still unsure about
- How big the sample should be. One tagged URL per path feels thin; all of them is too many. I have used "one per source" and still missed a campaign-specific redirect.
- Whether a dropped UTM should be a failure. For payment and login, yes. For a blog post, maybe a warning. I don't love a two-tier policy, but one size has been worse.
-
Client-side routers that put tracking in the hash. The server never sees
#utm_..., so a server-side checker is blind no matter the policy.
A policy you can write in one paragraph
If I have to put this in a repo today, it is: "We always request the bare path. We always request URLs that carry functional parameters (code, token, session_id, state, page). For utm_*, fbclid, gclid and mc_cid, we request one example per path per week and fail the check if the final status differs from the bare path or if a redirect drops the query string. Click-wrapper hosts are checked as themselves." That is already better than a silent default in either direction.
A quick experiment
Take a day's access log, group by path, and count distinct query strings. Then rerun your last link-check report and see how many of those parameterized URLs you actually requested. The gap is your current policy, even if you never wrote one down.
Related reading
- Case study (hypothetical): a trailing-slash redirect stripped query strings and broke login, payments and every campaign link
- Should your link checker obey robots.txt? Let's argue about it
- Should your link checker run against production or the preview deploy? Let's argue about it
- Soft 404s: your 'page not found' returns 200, and your link checker thinks it's fine
Does your checker strip query strings today? Have you ever missed a break that only showed up with a UTM or a callback parameter on the URL?
Top comments (0)