Skip to content

Commit dd33ad6

Browse files
committed
add Google Analytics
1 parent 3f6a593 commit dd33ad6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

layouts/_default/baseof.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
7+
<!-- Global site tag (gtag.js) - Google Analytics -->
8+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-60989638-4"></script>
9+
<script>
10+
window.dataLayer = window.dataLayer || [];
11+
function gtag(){dataLayer.push(arguments);}
12+
gtag('js', new Date());
13+
14+
gtag('config', 'UA-60989638-4');
15+
</script>
16+
617
{{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
718
<title>{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title>
819
<meta name="viewport" content="width=device-width,minimum-scale=1">

0 commit comments

Comments
 (0)