diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 384d15d..9c143c4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,4 +21,21 @@ <link rel="shortcut icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon"> <link rel="icon" href="{{ `images/favicon.png` | absURL }} " type="image/x-icon"> + {{ "<!-- google analitycs -->" | safeHTML }} + <script> + (function (i, s, o, g, r, a, m) { + i['GoogleAnalyticsObject'] = r; + i[r] = i[r] || function () { + (i[r].q = i[r].q || []).push(arguments) + }, i[r].l = 1 * new Date(); + a = s.createElement(o), + m = s.getElementsByTagName(o)[0]; + a.async = 1; + a.src = g; + m.parentNode.insertBefore(a, m) + })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); + ga('create', '{{ .Site.Params.googleAnalitycsID }}', 'auto'); + ga('send', 'pageview'); + </script> + </head>
\ No newline at end of file |