From 4976196c967a3155a761d3a7ca82d3f03e515958 Mon Sep 17 00:00:00 2001 From: Felix Tjandrawibawa Date: Mon, 6 Aug 2018 22:14:55 +1000 Subject: [PATCH] Add Google analytics support --- layouts/partials/header.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 72e1e4c5..a820b4e5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -33,6 +33,9 @@ + {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + {{ template "_internal/google_analytics_async.html" . }} + {{ end }}