enable Google Analytics

This commit is contained in:
Yihui Xie 2017-06-19 23:29:34 -05:00
parent b76b60eb94
commit e92dabc70c
2 changed files with 3 additions and 1 deletions

View file

@ -2,7 +2,7 @@ baseurl: "/"
languageCode: "en-us"
title: "A minimal Hugo website"
theme: "hugo-xmin"
googleAnalytics: ""
googleAnalytics: "UA-1988641-2"
disqusShortname: ""
ignoreFiles: ["\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
footnotereturnlinkcontents: "↩"

View file

@ -2,3 +2,5 @@
<script src="//cdn.jsdelivr.net/combine/npm/katex/dist/katex.min.js,npm/katex/dist/contrib/auto-render.min.js,npm/@xiee/utils/js/render-katex.js" defer></script>
<script src="//cdn.jsdelivr.net/npm/@xiee/utils/js/center-img.min.js" defer></script>
{{ template "_internal/google_analytics.html" . }}