From f8f22d764a0c28709fa4e57b84c6d0ace7c9b901 Mon Sep 17 00:00:00 2001 From: Michael Pollind Date: Thu, 19 Oct 2017 10:15:09 -0700 Subject: tweaked google analytics --- exampleSite/config.toml | 2 +- layouts/partials/head.html | 9 +-------- layouts/partials/scripts.html | 1 + 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 12d5fb1..517efbb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,7 +2,7 @@ baseURL = "localhost:1313" languageCode = "en-us" title = "My Portfolio Website" theme = "hugo-lodi-theme" -# googleAnalytics = "UA-XXXXXXXX-Y" +googleAnalytics = "UA-XXXXXXXX-Y" [params] theme_color = "#574CDD" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index adad0c2..5af4a1a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -12,11 +12,4 @@ - -{{ if isset .Site.GoogleAnalytics }} - - -{{ end }} + \ No newline at end of file diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 8e10c18..bd1edba 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,3 +1,4 @@ +{{ template "_internal/google_analytics.html" . }} -- cgit v1.2.3