What a shared link says about you, and the part you can delete
Copy a link from a newsletter, an ad or an app's share button and it often comes with a tail. The address of the page is at the front, and after the question mark come parameters that have nothing to do with the page: where you saw the link, which campaign sent it, and often a unique id for your click. When you share that link, the tail goes with it, and the next person's visit is counted as part of your click.
Here is a typical one: https://shop.example.com/boots?size=9&utm_source=newsletter&utm_medium=email&fbclid=IwAR2x#reviews. The page is the boots page, size=9 picks the size, and #reviews jumps to the reviews. utm_source and utm_medium tell the shop's analytics the visit came from an email newsletter. fbclid is a click id added by Facebook. Paste it into the box above and you get https://shop.example.com/boots?size=9#reviews. Three parameters are gone, the size and the jump to the reviews are kept, and the page you open is the same.
Two kinds of parameter are removed. The utm_ tags are campaign labels. They are not unique to you, but they still say where you found the link. Click ids such as fbclid, gclid from Google Ads and msclkid from Microsoft Ads are different: each one is generated for a single click, so the platform can tie a visit, and anything you buy, back to the person who clicked. Some names are only removed on the sites that use them for tracking. On YouTube and Spotify, si is a share id that links the person who shared to the people who opened it. On another site, si might be a real setting, so it is kept.
The cleaning is deliberately careful with the rest of the link. It does not rebuild the address through the browser's URL parser, which would change the case of the host name and re-encode characters in the path. Instead the query string is edited as text: the parameters to drop are cut out and everything else, including its order and its escapes, stays as it was. When the text is a whole message, each link ends where the sentence does, so a full stop or a closing bracket after a link stays in the message and not in the URL.
There are limits. The list covers the tracking parameters in common use, not every one a site could invent, so a less common tag may stay. Redirect links, such as the ones Google and Facebook wrap around outbound links, carry the real address inside a parameter, and short links such as bit.ly hide it on a server. This page never opens a link, so it cannot unwrap either kind. Open the link first, then clean the address you land on.