Skip to content

Commit

Permalink
added Umami analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwisdom committed Oct 12, 2024
1 parent a261854 commit 191c865
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ extra_css:
- stylesheets/style.css
extra_files:
- CNAME
extra:
analytics:
provider: custom

9 changes: 9 additions & 0 deletions overrides/partials/integrations/analytics/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script defer src="https://cloud.umami.is/script.js" data-website-id="2902911c-668f-4282-b0f8-78d05cf0a035"></script>

<script>
document.addEventListener("DOMContentLoaded", function() {
location$.subscribe(function(url) {
// You can add custom page tracking logic here, if needed
});
});
</script>

0 comments on commit 191c865

Please sign in to comment.