Add umami analytics

This commit is contained in:
Jakob Kordež 2024-06-30 19:37:58 +02:00
parent 58e5a6ac2b
commit be8d8df00a
3 changed files with 25 additions and 1 deletions

12
.vscode/settings.json vendored
View File

@ -13,5 +13,15 @@
"**/*.csv",
"**/*.xml"
],
"cSpell.words": ["adif", "callsign", "callsigns", "clublog", "dxcc", "graphviz", "ituz", "timez"]
"cSpell.words": [
"adif",
"callsign",
"callsigns",
"clublog",
"dxcc",
"graphviz",
"ituz",
"timez",
"umami"
]
}

View File

@ -0,0 +1,11 @@
<script lang="ts">
import { PUBLIC_ANALYTICS_URL, PUBLIC_ANALYTICS_ID } from '$env/static/public';
export const ssr = false;
export const prerender = false;
export const csr = true;
</script>
{#if PUBLIC_ANALYTICS_URL && PUBLIC_ANALYTICS_ID}
<script defer src={PUBLIC_ANALYTICS_URL} data-website-id={PUBLIC_ANALYTICS_ID}></script>
{/if}

View File

@ -1,5 +1,6 @@
<script>
import '../app.css';
import Umami from '../components/umami.svelte';
</script>
<svelte:head>
@ -36,6 +37,8 @@
</footer>
</div>
<Umami />
<style lang="postcss">
.c {
@apply mx-auto w-full max-w-3xl px-6;