feat-google-analytics #11

Merged
Hare merged 2 commits from feat-google-analytics into develop 2024-09-26 23:07:53 +09:00
Showing only changes of commit 2b6e3bfa9f - Show all commits

View File

@ -1,5 +1,18 @@
<script> <script>
import '$lib/app.scss'; import '$lib/app.scss';
</script> </script>
<slot /> <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 />