Skip to content

feat(engine): add documented tracking parameters (complement PR #23) - #29

Merged
heyandromeda merged 4 commits into
mainfrom
cursor/add-missing-tracking-params-f96f
Oct 24, 2026
Merged

heyandromeda merged 4 commits into
mainfrom
cursor/add-missing-tracking-params-f96f

Conversation

@heyandromeda

@heyandromeda heyandromeda commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Review fixes (vendor-verified)

Documentation citations used for each decision:

Item Resolution Official source
adj_t Not stripped (removed from global list). Adjust universal links use adj_t / adjust_t as the link token on *.adj.st (Adjust: Create a universal link, Test universal links). Standard click URLs use the path token on app.adjust.com. adj_campaign / adj_adgroup / adj_creative still strip on landing URLs.
_hsq Removed — not a URL param. Not added here: __hstc, __hssc, __hsfp (see overlap note below). This PR adds only __hssrc (HubSpot CTA FAQ).
twcamp / twsrc Removed — values inside ref_src, not param names. Not added here: ref_src, ref_url (see overlap note below).
Iterable Added documented integration keys: iterable_campaign, iterable_template, __iterable_campaign_id, __iterable_template_id, _iterable_campaign_id, _iterable_template_id (Iterable Shopify integration).
braze_c_id Dropped — not a standard destination query param (Braze email click events).
clickref / zanpid AGGRESSIVE_PARAMETERS only (affiliate policy).

Global parameters in this PR

  • Adobe: adobe_mc, adobe_mc_sdid, icid
  • TikTok: tt_medium, tt_content
  • Adjust (destination labels): adj_campaign, adj_adgroup, adj_creative
  • HubSpot: __hssrc only
  • Iterable (Shopify integration): iterable_campaign, iterable_template, __iterable_campaign_id, __iterable_template_id, _iterable_campaign_id, _iterable_template_id

Overlap with PR #23

Open #23 also extends TRACKING_PARAMETERS in cleaner.js (including __hstc / __hssc / __hsfp and host-scoped ref_src / ref_url on x.com / twitter.com). Whichever PR merges second should rebase onto the other and resolve the combined TRACKING_PARAMETERS / HOST_TRACKING_PARAMETERS set in one pass.

Tests

Open in Web Open in Cursor 

Note

Low Risk
Behavior change is limited to stripping additional known tracking query keys; tests explicitly guard adj_t, functional params, and aggressive-only affiliate keys.

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

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>
@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 11:41am 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: ddd7a533-f964-4612-a159-d627aa986f83)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 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-18T18:39:18.507372Z 8cc8e18 PR opened
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8cc8e18ddd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cleaner.js Outdated
"pk_campaign", "pk_kwd", "pk_source", "pk_medium", "pk_content", "pk_cid",
"adobe_mc", "adobe_mc_sdid", "icid", "tt_medium", "tt_content", "clickref",
"iterable_campaign_id", "iterable_template_id", "iterable_link_id", "braze_c_id",
"twcamp", "twsrc", "adj_t", "adj_campaign", "adj_adgroup", "adj_creative",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the Adjust link token

For Adjust long branded links such as https://example.go.link/custom-path?adj_t=..., adj_t is the link token that selects the configured app, deep-link, redirect, and fallback—not merely campaign metadata. Adding it to the global removal set makes cleanUrl delete that token and can prevent the cleaned link from reaching its intended destination; Adjust’s documented link format explicitly places the link token in adj_t. Preserve this parameter by default rather than stripping it globally.

Useful? React with 👍 / 👎.

…iew)

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>
@cursor cursor Bot changed the title feat(engine): add 18 documented tracking parameters (complement PR #23) feat(engine): add documented tracking parameters (complement PR #23) Oct 24, 2026
@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: 0a05d274-2c0e-44e9-b8b7-0f628c4da87c)

cursoragent and others added 2 commits October 24, 2026 11:41
Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>
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>
@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: 7d5c69c5-b65e-4677-a9a5-392297716c12)

@heyandromeda
heyandromeda merged commit 8f97fd6 into main Oct 24, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 51a56f0b 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