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.
When I first read your tweet moaning about this I had no idea what you were talking about, and then about an hour ago I got caught out by it, so cheers
In fact actually looking at your code, why do multiple replaces? surely for a URL you want to replace all instances of utm_*?
That’s fine until some bugger uses utm_foo in their parameters!