mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Adding an analytics component
This commit is contained in:
parent
0e0ce61024
commit
cfbbf7debd
1 changed files with 13 additions and 0 deletions
13
src/lib/components/analytics.svelte
Normal file
13
src/lib/components/analytics.svelte
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<script lang="ts">
|
||||
import { PUBLIC_UMAMI_DO_NOT_TRACK, PUBLIC_UMAMI_URL, PUBLIC_UMAMI_ID } from '$env/static/public';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<script
|
||||
async
|
||||
defer
|
||||
data-website-id={PUBLIC_UMAMI_ID}
|
||||
src={`https://{PUBLIC_UMAMI_URL}/umami.js`}
|
||||
do-not-track={PUBLIC_UMAMI_DO_NOT_TRACK}
|
||||
/>
|
||||
</svelte:head>
|
||||
Loading…
Reference in a new issue