Skip to content

Commit

Permalink
Remove Vercel Audiences (#657)
Browse files Browse the repository at this point in the history
* Revert "Analytics: Fine-tune Vercel Audiences (#651)"

This reverts commit d48a1c1.

* Revert "Analytics: Add Vercel Audiences (#649)"

This reverts commit 6fd01c7.
  • Loading branch information
EthanThatOneKid committed Nov 1, 2022
1 parent 2bb356c commit 79fa887
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 86 deletions.
69 changes: 0 additions & 69 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"type": "module",
"dependencies": {
"@js-temporal/polyfill": "^0.4.1",
"@vercel/analytics": "^0.1.3",
"html-to-text": "^8.2.1",
"qrcode": "^1.5.1",
"rrule": "^2.6.9",
Expand Down
17 changes: 5 additions & 12 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@
//
// https://kit.svelte.dev/docs/advanced-routing#advanced-layouts
import { inject } from '@vercel/analytics';
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) {
inject({
beforeSend(ev) {
send({
id: VERCEL_ANALYTICS_ID,
path: $page.url.pathname,
params: $page.params,
navigator,
});
return ev;
},
send({
id: VERCEL_ANALYTICS_ID,
path: $page.url.pathname,
params: $page.params,
navigator,
});
}
</script>
Expand Down
4 changes: 0 additions & 4 deletions static/va/script.js

This file was deleted.

1 comment on commit 79fa887

@vercel
Copy link

@vercel vercel bot commented on 79fa887 Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.