var pageTracker = _gat._getTracker("UA-391521-1");

pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);

pageTracker._initData();
pageTracker._trackPageview();

//Use the Google Analytics function to get GA variables
var googleHash = pageTracker._getLinkerUrl("", window);
//This can return a hash at the front which is not required so remove it
googleHash = googleHash.replace("#", "");
//Write the cookie
document.cookie = "goolinker="+ googleHash + "; path=/";
