Skip to content

Commit

Permalink
Update analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
3kh0 authored Sep 11, 2024
1 parent bcebfb9 commit d5cf6bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ script.src = "https://data.3kh0.net/script.js";
script.defer = true;
script.setAttribute("data-website-id", "47d72bde-ba44-4125-b161-00e0c2f5b7f0");
document.head.appendChild(script);
script.onload = function() {
console.log("Data script loaded");
umami.track([location.hostname, "pageview"].join("/"));
};

const local_title = localStorage.getItem("title");
const local_icon = localStorage.getItem("icon");
Expand Down

0 comments on commit d5cf6bb

Please sign in to comment.