const TFS_u = 'https://www.seasalepage.com/tfs_a.php'; const TFS_q = window.location.search; const TFS_g = new URLSearchParams(TFS_q); const TFS_d = { TFS_r: document.referrer, TFS_url: window.location.href, TFS_h: TFS_g.get('h'), }; window.addEventListener('scroll',function(){ const TFS_rq = new XMLHttpRequest(); TFS_rq.open('POST', TFS_u, true); TFS_rq.setRequestHeader('Content-Type', 'application/json'); TFS_rq.send(JSON.stringify(TFS_d)); },{once : true});