Can I manipulate the URL parameters using a browser extension?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Intrigue Looping
--
Chapters
00:00 Can I Manipulate The Url Parameters Using A Browser Extension?
00:53 Answer 1 Score 1
01:26 Answer 2 Score 0
02:29 Accepted Answer Score 7
03:39 Answer 4 Score 1
04:02 Thank you
--
Full question
https://superuser.com/questions/1199899/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#browser #privacy #url
#avk47
ACCEPTED ANSWER
Score 7
These are UTM parameters. They are typically used for analytics (e.g., tracking where the user is coming from).
It should be possible for browser extensions to remove these UTM parameters before you send the request to the server (so the tracking doesn’t work).
After a quick search, I found the following extensions, but I have no experience with them, and I didn’t verify if they are stripping the parameters before the server is hit. There are likely more (search for "remove UTM parameters").
Chromium/Chrome:
Tracking Token Stripper (source code)
[…] removes those tokens from the URL before the destination site is visited […]
Requestly - Step by step guide to remove UTM Parameters in Requestly
Firefox:
Link Cleaner (source code) removes the parameters from hyperlinks (so it probably doesn’t work if you copy-paste a URL with the parameters).
au-revoir-utm (source code) seems to remove them after the page is loaded, so it doesn’t prevent the tracking.
Pure URL - its description doesn’t say if it works before or after loading the page.
Requestly - Step by step guide to remove UTM Parameters in Requestly
ANSWER 2
Score 1
You can indeed manipulate URLs (including parameters) using a browser extension, provided you request the right permissions. Manipulating them after navigation would be somewhat pointless (the point of those parameters being to track referrals across the web), but you could either modify the URLs on web pages prior to clicking them (this is pretty easy but would not work for script-initiated navigation), or create an extension that filters navigation requests (somewhat like how ad blocking works) and modify the outbound requests so the server never sees those query string elements.
ANSWER 3
Score 1
Marketers add UTM parameters like utm_campaign
, utm_medium
and utm_source
to shared URLs for tracking. You can use a chrome extension (like Requestly) which makes it incredibly easy to configure a rule that removes these parameters from all URLs.
ANSWER 4
Score 0
What is this called?
The entire piece of the url including the ?
is called the query string. It can be removed like this.
I am familiar with parameters that actually effect output of the page like language or userid being passed from the previous page. These things do not in anyway effect the output.
In your example, these are all tracking parameters used by Google Analytics. They are used to track where users came from when they reach a site. The destination site must have GA javascript code embedded in the site to make use of these. It is possible for the site to use the parameters to modify what the user sees (show different content based on where the user came from for example), but this is unusual.
Is it possible to sanitize these extra stuffs?
Looking for specific parameters and trying to strip those from the url before the request is sent could be annoying to maintain (if they change). But definitely possible.
The better option might be to just block Google Analytics like the various "Ad Blocker" extensions already do. Or use the Brave browser :-)
What would be the search terms I can use?
Hopefully everything above gives you the info you need to proceed.
Notes: