Skip to content

Commit

Permalink
enable Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jul 11, 2017
1 parent 5e3ead4 commit e735c5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ baseurl = "/"
languageCode = "en-us"
title = "A minimal Hugo website"
theme = "hugo-xmin"
googleAnalytics = ""
googleAnalytics = "UA-1988641-2"
disqusShortname = ""
ignoreFiles = ["\\.Rmd$", "_files$", "_cache$"]
preserveTaxonomyNames = true
Expand Down
2 changes: 2 additions & 0 deletions exampleSite/layouts/partials/foot_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,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" . }}

0 comments on commit e735c5b

Please sign in to comment.