diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6d9a557..b878fa8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,13 +39,3 @@ {{ end -}} {{ partial "hooks/head-end.html" . -}} - -{{/* To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled */ -}} -{{ if hugo.IsProduction -}} - {{ $enableGtagForUniversalAnalytics := not .Site.Params.disableGtagForUniversalAnalytics -}} - {{ if (or $enableGtagForUniversalAnalytics (hasPrefix .Site.GoogleAnalytics "G-")) -}} - {{ template "_internal/google_analytics_gtag.html" . -}} - {{ else -}} - {{ template "_internal/google_analytics_async.html" . -}} - {{ end -}} -{{ end -}}