diff options
author | Nazım Can Altınova <canaltinova@users.noreply.github.com> | 2019-05-05 18:58:43 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2019-05-05 18:58:43 +0300 |
commit | 5e140c4d9898412e60ea7167df425ac12f797bdc (patch) | |
tree | a2b47dacda1fcdda989aef805cc951bfbc8f0eb6 /layouts/partials/head.html | |
parent | 8691171e923f8ab5f191f54ec72bc41451a582f3 (diff) |
Add option to use Google Analytics (#14)
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6e0dd5e..aed1b99 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,4 +33,8 @@ <!-- RSS --> <link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + + {{ if hugo.Environment | eq "production" }} + {{ template "_internal/google_analytics_async.html" . }} + {{ end }} </head> |