feat: add umami tracking for app launch and exit events; update dependencies in package.json and bun.lock

This commit is contained in:
2025-12-07 00:11:49 +01:00
parent 3d57524a16
commit ad090ce38c
6 changed files with 35 additions and 16 deletions
+12 -1
View File
@@ -1,10 +1,21 @@
<script lang="ts">
import { currentView } from '@/global';
import { currentView, launcherVersion } from '@/global';
import { fade } from 'svelte/transition';
const View = $derived($currentView);
</script>
<svelte:head>
{#if $launcherVersion !== ''}
<script
defer
src="https://analytics.ez-pp.farm/script.js"
data-website-id="b03f0013-64f0-42ce-85c0-abd56e8b3c64"
data-tag={$launcherVersion}
></script>
{/if}
</svelte:head>
{#key View}
<div in:fade={{ duration: 300 }}>
<View />