if(window.Proxy) {
window.history.pushState = new Proxy(window.history.pushState, {
apply: (target, thisArg, argArray) => {
target.apply(thisArg, argArray);
setTimeout(() => {
analytics?.page({
path: location.pathname,
referrer: document.referrer,
search: location.search,
title: document.title,
url: location.href
})
}, 100)
},
});
}