6 ms·
Related, if you're looking to clean urls on the backend, here's my current pattern used on https://upstract.com https://upstract.com and some other news aggrega
by marban 6y ago
Related, if you're looking to clean urls on the backend, here's my current pattern used on https://upstract.com https://upstract.com and some other news aggregators I've built:
startswith:
'utm_', 'ga_', 'hmb_', 'ic_', 'fb_', 'pd_rd', 'ref_', 'share_', 'client_', 'service_'
or has:
'$/ref@amazon.', '.tsrc', 'ICID', '_xtd', '_encoding@amazon.', '_hsenc', '_openstat', 'ab', 'action_object_map', 'action_ref_map', 'action_type_map', 'amp', 'arc404', 'affil', 'affiliate', 'app_id', 'awc', 'bfsplash', 'bftwuk', 'campaign', 'camp', 'cip', 'cmp', 'CMP', 'cmpid', 'curator', 'cvid@bing.com', 'efg', 'ei@google.', 'fbclid', 'fbplay', 'feature@youtube.com', 'feedName', 'feedType', 'form@bing.com', 'forYou', 'fsrc', 'ftcamp', 'ga_campaign', 'ga_content', 'ga_medium', 'ga_place', 'ga_source', 'ga_term', 'gi', 'gclid@youtube.com', 'gs_l', 'gws_rd@google.', 'igshid', 'instanceId', 'instanceid', 'kw@youtube.com', 'maca', 'mbid', 'mkt_tok', 'mod', 'ncid', 'ocid', 'offer', 'origin', 'partner','pq@bing.com', 'print', 'printable', 'psc@amazon.', 'qs@bing.com', 'rebelltitem', 'ref', 'referer', 'referrer', 'rss', 'ru', 'sc@bing.com', 'scrolla', 'sei@google.', 'sh', 'share', 'sk@bing.com', 'source', 'sp@bing.com', 'sref', 'srnd', 'supported_service_name', 'tag', 'taid', 'time_continue', 'tsrc', 'twsrc', 'twcamp', 'twclid', 'tweetembed', 'twterm', 'twgr', 'utm', 'ved@google.', 'via', 'xid', 'yclid', 'yptr'
Edit: Will turn this into a Gist at some point.
- vmateixeira 6y agoThanks for sharing
- pushcx 6y agoThanks for sharing this. We filter some of these from submissions to Lobsters (https://github.com/lobsters/lobsters/blob/f25fc62d7603c1bf7089925ad5517948b5008d42/app/models/story.rb#L873 https://github.com/lobsters/lobsters/blob/f25fc62d7603c1bf70...) and I'd be glad to expand it. In your second list, are those the names of query params? I'm puzzled by the inclusion of @ in many of them, maybe you're saying that '_encoding' is a tracking param on any amazon domain, 'sk' is a tracking param on bing.com? What does the $ in the first entry indicate?
- mhio 6y agoHere's a (less extensive) code example from Tracking Token Stripper: https://github.com/jparise/chrome-utm-stripper/blob/0d16a13dedd8a57f6c62144377a11b9d6357f83e/background.js https://github.com/jparise/chrome-utm-stripper/blob/0d16a13d...
- HajiraSifre 6y agoLooks like the syntax used by NeatURL, see https://github.com/Smile4ever/Neat-URL#parameter-rules https://github.com/Smile4ever/Neat-URL#parameter-rules
- werds 6y agoI don't see the point in blocking utm_ query string variables? they don't give up any personal information about you, they just help inform the landing site about which channels of marketing are working more effectively than others. This isn't about personal data, removing the UTM codes isnt helping anybody, it just means that the sites don't know where best to spend their money on marketing and ultimately results in seeing more ads in more irrelevant contexts in the future.