add site analytics

This commit is contained in:
Fred K. Schott 2021-07-15 16:12:25 -04:00
parent fba0b5969a
commit f1fe14efda

View file

@ -244,5 +244,14 @@ const githubEditUrl = `https://github.com/snowpackjs/astro-docs/blob/main/${curr
<DocSidebar client:idle headers={headers} editHref={githubEditUrl} />
</aside>
</main>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TEL60V1WM9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-TEL60V1WM9');
</script>
</body>
</html>