From c4c41542186139a7b7a55d8a3b90c854bd1ab9d7 Mon Sep 17 00:00:00 2001 From: vimux Date: Tue, 7 Nov 2023 11:36:41 -0500 Subject: [PATCH] Remove `google_analytics_async.html` include The internal Hugo template `google_analytics_async.html` no longer works because Google has removed the version of Google Analytics it uses. The regular internal template (google_analytics.html) already handles Google Analytics 4 asynchronously. --- layouts/_default/baseof.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a1eec1a..eba7682 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -37,11 +37,7 @@ {{- end }} {{- if not .Site.IsServer }} - {{- if hasPrefix .Site.GoogleAnalytics "G-" }} {{ template "_internal/google_analytics.html" . }} - {{- else }} - {{ template "_internal/google_analytics_async.html" . }} - {{- end }} {{- end }}