diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 5f792125..3f9cfa92 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -3,7 +3,7 @@ to be used together. There may be situations where a organization support both tag methods simultaneously. -------------> -{{ if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{ end }} +{{ if .Site.Config.Services.GoogleAnalytics.ID }} {{ template "_internal/google_analytics.html" . }} {{ end }} {{ if .Site.Params.googleAnalytics_UA }} {{ partial "google-analytics-ua.html" . }} {{ end }} @@ -65,4 +65,4 @@ {{- else -}} {{- end -}} -{{ end }} \ No newline at end of file +{{ end }}