Remove Tracking Info from Links in Safari on Mac
In this article
When you copy a link from a webpage or an app and paste it into a message, email, or note, it often carries extra tracking parameters (like ?utm_source=... or ?fbclid=...) that let companies know where you clicked from. Safari on macOS can strip these automatically, so the link you share is cleaner and your browsing habits stay private. Here’s how to turn that on, plus a manual method for links you paste right now.
What You'll Need
- A Mac running macOS Ventura or later (for the automatic link-tracking removal setting).
- Safari as your default browser (the setting only applies to Safari).
- For the manual method, any macOS version with Safari.
Step-by-Step
Turn on Automatic Link Tracking Removal (macOS Ventura and later)
- Open Safari on your Mac.
- From the menu bar at the top of the screen, click Safari and then Settings (or press Command + ,).
- Click the Advanced tab at the top of the Settings window.
- Look for the section labeled Privacy.
- Check the box next to “Remove tracking parameters from links”. (The exact wording may be slightly different depending on your macOS version, but it’s under Advanced > Privacy.)
- Close the Settings window. Safari will now automatically strip known tracking parameters from links you copy and share.
This setting works when you copy a link from Safari and paste it elsewhere. It does not affect links you receive or open—only the ones you copy out of Safari.
Manually Remove Tracking Parameters from a Copied Link
If you’re on an older macOS version or you want to clean a link you already copied, do this:
- Copy the link as you normally would (right-click > Copy Link, or press Command+C on the address bar).
- Paste it into a plain text editor like TextEdit (make sure it’s in plain text mode, not rich text) or into the address bar of Safari.
- Look for the
?character in the URL. Everything after that is the query string, which often contains tracking parameters. - Delete the
?and everything after it, unless you see parameters that are necessary for the page to work (like?id=123for a product page). If you’re unsure, test the cleaned link in a private window first. - Copy the cleaned link and use it.
Use a Shortcut or Third-Party Tool (Optional)
If you frequently share links and want a faster way, you can create a Shortcut in the Shortcuts app that takes a link as input, strips the query string, and returns the clean link. However, this requires some setup and isn’t necessary if the built-in setting works for you.
Common Mistakes
- Forgetting to update macOS: The automatic removal setting only exists in macOS Ventura (13) and later. If you don’t see it, check your macOS version under Apple menu > About This Mac.
- Deleting too much: Some URLs use query parameters that are essential, like
?page=2on a forum or?id=123on a product page. Removing them can break the link. - Expecting it to work on links you receive: The setting only cleans links you copy from Safari, not links you click on from other apps.
- Using a different browser: The setting is Safari-only. If you copy a link from Chrome or Firefox, it won’t be cleaned.
Tips
- Test before sharing: After cleaning a link manually, open it in a private window to make sure it still loads the right page.
- Use a link cleaner service: Websites like tidy.link or unshorten.link can strip tracking parameters, but they are third-party services—use them only if you trust the site.
- Enable the setting on all your Apple devices: The same toggle exists in Safari on iPhone and iPad (Settings > Safari > Advanced > Privacy), so you can keep your links clean everywhere.
- Be aware of URL shorteners: Shortened links (like bit.ly) often hide tracking parameters. The built-in setting won’t expand them, so you may need to expand the short link first to see what’s inside.
Troubleshooting
I don’t see the “Remove tracking parameters” option
This means you’re running an older macOS version. Update your Mac via System Settings > General > Software Update. If you can’t update, use the manual method above.
The setting is on, but links still have tracking parameters
First, make sure you’re copying the link from Safari, not from another app. Second, the setting only removes parameters that Apple has identified as tracking—it may not catch every single one. For a stubborn link, use the manual method.
I cleaned a link, but it doesn’t work
You probably removed a necessary parameter. Restore the original link and try a different approach: copy the link, paste it into a note, and then manually delete only the obvious tracking parts like utm_, fbclid, gclid, or mc_eid.
Safari keeps asking me to confirm before pasting
This is a separate privacy feature. You can adjust it in Safari > Settings > Advanced—look for the section about “Ask before pasting” and turn it off if you prefer.
Frequently Asked Questions
Does this work on links I click, not just copy?
No, the setting only affects links you copy from Safari. It does not alter links you receive or click on.
Will this break any links?
It can, if a website uses query parameters that are essential for the page to load (like a session ID). In practice, most tracking parameters are safe to remove, but test if you’re unsure.
Can I turn it off later?
Yes, just uncheck the same box in Safari > Settings > Advanced.
Does this work on iPhone or iPad?
Yes, the same toggle exists in iOS/iPadOS 16 and later under Settings > Safari > Advanced > Privacy.
What about links in emails or messages?
The setting only cleans links you copy from Safari. Links you receive in emails or messages are not affected.
Are there any tracking parameters that can’t be removed?
Apple’s list covers the most common ones (like UTM, Facebook, Google Ads), but new parameters appear over time. If you see a long string after ? and you’re not sure, remove the whole query string and test.