seo(robots): block external tracking params from being crawled - #5331
Open
vfanucci wants to merge 1 commit into
Open
seo(robots): block external tracking params from being crawled#5331vfanucci wants to merge 1 commit into
vfanucci wants to merge 1 commit into
Conversation
The GSC "Alternate page with proper canonical tag" drilldown (17/08) shows a tail of URLs that keeps growing: ?clid= (94 in the 1000-row sample, crawled through 15/08), ?from_theconsensus=1 (27) and the HubSpot __hstc/__hssc/__hsfp set (15). All three come from inbound links, not from our own markup. They all canonicalise correctly, so there is no ranking impact — this is purely crawl budget. It matters because the params land mostly on /docs/* and /plugins/*, the pages we most want crawled efficiently. Only the ?param= form is needed: in the sample all 94 clid, 27 from_theconsensus and 15 __hstc occurrences are the first query parameter, and __hssc/__hsfp always follow __hstc, so a single rule covers HubSpot. No over-blocking: /*?clid= requires the literal "?clid=", so ?fbclid= and ?gclid= are unaffected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds three
Disallowrules to robots.txt.ts for tracking parameters appended by inbound links (not by our own markup):Why
Follow-up to #5195. The GSC Coverage → "Alternate page with proper canonical tag" drilldown exported on 17/08 shows 6 850 affected pages. The bulk of that (~5 800, discovered 11/07) is the
/blueprints?tags=facet trap already fixed by #5195 — the last crawl date on every one of those URLs is 28/07, the day that PR merged, so that stock is frozen and draining.What is still growing is a tail of external tracking params, crawled through 15/08:
?clid={i,h,p,t})?from_theconsensus=1__hstc/__hssc/__hsfpThese all canonicalise correctly, so there is no ranking impact — this is purely crawl budget. It's worth fixing because the params land mostly on
/docs/*and/plugins/*, the pages we most want crawled efficiently.Notes on the rules
?param=form is needed. Google's*wildcard doesn't span the?, so/*?utm_(existing) matches only when the param is first. In the sample, all 94clid, 27from_theconsensusand 15__hstcoccurrences are the first query parameter, and__hssc/__hsfpalways follow__hstc— so one rule covers the whole HubSpot set./*?clid=requires the literal?clid=, so?fbclid=and?gclid=are unaffected.Verification
This route is DEV/PREVIEW-gated (
disabled→Disallow: *), so the preview deploy can't exercise the change. Rendered the production branch of the template directly to confirm output and formatting:Caveat on the numbers: GSC caps the drilldown table at 1 000 rows, so the per-param counts are a sample of the 6 850 — indicative proportions, not exact totals.
🤖 Generated with Claude Code