Template:2008/Donate-letter



  



function getQuerystring( key ) { key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ); var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' ); var qs = regex.exec( window.location.search ); return qs == null ? '' : qs[1]; }

function addTracking {

if ( getQuerystring( 'utm_source' ) != '' ) {     var red_button_link = document.getElementById("red-button"); red_button_link.href = red_button_link.href + "?utm_source=" + getQuerystring( 'utm_source' ) + "\x26utm_medium= " + "\x26utm_campaign=" + getQuerystring( 'utm_campaign' ); } }

addTracking;