enable Google Analytics

This commit is contained in:
Yihui Xie 2017-06-19 23:29:34 -05:00
parent 6b05e21804
commit b11ef1e4b2
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$", "_files$", "_cache$"]
preserveTaxonomyNames = true

View File

@ -2,3 +2,5 @@
<script async src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script async src="//yihui.name/js/center-img.js"></script>
{{ template "_internal/google_analytics.html" . }}