This commit is contained in:
19
js/all.min.js
vendored
19
js/all.min.js
vendored
@ -17,6 +17,23 @@ loadAnalytics.cloudflare = function() {
|
||||
script.setAttribute("data-cf-beacon", '{"token": "e5b0ef8807e74cef81287ac77bd18938"}');
|
||||
document.head.appendChild(script);
|
||||
};
|
||||
loadAnalytics.google = function() {
|
||||
// <script async src="https://www.googletagmanager.com/gtag/js?id=G-63PV9BWZK5"></script>
|
||||
let script = document.createElement("script");
|
||||
script.setAttribute("async", "");
|
||||
script.setAttribute("src", "https://www.googletagmanager.com/gtag/js?id=G-63PV9BWZK5");
|
||||
document.head.appendChild(script);
|
||||
/* <script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-63PV9BWZK5');
|
||||
</script> */
|
||||
let script2 = document.createElement("script");
|
||||
script2.innerText = "window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-63PV9BWZK5');";
|
||||
|
||||
}
|
||||
|
||||
function antiSkid() {
|
||||
if(window != window.parent && location.hostname != new URL(document.referrer).hostname) {
|
||||
@ -49,5 +66,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
// yo why are all analytic providers mid
|
||||
// loadAnalytics.unami();
|
||||
// loadAnalytics.cloudflare();
|
||||
// bag under eyes emoji
|
||||
loadAnalytics.google();
|
||||
antiSkid();
|
||||
})
|
||||
Reference in New Issue
Block a user