feat: added vercel web analytics

This commit is contained in:
Bart van der Braak 2023-07-29 22:01:16 +02:00
parent 5bab04e51c
commit 36efd82295
3 changed files with 13 additions and 0 deletions

View file

@ -7,6 +7,11 @@
import Navigation from '../lib/components/Navigation.svelte';
import Header from '$lib/components/Header.svelte';
import { dev } from '$app/environment';
import { inject } from '@vercel/analytics';
inject({ mode: dev ? 'development' : 'production' });
import { webVitals } from '$lib/vitals';
import { browser } from '$app/environment';
import { page } from '$app/stores';