mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
feat: Google Analytics support (#135)
* Added Google Analytics feature * style: load GA script before head/custom * style(config): googleAnalytics field empty by default Co-authored-by: Jimmy Cai <github@jimmycai.com>
This commit is contained in:
parent
a8718592df
commit
83e3a4e8e1
2 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,9 @@ title: Example Site
|
|||
# Change it to your Disqus shortname before using
|
||||
disqusShortname: hugo-theme-stack
|
||||
|
||||
# GA Tracking ID
|
||||
googleAnalytics:
|
||||
|
||||
# Theme i18n support
|
||||
# Available values: en, fr, id, ja, ko, pt-br, zh-cn
|
||||
DefaultContentLanguage: en
|
||||
|
|
|
@ -21,4 +21,5 @@
|
|||
<link rel="shortcut icon" href="{{ . }}" />
|
||||
{{ end }}
|
||||
|
||||
{{- partial "head/custom.html" . -}}
|
||||
{{- template "_internal/google_analytics_async.html" . -}}
|
||||
{{- partial "head/custom.html" . -}}
|
||||
|
|
Loading…
Reference in a new issue