"use strict";var laralytics=function(){var e={API:"/laralytics",Limit:0},t={info:[],click:[],custom:[]},n=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""},i=function(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e},r=function(e){var n=t.click.length+t.custom.length;0!==e.Limit&&(n===e.Limit||n>=e.Limit)&&(o(e),t={click:[],custom:[]})},a=function(e){t.custom.push({type:event.type,x:event.clientX,y:event.clientY,datetime:Math.floor((new Date).getTime()/1e3),element:event.target.id||event.target.className||event.target.localName}),r(e)},o=function(e){var i=new XMLHttpRequest;i.open("POST",""+e.API,!0),i.setRequestHeader("Content-Type","application/json; charset=UTF-8"),i.setRequestHeader("X-XSRF-TOKEN",decodeURIComponent(n("XSRF-TOKEN"))),i.send(JSON.stringify(t))},c=function(n){var c=i({},e,n);t.info={browser:window.navigator.userAgent,browserWidth:window.innerWidth,browserHeight:window.innerHeight,deviceWidth:window.screen.width,deviceHeight:window.screen.height};for(var s=document.querySelectorAll("[data-laralytics]"),l=0;l<s.length;l++)s[l].addEventListener(""+s[l].getAttribute("data-laralytics"),a.bind(c));document.addEventListener("click",function(e){t.click.push({x:e.clientX,y:e.clientY,datetime:Math.floor((new Date).getTime()/1e3),element:e.target.id||e.target.className||e.target.localName}),r(c)}),window.onbeforeunload=function(){o(c)}};return{init:c}}();
"use strict";var laralytics=function(){var e={API:"/laralytics",Limit:0},t={info:[],click:[],custom:[]},n=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""},i=function(e){e=e||{};for(var t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e},r=function(e){var n=t.click.length+t.custom.length;0!==e.Limit&&(n===e.Limit||n>=e.Limit)&&(o(e),t={click:[],custom:[]})},a=function(e){t.custom.push({type:event.type,x:event.clientX,y:event.clientY,datetime:Math.floor((new Date).getTime()/1e3),element:event.target.id||event.target.className||event.target.localName}),r(e)},o=function(e){var i=new XMLHttpRequest;i.open("POST",""+e.API,!0),i.setRequestHeader("Content-Type","application/json; charset=UTF-8"),i.setRequestHeader("X-XSRF-TOKEN",decodeURIComponent(n("XSRF-TOKEN"))),i.send(JSON.stringify(t))},c=function(n){var c=i({},e,n);t.info={browser:window.navigator.userAgent,browserWidth:window.innerWidth,browserHeight:window.innerHeight,deviceWidth:window.screen.width,deviceHeight:window.screen.height,referral:document.referrer||null};for(var s=document.querySelectorAll("[data-laralytics]"),l=0;l<s.length;l++)s[l].addEventListener(""+s[l].getAttribute("data-laralytics"),a.bind(c));document.addEventListener("click",function(e){t.click.push({x:e.clientX,y:e.clientY,datetime:Math.floor((new Date).getTime()/1e3),element:e.target.id||e.target.className||e.target.localName}),r(c)}),window.onbeforeunload=function(){o(c)}};return{init:c}}();

Update laralytics.min.js