Skip to content

Commit

Permalink
enable Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Feb 5, 2024
1 parent d776326 commit f8af380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion exampleSite/config.yaml
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$", "\\.Rmarkdown$", "_cache$"]
footnotereturnlinkcontents: ""
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 @@ -3,3 +3,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" . }}

0 comments on commit f8af380

Please sign in to comment.