Skip to content

Commit

Permalink
check for process.env.VERCEL_ANALYTICS_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jaasonw committed Oct 23, 2022
1 parent d3369bd commit cf94ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Expand Up @@ -9,7 +9,7 @@
import { browser } from '$app/environment';
import { send } from '$lib/public/analytics/send';
$: if (browser) {
$: if (browser && process.env.VERCEL_ANALYTICS_ID) {
send({
id: '$VERCEL_ANALYTICS_ID',
path: $page.url.pathname,
Expand Down

0 comments on commit cf94ffa

Please sign in to comment.