From d21ac478549f2c4da303cb38e60d3a7dadd0ffd3 Mon Sep 17 00:00:00 2001 From: Giuseppe Pignataro Date: Wed, 13 Mar 2019 23:38:18 +0100 Subject: [PATCH] Added Google Analytics Added Google analytics support --- exampleSite/config.toml | 1 + layouts/partials/js.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 27b71f50..656e0fb4 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -47,6 +47,7 @@ googleAnalytics = "" home_mode = "" # post or other google_verification = "" + googleAnalytics = "" description = "" # site description keywords = "" # site keywords diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 799debf7..9ccadd18 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -25,3 +25,5 @@ {{ if eq ( getenv "HUGO_ENV" ) "production" }} {{ end }} + +{{ template "_internal/google_analytics_async.html" . }}