__layout.svelte

<script>
	import Header from '$lib/header/Header.svelte';
	import '../app.css';

	export let year = new Date().getFullYear();
</script>

<Header />

<main>
	<slot />
</main>

<footer>
	Copyright &copy; {year}
	<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-168021477-1"></script>
	<script>
		window.dataLayer = window.dataLayer || [];
		function gtag() {
			dataLayer.push(arguments);
		}
		gtag('js', new Date());

		gtag('config', 'UA-168021477-1');
	</script>
</footer>