feat: setup posthog for metrics (might or might not be useful)

This commit is contained in:
2025-06-10 23:44:21 +01:00
parent b727665238
commit 2b73fe13bd
3 changed files with 70 additions and 2 deletions

View File

@@ -1,7 +1,16 @@
<script lang="ts">
import posthog from "posthog-js";
import logoUrl from "$lib/assets/logo.svg";
import { onMount } from "svelte";
const { children } = $props();
onMount(() => {
posthog.init("phc_hTnel2Q8GKo0TgIBnFWBueJW1ATmCG9tJOtETnQTUdY", {
api_host: "https://eu.i.posthog.com",
person_profiles: "always"
});
});
</script>
<svelte:head>