I'm not a web guy, but the way I understand it is what follows the question mark is a list of key=value pairs which the site then parses and uses to decide how to load the page. Sometimes they are used for tracking purposes--they are simply metadata appended to the url and do not affect the functionality of the site. It's the latter case that you are talking about.
For example, if we remove them from this url: https://www.youtube.com/watch?v=dQw4w9WgXcQ
The video will not load.
There could be dozens of such parameters in a url which might or might not affect its functionality and might or might not be used for tracking purposes, or a combination of the two.
While the user could go through trial and error by modifying the url to remove all or only non-essential parameters, this process is not as trivial as you make it out to be.
nah, it's not just after the ? - that just happened to be in the example that i gave.
What you are showing is the youtube link, adding the UTM parameters to it is near identical to the example i gave you however start after the v=dqw4
it's actually quite easy.
heres a decent guide for you to read as it shows you how to add UTMs and if you reverse it, you can remove them. All you need is to understand how they work as it's not complicated what so ever.
Already done it:
I wrote a regex that removes all utm_* keys and their values in url.
Check the sticky comment in this post.
(post is archived)