add google analytics

This commit is contained in:
Chris Waring 2019-02-14 13:30:15 +00:00
parent 91a4707f14
commit 9a0d0eb481
No known key found for this signature in database
GPG Key ID: 4D2E767CC8B1C083
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,7 @@
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head" . }}
{{ partial "analytics" . }}
</head>
<body>

View File

@ -0,0 +1,8 @@
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-96910779-8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-96910779-8');
</script>