Added Tracking

This commit is contained in:
Morgan 2024-08-11 21:51:56 +09:00
parent 18ba72a921
commit 9b6ee14ef8
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -42,5 +42,9 @@
<main>
{{- block "main" . }}{{- end }}
</main>
<script>
console.log("Sending statistics to server. Personal info is redacted afterwards.");
console.log(fetch(`https://log.blog.morgan.kr/?url=${encodeURIComponent(document.location)}&referer=${encodeURIComponent(document.referrer)}`));
</script>
</body>
</html>