// TODO: Decide if we want seperate tracking server.
"page":document.URL
// If so, we need to resolve:
}
// * AJAX from different domain (XMLHttpRequest cannot load http://localhost:7000/userlog. Origin http://localhost:8000 is not allowed by Access-Control-Allow-Origin.)
$.ajax({type:'GET',
// * Verifying sessions/authentication
url:'/event',
dataType:'json',
/*window['console'].log(JSON.stringify(e));*/
data:data,
$.get("/event",
async:!log_close_event,// HACK: See comment on log_close_event
{
success:function(){},
"event_type":e,
headers:{'X-CSRFToken':getCookie('csrftoken')}
"event":JSON.stringify(d),
});
"page":document.URL
},
/*, // Commenting out Chrome bug fix, since it breaks FF