Skip to content

Commit a008493

Browse files
authored
turn on analytics for docs site (#994)
1 parent e0c661e commit a008493

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs-source/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ theme = "hugo-theme-learn"
77

88
publishDir = "docs"
99

10+
# analytics
11+
googleAnalytics = "UA-129126578-2"
12+
1013
# For search functionality
1114
[outputs]
1215
home = [ "HTML", "RSS", "JSON"]
13-

docs-source/themes/hugo-theme-learn/layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
{{end}}
1010
</footer>
1111

12-
12+
{{ template "_internal/google_analytics_async.html" . }}
1313
{{ partial "footer.html" . }}

0 commit comments

Comments
 (0)