Skip to content

Commit 2e24f0e

Browse files
committed
add
1 parent f6f5504 commit 2e24f0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

layouts/partials/head.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
{{- end -}}
6363
<!-- Google Analytics v4 Config -->
6464
{{- if not hugo.IsServer }}
65-
{{- if .Site.GoogleAnalytics }}
66-
{{- template "_internal/google_analytics.html" . -}}
65+
{{- if .Site.Config.Services.GoogleAnalytics.ID }} {{- template "_internal/google_analytics.html" . -}}
6766

6867
{{- end -}}
6968
{{- end -}}

0 commit comments

Comments
 (0)