Implement clean_url(url) that removes tracking query parameters and normalises the URL:
utm_ and the exact names fbclid, gclid, mc_eid, ref? if no parameters remain; drop the #fragmentUse urllib.parse (urlsplit, parse_qsl, urlencode, urlunsplit).