Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fncnt/vncnt-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfncnt <fncnt@users.noreply.github.com>2019-03-18 22:05:18 +0300
committerGitHub <noreply@github.com>2019-03-18 22:05:18 +0300
commit849ca19b3c289353d889c185630948435c884ca8 (patch)
tree426de6e69d97569fc48e25f7733f50dd41e7f9ca
parent44c271c481cd4ae4edd2bc20d3eac2533cb4e6a9 (diff)
parentbe99fc182034d69e4888846b4928f2392bdc4d87 (diff)
Merge pull request #8 from paradoxengine/olddev
Add support for Google Analytics
-rw-r--r--README.md6
-rw-r--r--layouts/partials/scripts.html1
2 files changed, 7 insertions, 0 deletions
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 @@
<!-- Scripts --------------------------------––––––––––––––––––––––––––––– -->
+ {{ template "_internal/google_analytics_async.html" . }}