Stripping Feedburner Link Pollution

A while ago Tony Hirst blogged about the problem of Feedburner adding Google Analytics tracking code to links. It keeps cropping up and annoying me so I finally got around to modifying the Delicious Bookmarklet to strip out Analytics parameters:

javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent((window.location.href+'&').replace(/utm_source=[^&]*&/,'').replace(/utm_content=[^&]*&/,'').replace(/utm_medium=[^&]*&/,'').replace(/utm_campaign=[^&]*&/,'').replace(/&$/,'').replace(/\?$/,''))+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()

Update: Bah – WordPress keeps munging my link – copy and paste it into a new bookmark!

I don’t know if there are different versions so you might have to modify to suit your browser.

3 Responses to “Stripping Feedburner Link Pollution”


Leave a Reply