Home / Workflow Guides / Apple Shortcuts Guides
Privacy & Sharing Hygiene 6 Min Step-by-Step Guide

Privacy Shortcut: Strip Tracking Parameters (?utm, fbclid, igsh) & Short Links Before Sharing URLs

Ever paste an Amazon, Instagram, TikTok, or news link into a group chat and watch 4 lines of ugly ?igsh=, fbclid=, and affiliate tracking IDs fill the screen? Strip trackers in 1 tap from the Share Sheet.

Apple Menu / Shortcut PathShare Sheet > "Copy Clean Link" Shortcut
Supported PlatformsiOS 17 / iOS 18+, iPadOS 17 / 18+, macOS Sonoma & Sequoia / Tahoe
Cost & Privacy100% Free Native Built-In Workflow • Zero Paid App Subscriptions
Companion Browser UtilitymacOS Shortcut Cheat Sheet →

Why This Workflow Matters for Everyday Mac & iOS Users

Modern social apps and retail sites append personal share identifiers (which can even reveal your Instagram/TikTok profile to anyone clicking the link!) plus 250 characters of tracking parameters onto shared URLs. A lightweight 4-action Apple Shortcut strips query clutter cleanly while keeping essential product or video IDs intact—right from the iOS Share Sheet or Mac clipboard.

Across remote teams, creative studios, university campuses, and small businesses in the worldwide, small daily friction points compound rapidly. Replacing clunky third-party workarounds with deterministic native Apple features reduces subscription fatigue, keeps confidential personal and client data off external servers, and ensures your workflow behaves identically whether you are sitting at a Studio Display at home or working from an iPhone on the go.

Quick Readiness Checklist Before You Start

  • Apple Shortcuts on iPhone, iPad, or Mac
  • Optional: Bookmark macOS Shortcut Cheat Sheet in your Safari Favorites bar for instant companion browser tasks.

Step-by-Step Walkthrough

1

Accept URLs from the Share Sheet (Fallback to Clipboard)

Create a Shortcut named `Copy Clean Link` and enable `Show in Share Sheet` accepting `URLs` and `Safari web pages` (if there’s no input, choose `Get Clipboard` so clicking it in your Mac Menu Bar cleans whatever URL you just copied with Command+C!).

2

Expand Shortened Redirect Links Optionally (Get Headers / Expand URL)

Add the native `Expand URL` action! If someone sent a mystery `bit.ly`, `amzn.to`, or `t.co` link, `Expand URL` resolves the final destination URL first so you both see where it actually leads AND expose the underlying tracking query string.

3

Strip Tracking Parameters Using Replace Text (Regex Mode)

Add `Replace Text` with `Regular Expression` toggled ON! To preserve YouTube `v=` video IDs while stripping `?utm_...`, `fbclid`, `gclid`, `igsh`, `si`, and Amazon `/ref=...` tails, run two clean regex passes: 1) Replace `(/ref=[^?]+)` with empty string (cleans Amazon product URLs down to `/dp/B0XXXX/`!). 2) Replace `([?&](utm_[^&]+|fbclid=[^&]+|gclid=[^&]+|igsh=[^&]+|igshid=[^&]+|si=[^&]+|mc_cid=[^&]+))` with empty string, followed by cleaning any lone trailing `?`!

4

Copy Clean URL to Clipboard & Show Subtle Confirmation

Finish with `Copy [Updated Text] to Clipboard`! Next time you share an Amazon listing, news article, or Reel to family or Slack, tap Share > `Copy Clean Link` and paste a crisp, privacy-respecting one-line URL.

Power-User Pro Tips & Hidden Modifiers

Once the core routine feels effortless, layer in these power-user refinements to shave even more seconds off repetitive tasks:

  • Did you know iOS 17/18 Safari already strips `fbclid` and `gclid` automatically inside **Private Browsing** & Advanced Tracking Protection (`Settings > Apps > Safari > Advanced > Advanced Tracking and Fingerprinting Protection > All Browsing`)? Turn that ON alongside this Shortcut for links copied out of native social apps!
  • Assign `Control+Option+U` on macOS so you can scrub messy newsletter links in Slack or Markdown docs in half a second.
  • All regex processing happens 100% locally on device.

Common Pitfalls & Instant Fixes

⚠️ Pitfall: Blindly deleting everything after "?" breaks YouTube watch?v= links

Clean Fix: That’s why our targeted regex removes known tracking keys (`utm_*`, `si=`, `fbclid=`, `igsh=`) while leaving functional query keys like YouTube’s `?v=` or search `?q=` untouched!

5-Minute Weekly Habit: Making Clean URL Tracker-Stripper Shortcut Automatic

The difference between reading a clever Apple Shortcuts Guides tip once and actually reclaiming three to five hours every month comes down to muscle memory during your first three days. Set aside five quiet minutes today to configure Share Sheet > "Copy Clean Link" Shortcut directly on your primary device while reading through the steps above, then test one real file, photo, note, or window right away.

If you split your week between a MacBook desk setup and an iPhone or iPad on the move, verify that iCloud Drive and Handoff remain active under your Apple Account settings so changes propagate instantaneously across devices without emailing attachments to yourself. Teams and solo operators who standardize on built-in macOS, iOS, and browser-local workflows consistently eliminate unnecessary App Store subscription renewals while keeping sensitive documents strictly under their own control.

Free Companion Browser Utility

Pair This Workflow With macOS Shortcut Cheat Sheet

Need quick client-side conversion, dimension math, or shortcut lookup right inside Safari or Chrome without installing extra software? Launch our privacy-first browser utility:

Open macOS Shortcut Cheat Sheet → Browse All 30 Guides

Frequently Asked Questions

Does stripping `igsh=` or `si=` stop Instagram or YouTube links from opening?

Not at all—the link opens the exact same post or video cleanly without tying your personal sharer token to everyone who clicks it!

What is the cleanest canonical format for any US or Canadian Amazon link?

Everything after `/dp/ASIN_CODE/` (on `amazon.com` or `amazon.ca`) is optional session/search tracking and can be safely removed.

Keep Exploring Related Apple Shortcuts Guides