feat: Add Google Analytics tracking code to layout component
This commit is contained in:
parent
3797e33450
commit
2b6e3bfa9f
|
@ -2,4 +2,17 @@
|
||||||
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 />
|
Loading…
Reference in New Issue
Block a user