Skip to content

Commit

Permalink
Remove Vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Nov 11, 2022
1 parent 56ba029 commit 7097dca
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 109 deletions.
13 changes: 1 addition & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -68,7 +68,6 @@
"qrcode": "^1.5.1",
"rrule": "^2.7.1",
"rss": "^1.2.2",
"svelte-confetti": "^1.2.0",
"web-vitals": "^3.0.4"
"svelte-confetti": "^1.2.0"
}
}
10 changes: 0 additions & 10 deletions src/lib/public/analytics/types.ts

This file was deleted.

71 changes: 0 additions & 71 deletions src/lib/public/analytics/vitals.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/routes/+layout.svelte
Expand Up @@ -4,20 +4,6 @@
// layout of all pages.
//
// https://kit.svelte.dev/docs/advanced-routing#advanced-layouts
import { page } from '$app/stores';
import { browser, dev } from '$app/environment';
import { VERCEL_ANALYTICS_ID } from '$env/static/public';
import { send } from '$lib/public/analytics/vitals';
$: if (browser && !dev && VERCEL_ANALYTICS_ID) {
send({
id: VERCEL_ANALYTICS_ID,
path: $page.url.pathname,
params: $page.params,
navigator,
});
}
</script>

<slot />

0 comments on commit 7097dca

Please sign in to comment.