mirror of
https://github.com/jakobkordez/call-tester.git
synced 2025-05-15 16:20:29 +00:00
Add umami analytics
This commit is contained in:
parent
58e5a6ac2b
commit
be8d8df00a
12
.vscode/settings.json
vendored
12
.vscode/settings.json
vendored
@ -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"
|
||||
]
|
||||
}
|
||||
|
11
src/components/umami.svelte
Normal file
11
src/components/umami.svelte
Normal 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}
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user