Skip to content

Commit

Permalink
fix: analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
darkyzhou committed Mar 3, 2024
1 parent d5aafe9 commit 90ae5d6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/components/Analytics.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { onMount } from 'svelte';
import basicConfiguration from '../../config/basic-configuration.yml';
import { browser } from '$app/environment';
import { afterNavigate } from '$app/navigation';
export let gaMeasurementId;
export let baiduId;
Expand All @@ -22,16 +21,6 @@
const userAgent = navigator.userAgent.toLocaleLowerCase();
return basicConfiguration.analytics.blockedUAs?.some((ua) => userAgent.includes(ua));
}
afterNavigate(() => {
if (!enabled) {
return;
}
if (window.umami) {
window.umami.track();
}
});
</script>
<svelte:head>
Expand Down

0 comments on commit 90ae5d6

Please sign in to comment.