diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6f36fbe..d4ab16f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -74,7 +74,7 @@ {{- /* Misc */}} {{- if hugo.IsProduction | or (eq site.Params.env "production") }} - {{- if site.GoogleAnalytics }} + {{- if .Site.Config.Services.GoogleAnalytics.ID }} {{- template "_internal/google_analytics.html" . }} {{- end -}} {{- if site.Params.useCustomAnalytics }}