Skip to content

Commit 78301df

Browse files
committed
enable Google Analytics
1 parent 64cd50c commit 78301df

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

exampleSite/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ baseurl: "/"
22
languageCode: "en-us"
33
title: "A minimal Hugo website"
44
theme: "hugo-xmin"
5-
googleAnalytics: ""
5+
googleAnalytics: "UA-1988641-2"
66
disqusShortname: ""
77
ignoreFiles: ["\\.Rmd$", "\\.Rmarkdown$", "_cache$", "\\.knit\\.md$", "\\.utf8\\.md$"]
88
footnotereturnlinkcontents: ""

exampleSite/layouts/partials/foot_custom.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
<script async src="//mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
33

44
<script async src="//yihui.org/js/center-img.js"></script>
5+
6+
{{ template "_internal/google_analytics.html" . }}

0 commit comments

Comments
 (0)