diff options
author | Claudio Criscione <claudioc@google.com> | 2019-03-18 01:45:31 +0300 |
---|---|---|
committer | Claudio Criscione <claudioc@google.com> | 2019-03-18 01:45:31 +0300 |
commit | be99fc182034d69e4888846b4928f2392bdc4d87 (patch) | |
tree | 426de6e69d97569fc48e25f7733f50dd41e7f9ca | |
parent | 44c271c481cd4ae4edd2bc20d3eac2533cb4e6a9 (diff) |
Add support for Google Analytics
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -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 @@ <!-- Scripts --------------------------------––––––––––––––––––––––––––––– --> + {{ template "_internal/google_analytics_async.html" . }} |