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
@ -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 New Issue
Block a user