Cleaning
Before a link reaches any browser, Ferry cuts tracking parameters and unwraps redirect wrappers, and shows you exactly what it removed.
What gets removed
Before
https://example.com/a%2Fb?x=1&utm_source=news#fragAfter
https://example.com/a%2Fb?x=1#fragTrace
Mail → ✂ utm_source → no rule matched (0 of 2) → ask
Ferry removes these parameters, wherever they appear:
| Parameter | From |
|---|---|
utm_* |
Analytics campaign tags (utm_source, utm_medium, and the rest) |
fbclid |
|
gclid, dclid |
Google Ads, DoubleClick |
msclkid |
Microsoft Ads |
mc_cid, mc_eid |
Mailchimp |
igshid |
Redirect wrappers
Some apps don’t link to a page directly. They link to their own server, which then redirects. Ferry skips the detour.
Before
https://www.google.com/url?q=https%3A%2F%2Flinear.app%2Facme&sa=DAfter
https://linear.app/acme| Wrapper | Real link is in |
|---|---|
google.com/url |
q |
l.facebook.com/l.php |
u |
slack-redir.net/link |
url |
*.safelinks.protection.outlook.com |
url |
Unwrapping happens first, so your rules match the real destination, not the wrapper.
What Ferry will not touch
Cleaning edits the link as text. Everything it doesn’t remove is kept byte for byte:
- Encoding.
%2Fstays%2F. - Order and duplicates.
?id=1&id=2stays exactly that. - The fragment.
#sectionis never edited. - Anything not on the list. Removing an unknown parameter such as
idortokencan break a link, so Ferry leaves it. When in doubt, it keeps.
When every parameter is removed, the ? goes too. No dangling punctuation.
Try it
ferry clean "https://example.com/?utm_source=a&fbclid=b&id=1"
https://example.com/?id=1
removed: utm_source, fbclid
Turning it off
- Everywhere: Settings › Advanced › Remove tracking parameters and unwrap redirects.
- For one rule: add
clean = false. Links that rule catches keep their parameters.
[[rules]]
name = "Campaign previews"
host = "preview.example.com"
intent = "work"
clean = false