diff options
| author | Fuwn <[email protected]> | 2026-01-26 08:59:47 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-26 23:08:12 -0800 |
| commit | 411dd4c7164b3b5925b9f94fd455bd8a8e3f413d (patch) | |
| tree | 697dca6a7e72c5ba63af59b24006517d7e9b1ac5 /src/routes/+layout.svelte | |
| parent | feat: Add BotID (diff) | |
| download | due.moe-411dd4c7164b3b5925b9f94fd455bd8a8e3f413d.tar.xz due.moe-411dd4c7164b3b5925b9f94fd455bd8a8e3f413d.zip | |
feat(+layout.svelte): Add Web Analytics
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 2ca78271..96d91f0f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -34,8 +34,11 @@ import { defaultActions } from '$lib/CommandPalette/actions'; import { toolsAsCommandPaletteActions } from '$lib/Tools/tools'; import localforage from 'localforage'; + import { dev } from '$app/environment'; + import { injectAnalytics } from '@vercel/analytics/sveltekit'; injectSpeedInsights(); + injectAnalytics({ mode: dev ? 'development' : 'production' }); export let data; |