Merge pull request 'feat-google-analytics' (#11) from feat-google-analytics into develop

Reviewed-on: #11
This commit is contained in:
Keisuke Hirata 2024-09-26 23:07:52 +09:00
commit 4e2422fa09
2 changed files with 15 additions and 3 deletions

@ -1 +0,0 @@
Subproject commit 3744bd78995594e5fdfcaeff32f426f1d41daffa

View File

@ -1,5 +1,18 @@
<script> <script>
import '$lib/app.scss'; import '$lib/app.scss';
</script> </script>
<svelte:head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6D99J1R7DX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-6D99J1R7DX');
</script>
</svelte:head>
<slot /> <slot />