Skip to content

Commit d5cf6bb

Browse files
authored
Update analytics
1 parent bcebfb9 commit d5cf6bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/main.js

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ script.src = "https://data.3kh0.net/script.js";
2424
script.defer = true;
2525
script.setAttribute("data-website-id", "47d72bde-ba44-4125-b161-00e0c2f5b7f0");
2626
document.head.appendChild(script);
27+
script.onload = function() {
28+
console.log("Data script loaded");
29+
umami.track([location.hostname, "pageview"].join("/"));
30+
};
2731

2832
const local_title = localStorage.getItem("title");
2933
const local_icon = localStorage.getItem("icon");

0 commit comments

Comments
 (0)