volpe/posts/remove-tracking-params-from-links.md
2026-02-19 17:23:00 -06:00

40 KiB

Your internet traffic is being tracked

When you open up your phone and click on or share links through websites and applications, those platforms are secretly injecting tracking information into the URLs. You didn't consent to being tracked, you just wanted to open a webpage.

While you may feel like this is not that important to your life, the information being tracked in those links has large impacts on your life.

They're building profiles on you

The metadata that corporations collect about you is used to make predictions on your behavior and keep track of who you know and how. This data can be used to track what you specifically are looking at on the internet, who you communicate with, and how often. Over time, this builds detailed profiles of who knows who, mapping out your entire social network without your knowledge or consent.

Algorithmic feeds are shaping your mental health

From the data collected, corporations use algorithmic feeds and advertisements to influence your behavior in subtle ways. Research has shown that these algorithmically-curated feeds contribute to rising depression and anxiety rates, particularly among young people.1 The algorithms are optimized for engagement, not wellbeing; engagement often means amplifying content that triggers strong emotional responses like outrage, fear, or inadequacy.

You're being isolated from your community

The current dominant cultural hegemony uses these algorithmic feeds to isolate you from community and reinforce its dominance. By showing you content designed to keep you scrolling alone rather than connecting with others, these systems harm community bonds and political movements. When everyone is seeing a personalized feed, shared experiences and collective action become harder to organize.

Advertisements are manipulating your choices

Through the mere exposure effect, targeted advertisements influence you to buy things you wouldn't have otherwise purchased. The more you see something, the more familiar and trustworthy it feels; even if you never consciously engage with the ad2. This same principle can be weaponized to influence elections by driving engagement or familiarity with specific ballot options, candidates, or political messaging.3

Activists and movements are being surveilled

This tracking infrastructure is also used to monitor activists and social movements.4 The same metadata that helps advertisers target you can help authorities track who attends protests, who organizes meetings, and who communicates with whom. Even if you agree with what the groups in power are doing right now, you shouldn't hand them the tools they need to stop caring about what you think in the future.

It makes the web worse for everyone

Beyond the privacy, and political implications, tracking parameters make links harder for people to read and share. A clean URL like example.com/article becomes an incomprehensible mess like example.com/article?utm_source=facebook&utm_medium=social&fbclid=abc123xyz. Removing these trackers saves screen space, internet bandwidth, and leaves the people around you with more energy at the end of the day for the things that they care about.

https://eggsexposed.com
http://www.example.com:8080/products/shoes?utm_source=facebook&utm_campaign=summer_sale&fbclid=abc123#reviews
ftp://192.168.0.2:20/lambda/documents
Protocol* What protocol to use to communicate with the server. (https, ftp, etc...)
Hostname* Name of the website used to look up the IP address of the server
Port Network port to connect to (defaults to 443 for https, and 80 for http)
Path The specific page or resource location on the server
Query Params Key-value pairs that pass data to the page
Fragment Links to a specific section within the page (not sent to server)

Query Parameters

Query parameters are a part of a URL that are used to encode some data about a page in its url. They are intended to be optional values but sometimes most of the time developers don't actually read or remember technical documentation and RFC's that outline how technologies are supposed to be used and put mandatory data in the optional parameters. 5

?size=medium&color=light%20blue&utm_source=facebook
Structure
? Delimiter Marks the start of query parameters in a URL
Key The name of the data being passed
= Assignment Connects each key to its value
Value The actual data being passed
& Separator Separates multiple key-value pairs
Parameters in this example
size=medium tells the page to use a medium size
color=light%20blue special characters are encoded with a % then a number
utm_source=facebook this param was secretly added to the link when it was posted on facebook

These parameters can be very useful for things like saying how many items should be returned with a query, what specific page the query is for, or for filters on a page itself.

limit=50, page=2, sort=latest, name=JohnJohn%20Doe, etc...

If there are any extra query parameter in a websites URL it isn't harmful to the function of the website because the website and its server can simply just ignore the unused parameters.

Over time ad tech companies learned that they can take any arbitrary URL that is displayed on their website and just add their own query parameters to it.

A common format that these tracking parameters take are UTM tracking codes.

query parameter description
utm_source how did you get to the site
utm_medium what type of link was used to get you to the site
utm_campaign what specific promotion brought you here
utm_term search term used
utm_content what specific page element was clicked to bring you to the page

From there the host site can use that data to track analytics how users got to their site or how their site is being used and if the page is using any scripts served up by those same ad tech companies or tooling they have built then those scripts and tools can harvest that data and send it back to the ad tech company to track user habits.

While UTM codes are probably the most common way that tracking information is added to links, they are not the only way and there is nothing stopping companies from using other techniques.

One such technique is though the usage of URL shorteners. Not only can url shorteners hide the usage of tracking query parameters behind short nice looking redirect, URL shortener companies also track the ip address's of all users who click on a link as well as embed cookies into your browser sessions to track what sites you are visiting specific down to the individual user level.

How can you help protect yourself and others

Just remove them manually

The most basic low tech way to remove the trackers is to just delete them yourself or just not copy them. This can help protect people that you are sharing the links with but it can become a bit tedious to manually copy every single link you want to visit and remove the trackers from its link.

Install browser extensions to automate it for you

You can install browser extensions that automatically remove tracking parameters from URLs as you browse:

ClearURL

Source Code

Mobile applications

There are some mobile apps that can also help remove trackers from links:

Use websites with tools to do it for you

You can also use web tools that you can give a URL and it will clean it for you:

URL unshortening and redirect following tools


  1. Internal Facebook research leaked in 2021 showed the company was aware that Instagram was harmful to teenage mental health, particularly for teen girls experiencing depression, anxiety, and body image issues. See: Wall Street Journal's Facebook Files investigation ↩︎

  2. The more that you are exposed to something the more likely you are to have a positive opinion about it even if you are not aware of this bias being built from the advertisements. https://wikipedia.org/wiki/Mere-exposure_effect ↩︎

  3. Facebook's own research demonstrated that the platform could influence voter turnout and potentially election outcomes. A 2012 study published in Nature showed Facebook could increase voter turnout through social messaging. See: Bond et al., "A 61-million-person experiment in social influence and political mobilization" ↩︎

  4. Government agencies use metadata and location tracking to monitor movements and activists. 404 Media's investigation into ICE's neighborhood monitoring tools While this specific example isn't directly about data that they have harvested from tracker links they could very easily do the same thing to get an idea of who is involved with what movements. ↩︎

  5. While the query parameters are not directly defined as optional they are not a part of the main path which should on its own define a unique stable path to any given element. If a query parameter is needed to fetch a specific resource then the path is by definition not uniquely identifying that resource. Youtube is an example of developers not using these value like they should be. Links like this https://www.youtube.com/watch?v=dQw4w9WgXcQ should instead be designed to look something like this https://www.youtube.com/watch/video/dQw4w9WgXcQ ↩︎