Skip to content

Add missing tracking parameters without breaking working links - #23

Open
heyandromeda wants to merge 2 commits into
mainfrom
cursor/tracking-parameter-audit-296d
Open

heyandromeda wants to merge 2 commits into
mainfrom
cursor/tracking-parameter-audit-296d

Conversation

@heyandromeda

@heyandromeda heyandromeda commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

URL Cleaner already removed the big click ids (utm_*, fbclid, gclid, msclkid, ttclid, igsh, and friends). This adds the gaps that showed up against current platform docs and cleaner lists (Brave, Firefox, ClearURLs), and keeps anything a page still needs.

  • 42 new parameters are removed on every site (Snap ScCid, Reddit rdt_cid, Klaviyo _kx, Beehiiv _bhlid, HubSpot __hstc, ShareASale sscid, Awin awc, and similar ad, email, and affiliate ids).
  • 89 parameters are removed only on the site that uses them, plus Amazon pd_rd_* and pf_rd_*.
  • X/Twitter s and t are stripped on x.com and twitter.com only. https://x.com/spacexsi?s=11 becomes https://x.com/spacexsi. The same names are left alone everywhere else, including YouTube timestamps and Amazon sort.
  • cvid used to be removed everywhere. It is now limited to Bing and MSN, because Microsoft’s real click id is still msclkid.
  • Paste, clean-on-paste, and batch cleaning all go through the same engine, so they pick this up automatically. The page layout is unchanged.

What stays on purpose

YouTube v, t, list, index, start, and end. Amazon th, psc, s, keywords, and smid. Reddit context. Facebook comment_id, story_fbid, and fb_comment_id. TikTok language. Google search q and hl. X redirect links (/i/redirect). Signed query params such as X-Amz-Signature.

Tests

npm test — 151 tests, 0 failures. That run also builds dist/. There is no separate linter in this repo. node --check is clean on the edited scripts.

Uncertain, left alone

YouTube kw, a bare Google gad, Bing form/sk/sp, Amazon rnid, Walmart affiliate params, Reddit Branch deep-link params, Instagram stkn, and the existing global scid (Snap’s documented name is ScCid, which is now covered as sccid).

Open in Web Open in Cursor 

Note

Medium Risk
Host-scoped rules reduce false positives but wrong host/path matching could still strip params a page needs or leave trackers on share links; regression surface is large though heavily tested.

Reviewed by Cursor Bugbot for commit 929c4af. Bugbot is set up for automated code reviews on this repo. Configure here.

…eed their parameters.

Recognize newer ad, email, and affiliate click ids, and remove share tokens only on the platforms that use them. YouTube playback, shopping variants, and signed URLs stay intact.

Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>
@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
url-cleaner Ready Ready Preview Oct 24, 2026 12:21pm UTC

@cursor

cursor Bot commented Oct 18, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 9b017a02-1a5a-4b4a-978d-7bdd44312f46)

cursor Bot pushed a commit that referenced this pull request Oct 24, 2026
Remove ref_src, ref_url, __hstc, __hssc, and __hsfp from this PR so #23
can own host-scoped X tags and HubSpot cross-domain params. Keep __hssrc.

Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>
heyandromeda added a commit that referenced this pull request Oct 24, 2026
…29)

* feat(engine): add 18 documented tracking parameters

Expand global TRACKING_PARAMETERS with Adobe, TikTok, Iterable,
Braze, Partnerize, Adjust, X intent, HubSpot, and Zanox ids.
Complements open PR #23 without duplicating its parameter set or
HOST_RULES work.

Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>

* fix(engine): correct tracking param names per vendor docs (PR #29 review)

Drop adj_t (Adjust link token on *.adj.st). Replace HubSpot _hsq with
__hstc/__hssc/__hsfp/__hssrc. Use X ref_src/ref_url. Fix Iterable names
per Shopify integration docs; drop unverified braze_c_id. Move clickref
and zanpid to aggressive-only. Expand tests with realistic URLs.

Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>

* chore(#29): defer ref_src/ref_url and HubSpot cookies to PR #23

Remove ref_src, ref_url, __hstc, __hssc, and __hsfp from this PR so #23
can own host-scoped X tags and HubSpot cross-domain params. Keep __hssrc.

Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>
Main added Adobe, Adjust, Iterable, and TikTok campaign tags plus the security and MCP work. This branch's site-specific rules stay, including X share parameters and HubSpot cookie ids that main's complement test had left for this change.

Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>
@cursor

cursor Bot commented Oct 24, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 6e1a44d3-eee3-496a-ab68-2d0fcc7d2f19)

@cursor

cursor Bot commented Oct 24, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: e6bedec9-829c-49b0-b31b-ab1f1933cce6)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T12:25:29.305656Z 929c4af Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch was successfully deployed

1 active deployment
Preview — 929c4af1 Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants