Add Google Analytics script to page layout
This commit is contained in:
@@ -27,6 +27,18 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
<!-- Google tag (gtag.js) -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-36F29PDKRT"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag() {
|
||||||
|
dataLayer.push(arguments);
|
||||||
|
}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-36F29PDKRT');
|
||||||
|
</script>
|
||||||
|
|
||||||
<title>{merged.title}</title>
|
<title>{merged.title}</title>
|
||||||
<meta name="description" content={merged.description ?? ''} />
|
<meta name="description" content={merged.description ?? ''} />
|
||||||
<link rel="canonical" href={merged.canonical} />
|
<link rel="canonical" href={merged.canonical} />
|
||||||
|
|||||||
Reference in New Issue
Block a user