// TODO: Decide if we want seperate tracking server.
// 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.)
// * Verifying sessions/authentication
/*window['console'].log(JSON.stringify(e));*/
$.get("/event",
{
data={
"event_type":e,
"event":JSON.stringify(d),
"page":document.URL
},
function(data){
}
$.ajax({type:'GET',
url:'/event',
dataType:'json',
data:data,
async:!log_close_event,// HACK: See comment on log_close_event
success:function(){},
headers:{'X-CSRFToken':getCookie('csrftoken')}
});
/*, // Commenting out Chrome bug fix, since it breaks FF