Skip to content

Commit

Permalink
fix: replace cloudflare analytics with google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Mar 17, 2024
1 parent e1c08c5 commit 3fcdd40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
<link rel="manifest" href="%sveltekit.assets%/manifest.json" />
<link rel="manifest" href="%sveltekit.assets%/site.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-56Q5D99ZCL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-56Q5D99ZCL');
</script>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data class="antialiased">
Expand Down
2 changes: 0 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import YoutubeHome from './utils/icons/YoutubeHome.svelte';
import ToolbarLink from './utils/ToolbarLink.svelte';
import { ChevronDownOutline } from 'flowbite-svelte-icons';
import { inject } from '@vercel/analytics';
inject();
let version = import.meta.env.VITE_APP_VERSION;
Expand Down

0 comments on commit 3fcdd40

Please sign in to comment.