window.PFCCallback=function() { var referer=document.referrer; var urlParams=new URLSearchParams(window.location.search); var refererParam=urlParams.get('Original-Referer'); if(refererParam) referer=refererParam; var refererType=""; var refererTypeParam=urlParams.get('Original-Referer-Type'); if(refererTypeParam) refererType=refererTypeParam; var s = document.createElement('script'); // Create a script element s.type = "text/javascript"; // optional in html5 s.async = true; // asynchronous? true/false s.src = "https://announce.profundcom.net/dms/w2.php?Visitor=New&tx_id=&tx_page_viewed_id=1502894&PageTitle="+document.title+"&Referal_url="+referer+"&Referer_type="+refererType+"&FullPagePath="+encodeURIComponent(window.location.href); var fs = document.getElementsByTagName('script')[0]; // Get the first script fs.parentNode.insertBefore(s, fs); }; window.addEventListener('beforeunload',window.PFCCallback); window.PFCCallback();// send the title now