feat: add google analytics (#227)

This commit is contained in:
Benjamin E. Coe 2020-01-01 21:24:28 -08:00 committed by GitHub
parent 8937421aa1
commit 1a18c01591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,14 @@
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-2173276-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-2173276-5');
</script>
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<title>{{ .Param "Title" }}</title>
@ -15,3 +26,4 @@
<meta property="og:url" content="{{ .Permalink }}"/>
<meta property="og:description" content="{{ .Param "Description" }}"/>
<meta property="og:site_name" content="{{ .Param "Title" }}"/>
</head>