Clean URL Bookmarklet

Remove UTM tracking parameters from Chrome addresses before sharing.

Sick of manually removing the UTM tracking parameters from links you copy and paste in Chrome? Here’s a nifty little trick to automate the process.

In your Bookmarks bar, click “Add Page” and enter the Name (e.g., “CLEAN”). Then paste the following code into the URL:

javascript:(function(){let u=new URL(location.href);['utm_placement','user_id','utm_source','utm_medium','utm_campaign','utm_term','utm_content'].forEach(k=>u.searchParams.delete(k));prompt('Clean URL:', u.toString());})();

This will copy the URL and strip out the UTM parameters and present a prompt of the cleaned URL for you to copy and paste into messages, emails, or social media without the tracking data.

Pretty cool, eh?

What is Google Chrome OS?

Telling the story of Google Chrome and how it inspired an operating system. Produced by Epipheo Studios.

BTW, I have Google Wave Preview and about a 1/2 dozen colleagues on it, yet, I still haven’t manage to catch someone online to play around with it. Will you add me so I can test with you?