diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e2b6a5a..1e7e079 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,6 +17,9 @@ {{ $style := resources.Get "css/ace.scss" | toCSS | minify }} <link rel="stylesheet" href="{{ $style.Permalink }}"> - {{ template "_internal/google_analytics_async.html" . }} + <!-- Only include the tracking when using `hugo` or adding `--environment production` --> + {{ if eq hugo.Environment "production" }} + {{ template "_internal/google_analytics_async.html" . }} + {{ end }} </head> |