This commit is contained in:
sky
2025-12-16 23:26:30 -05:00
parent d4bd776889
commit 0057b8ddf1
3 changed files with 24 additions and 3 deletions

19
js/all.min.js vendored
View File

@ -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();
})