From 22e4df55e0b6159369511f42fed2f49b94e9b80e Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 19 Jun 2017 23:29:34 -0500 Subject: [PATCH] enable Google Analytics --- exampleSite/config.toml | 2 +- layouts/partials/foot_custom.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2c6497a7..e34c333e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,7 +2,7 @@ baseurl = "/" languageCode = "en-us" title = "A minimal Hugo website" theme = "hugo-xmin" -googleAnalytics = "" +googleAnalytics = "UA-1988641-2" disqusShortname = "" ignoreFiles = ["\\.Rmd$", "_files$", "_cache$"] footnotereturnlinkcontents = "↩" diff --git a/layouts/partials/foot_custom.html b/layouts/partials/foot_custom.html index e69de29b..42b02beb 100644 --- a/layouts/partials/foot_custom.html +++ b/layouts/partials/foot_custom.html @@ -0,0 +1 @@ +{{ template "_internal/google_analytics.html" . }}