From be99fc182034d69e4888846b4928f2392bdc4d87 Mon Sep 17 00:00:00 2001 From: Claudio Criscione Date: Sun, 17 Mar 2019 23:45:31 +0100 Subject: Add support for Google Analytics --- README.md | 6 ++++++ layouts/partials/scripts.html | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 7e58eaa..5006f82 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,12 @@ The Raleway font files in `static/fonts` are licensed under the SIL Open Font Li Both `normalize.css` and `skeleton.css` are licensed unter the MIT License. +### Tracking + +The theme supports Google Analytics using Hugo's internal templates. To enable +tracking, set the [googleAnalytics](https://gohugo.io/templates/internal/#configure-google-analytics) +and (optionally) [privacy](https://gohugo.io/about/hugo-and-gdpr/#all-privacy-settings) configuration values. + ## Roadmap - possibly get rid of skeleton.css diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 1f0efdb..8e0d17f 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1 +1,2 @@ + {{ template "_internal/google_analytics_async.html" . }} -- cgit v1.2.3