Skip to content

Commit

Permalink
feat(layout): add track trigger on astro page swap
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmet-cetinkaya committed Jan 3, 2025
1 parent c847c14 commit 694a5f4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
<!-- Analytics -->
<script defer src="https://analytics.ahmetcetinkaya.me/script.js" data-website-id="66bca9d1-0bab-43b6-b318-7d41bfd2f4c6"
></script>

<script>
declare const umami: any;
document.addEventListener("astro:after-swap", () => umami.track());
</script>

0 comments on commit 694a5f4

Please sign in to comment.